diff --git a/src/migrations/20240828154255-user-first-seen-at.js b/src/migrations/20240828154255-user-first-seen-at.js new file mode 100644 index 0000000000..90cf6d7a00 --- /dev/null +++ b/src/migrations/20240828154255-user-first-seen-at.js @@ -0,0 +1,18 @@ +'use strict'; + +exports.up = function (db, cb) { + db.runSql( + ` + ALTER TABLE users ADD COLUMN first_seen_at TIMESTAMP WITHOUT TIME ZONE; + `, + cb, + ); +}; + +exports.down = function (db, cb) { + db.runSql( + ` + ALTER TABLE users DROP COLUMN first_seen_at; + `, + cb); +};