1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-03-23 00:16:25 +01:00
unleash.unleash/src/migrations/20250109150818-unique-connections-table.js
2025-01-10 13:41:07 +01:00

15 lines
329 B
JavaScript

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);
};