Skip to content

Commit 505aad4

Browse files
committed
fix(stub): update migration stub to be 1-1 with boringnode/queue
1 parent ba226e7 commit 505aad4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

stubs/migration.stub

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default class extends BaseSchema {
1313
this.schema.createTable('queue_jobs', (table) => {
1414
table.string('id', 255).notNullable()
1515
table.string('queue', 255).notNullable()
16-
table.enum('status', ['pending', 'active', 'delayed']).notNullable()
16+
table.enu('status', ['pending', 'active', 'delayed']).notNullable()
1717
table.text('data').notNullable()
1818
table.bigint('score').unsigned().nullable()
1919
table.string('worker_id', 255).nullable()
@@ -41,7 +41,7 @@ export default class extends BaseSchema {
4141
table.integer('run_count').unsigned().notNullable().defaultTo(0)
4242
table.timestamp('next_run_at').nullable()
4343
table.timestamp('last_run_at').nullable()
44-
table.timestamp('created_at').notNullable()
44+
table.timestamp('created_at').notNullable().defaultTo(this.#connection.fn.now())
4545
table.index(['status', 'next_run_at'])
4646
})
4747
}

0 commit comments

Comments
 (0)