Skip to content

Commit

Permalink
migration: flag-trends users - add users column
Browse files Browse the repository at this point in the history
  • Loading branch information
Tymek committed Feb 15, 2024
1 parent 2999f8d commit 8e8af98
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/migrations/20240215133213-flag-trends-users.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
'use strict';

exports.up = function(db, cb) {
db.runSql(
`
ALTER TABLE flag_trends ADD COLUMN IF NOT EXISTS users INTEGER DEFAULT 0;
`,
cb,
);
};

exports.down = function(db, cb) {
db.runSql(`
ALTER TABLE flag_trends DROP COLUMN IF EXISTS users;
`, cb);
};

0 comments on commit 8e8af98

Please sign in to comment.