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 authored Jul 22, 2023
1 parent 7e01150 commit 5c6f502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Migrator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ export class Migrator extends EventEmitter implements MigratorContract {
*/
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 5c6f502

Please sign in to comment.