mirror of
https://github.com/knex/knex.git
synced 2025-07-16 05:20:59 +00:00
15 lines
324 B
JavaScript
15 lines
324 B
JavaScript
![]() |
exports.up = function(knex, Promise) {
|
||
|
return Promise.all([
|
||
|
knex.schema.createTable('null_date', function(t) {
|
||
|
t.increments('id').primary();
|
||
|
t.timestamp('deleted_at')
|
||
|
.nullable()
|
||
|
.defaultTo(null);
|
||
|
}),
|
||
|
]);
|
||
|
};
|
||
|
|
||
|
exports.down = (knex) => {
|
||
|
return knex.schema.dropTable('null_date');
|
||
|
};
|