File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments