From ec9be77383154ec5f25831b35454e55e6c72a715 Mon Sep 17 00:00:00 2001 From: Jaanus Sellin Date: Thu, 14 Nov 2024 10:59:29 +0200 Subject: [PATCH] feat: licensed users migration table (#8748) --- src/migrations/20241114103646-licensed-users.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/migrations/20241114103646-licensed-users.js diff --git a/src/migrations/20241114103646-licensed-users.js b/src/migrations/20241114103646-licensed-users.js new file mode 100644 index 000000000000..3243756dc199 --- /dev/null +++ b/src/migrations/20241114103646-licensed-users.js @@ -0,0 +1,16 @@ +exports.up = (db, cb) => { + db.runSql(` + CREATE TABLE IF NOT EXISTS licensed_users ( + count INT, + date DATE PRIMARY KEY + ); + `, cb); + +}; + +exports.down = (db, cb) => { + db.runSql(` + DROP TABLE IF EXISTS licensed_users; + `, cb); +}; +