1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-06-18 01:18:23 +02:00

feat: migration for unique connections (#9076)

This commit is contained in:
Mateusz Kwasniewski 2025-01-10 13:25:09 +01:00 committed by GitHub
parent 91cebc5afc
commit 5a1f1a00ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,14 @@
exports.up = function(db, cb) {
db.runSql(`
CREATE TABLE IF NOT EXISTS unique_connections
(
id VARCHAR(255) PRIMARY KEY NOT NULL,
updated_at TIMESTAMP DEFAULT now(),
hll BYTEA NOT NULL,
);
`, cb)
};
exports.down = function(db, cb) {
db.runSql(`DROP TABLE unique_connections;`, cb);
};