Skip to content

Conversation

austin-hall-skylight
Copy link

Fixes #1552.
Removes call to createIfNotExists for migrationTableSchema in ensureMigrationTableExists since it will always be checked in ensureMigrationTablesExists. This enables using the migrationTableSchema property in MigratorProps with MS SQL Server as the migrator will no longer attempt to recreate the schema every time migrations are run.

Copy link

vercel bot commented Oct 7, 2025

@austin-hall-skylight is attempting to deploy a commit to the Kysely Team Team on Vercel.

A member of the Team first needs to authorize it.

* tables.
*
* This only works on postgres.
* This only works on postgres and mssql.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated the relevant test and tested it manually in my project that is using Kysely. Is there anything else that I need to check to confirm that migrationTableSchema works with mssql?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrator attempts to create schema even when it exists

1 participant