diff --git a/src/migrations/20240806140453-add-archived-at-to-projects.js b/src/migrations/20240806140453-add-archived-at-to-projects.js new file mode 100644 index 000000000000..dcb4d528b940 --- /dev/null +++ b/src/migrations/20240806140453-add-archived-at-to-projects.js @@ -0,0 +1,19 @@ +'use strict'; + +exports.up = function (db, callback) { + db.runSql( + ` + ALTER TABLE projects ADD archived_at TIMESTAMP WITH TIME ZONE; + `, + callback, + ); +}; + +exports.down = function (db, callback) { + db.runSql( + ` + ALTER TABLE projects DROP COLUMN archived_at; + `, + callback, + ); +};