-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
13 additions
and
2 deletions.
There are no files selected for viewing
3 changes: 1 addition & 2 deletions
3
fhevm-engine/fhevm-db/migrations/20250131125649_add_large_ct_column.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
12 changes: 12 additions & 0 deletions
12
fhevm-engine/fhevm-db/migrations/20250205130209_create_pbs_computations_table.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |