SEAPUNK / grater

database migrations
1 stars 0 forks source link

ideas #1

Open SEAPUNK opened 8 years ago

SEAPUNK commented 8 years ago

database initialization:

  1. /schema.sql or /schema/ directory (schema .sql files are executed in alphabetic order)
  2. /seeds.sql or /seeds/ directory (alphabetic order)

migrations:

SEAPUNK commented 8 years ago

now the question here is:

what do you do if there is no schema_migrations table?

SEAPUNK commented 8 years ago

A: do not do anything, just exit out with an error

have multiple commands to resolve this:

SEAPUNK commented 8 years ago

should migrations have a "check" function, to make sure that the migration is applicable?

SEAPUNK commented 8 years ago

mmmmmaybe. i'll think about it when the time comes to consider it