diff --git a/src/Migrator/index.ts b/src/Migrator/index.ts index a28524de..f332da83 100644 --- a/src/Migrator/index.ts +++ b/src/Migrator/index.ts @@ -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() }) }