Skip to content

Is there a way to set initial schema version? #35

@cthu1hoo

Description

@cthu1hoo

i.e. assume that base schema corresponds to version X instead of "0". otherwise i'm not sure how should this be integrated with an application that has extant migrations.

my thought was to create migrations record table filled with initial data in the base schema but it seems hackish somehow.

a few additional thoughts:

  • it seems to me that having base schema at version 0, always, and running all migrations all the time would quickly
    become unwieldy
  • more importantly, over the years database syntax may change and older migrations may become incompatible with newer database server releases (this happened to me both with postgres and mysql).

therefore, i normally keep base schema at latest version and support migrations from older installed schemas as needed.

thanks for any advice.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions