Skip to content

Commit

Permalink
feat: migration for unique connections (#9076)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew authored Jan 10, 2025
1 parent 91cebc5 commit 5a1f1a0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/migrations/20250109150818-unique-connections-table.js
Original file line number Diff line number Diff line change
@@ -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);
};

0 comments on commit 5a1f1a0

Please sign in to comment.