diff --git a/src/migrations/20240812120954-add-archived-at-to-projects.js b/src/migrations/20240812120954-add-archived-at-to-projects.js new file mode 100644 index 0000000000..3599c72bf7 --- /dev/null +++ b/src/migrations/20240812120954-add-archived-at-to-projects.js @@ -0,0 +1,19 @@ +'use strict'; + +exports.up = function (db, callback) { + db.runSql( + ` + CREATE INDEX idx_events_created_at_desc ON events (created_at DESC); + `, + callback, + ); +}; + +exports.down = function (db, callback) { + db.runSql( + ` + DROP INDEX IF EXISTS idx_events_created_at_desc; + `, + callback, + ); +};