Skip to content

v1.0.0-beta.11

Pre-release
Pre-release

Choose a tag to compare

@AndriiSherman AndriiSherman released this 15 Jan 11:56
· 19 commits to beta since this release
fc31a5f
  • Defaulted PgTimestampString timezone offset to be +00 when value gets returned as Date instance
  • Pg: Cache is now used only when explicitly defined. In recent beta versions caching was still applied even when no cache was configured
  • Separated date and int-exclusive column methods from common pg builder (separeted .defaultNow(), .generatedAlwaysAsIdentity(), .generatedByDefaultAsIdentity())

Bug fixes

MySQL pull command:

  • Creation of a primary key when a column had only UNIQUE and NOT NULL
  • varbinary() config was ignored in a ts schema file
  • Foreign key column duplication when constraint names matched across multiple databases
  • Inconsistent casing between schema.ts and relations.ts
  • Cyclic references are generated as inline .references((): AnyMySqlColumn => ...) to avoid type errors for single-column references

Common:

  • Relation name collisions with column names during introspection. If a relation name collides with a column name - the relation is renamed to <name>Relation