mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-16 00:06:40 +01:00
20 lines
380 B
JavaScript
20 lines
380 B
JavaScript
|
'use strict';
|
||
|
|
||
|
exports.up = function (db, callback) {
|
||
|
db.runSql(
|
||
|
`
|
||
|
ALTER TABLE users ADD COLUMN IF NOT EXISTS deleted_at TIMESTAMP WITH TIME ZONE;
|
||
|
`,
|
||
|
callback,
|
||
|
);
|
||
|
};
|
||
|
|
||
|
exports.down = function (db, callback) {
|
||
|
db.runSql(
|
||
|
`
|
||
|
ALTER TABLE users DROP COLUMN IF EXISTS deleted_at;
|
||
|
`,
|
||
|
callback,
|
||
|
);
|
||
|
};
|