Keystone 6: Automatic Migrations #385
Unanswered
molomby
asked this question in
Upgrading to Keystone 6
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
One of the major features of Keystone 6 is the addition of automatic migrations. Where possible, when changes are made to your Keystone schema, Keystone can now automatically create SQL migrations to apply the changes to your DB schema. This functionality will likely replace Keystone 5 workflows build around Knex Migrate or similar.
The configuration and use of the Keystone 6 migration functionality is covered in the database migrations section of the CLI docs. Internally, the real work here is done by Prisma Migrate. It may help to be familiar with the underlying Prisma tooling for more advanced setups.
Beta Was this translation helpful? Give feedback.
All reactions