From 1616bfdd09ea703df4d2982457ea570392bdd8f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Mon, 10 Aug 2020 22:16:20 +0200 Subject: [PATCH] fix: add created_at to feature_types --- ...20200810200901-add-created-at-to-feature-types.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 migrations/20200810200901-add-created-at-to-feature-types.js diff --git a/migrations/20200810200901-add-created-at-to-feature-types.js b/migrations/20200810200901-add-created-at-to-feature-types.js new file mode 100644 index 0000000000..9489aa8f90 --- /dev/null +++ b/migrations/20200810200901-add-created-at-to-feature-types.js @@ -0,0 +1,12 @@ +'use strict'; + +exports.up = function(db, callback) { + db.runSql( + 'ALTER TABLE feature_types ADD "created_at" TIMESTAMP WITH TIME ZONE default now();', + callback, + ); +}; + +exports.down = function(db, callback) { + db.runSql('ALTER TABLE feature_types DROP COLUMN "created_at";', callback); +};