ohmi
What's the pattern for writing migrations exactly?
but the tldr is you run some code to migrate to the latest migration. kysely will keep an internal database table to keep track of which migrations have alreadyt been run.
migrateToLatest
will only run the migrations that havent been run yet16 replies
What's the pattern for writing migrations exactly?
you specify the directory where the migrations are held, and they're executed in alphabetical order. theres no specific convention on how to name them, but ISO 8601 makes sure that they're in alphabetical-chronological order
16 replies