Skip to content

Commit

Permalink
chore: update migrations scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
0xawaz committed Feb 12, 2025
1 parent 3993e3c commit e000e5e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ALTER TABLE ciphertexts
ADD COLUMN IF NOT EXISTS large_ct BYTEA,
ADD COLUMN IF NOT EXISTS is_sent BOOLEAN NOT NULL DEFAULT FALSE,
ADD COLUMN IF NOT EXISTS is_allowed BOOLEAN NOT NULL DEFAULT FALSE;
ADD COLUMN IF NOT EXISTS is_sent BOOLEAN NOT NULL DEFAULT FALSE;
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
CREATE TABLE IF NOT EXISTS pbs_computations (
tenant_id INT NOT NULL,
handle BYTEA NOT NULL,
created_at TIMESTAMP NOT NULL DEFAULT NOW(),
completed_at TIMESTAMP,
is_completed BOOLEAN NOT NULL DEFAULT FALSE,
PRIMARY KEY (tenant_id, handle)
);


CREATE INDEX IF NOT EXISTS pbs_computations_handle_hash_idx ON pbs_computations USING HASH (handle);
CREATE INDEX IF NOT EXISTS ciphertexts_handle_hash_idx ON ciphertexts USING HASH (handle);

0 comments on commit e000e5e

Please sign in to comment.