diff --git a/src/migrations/20250109150818-unique-connections-table.js b/src/migrations/20250109150818-unique-connections-table.js new file mode 100644 index 000000000000..6429b77a2945 --- /dev/null +++ b/src/migrations/20250109150818-unique-connections-table.js @@ -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); +};