mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
feat: licensed users migration table (#8748)
This commit is contained in:
parent
9440b52464
commit
ec9be77383
16
src/migrations/20241114103646-licensed-users.js
Normal file
16
src/migrations/20241114103646-licensed-users.js
Normal file
@ -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);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user