Skip to content

Commit

Permalink
fix(migrator): set primary key for schema_versions table
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainLanz committed Sep 21, 2023
1 parent 9e89c0d commit 184db5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/migration/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ export class MigrationRunner extends EventEmitter {
*/
this.emit('create:schema_versions:table')
await this.client.schema.createTable(this.schemaVersionsTableName, (table) => {
table.integer('version').notNullable()
table.integer('version').unsigned().primary()
})
}

Expand Down

0 comments on commit 184db5f

Please sign in to comment.