Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Remove file count migration lock timeout

Neeraj Guptae5dceb02841f
diff --git a/server/migrations/133_file_counts.down.sql b/server/migrations/133_file_counts.down.sql
index f6e4e5aeb7..ccbe8ec41f 100644
--- a/server/migrations/133_file_counts.down.sql
+++ b/server/migrations/133_file_counts.down.sql
@@ -1,9 +1,5 @@
-SET lock_timeout = '5s';
-
ALTER TABLE usage
DROP CONSTRAINT usage_file_counts_both_ready_or_both_unknown,
DROP COLUMN file_count_source_version,
DROP COLUMN locker_file_count,
DROP COLUMN photos_file_count;
-
-RESET lock_timeout;
diff --git a/server/migrations/133_file_counts.up.sql b/server/migrations/133_file_counts.up.sql
index 87fb076c28..f8492d46ee 100644
--- a/server/migrations/133_file_counts.up.sql
+++ b/server/migrations/133_file_counts.up.sql
@@ -1,5 +1,3 @@
-SET lock_timeout = '5s';
-
ALTER TABLE usage
ADD COLUMN photos_file_count BIGINT,
ADD COLUMN locker_file_count BIGINT,
@@ -7,5 +5,3 @@ ALTER TABLE usage
ADD CONSTRAINT usage_file_counts_both_ready_or_both_unknown
CHECK ((photos_file_count IS NULL) = (locker_file_count IS NULL))
NOT VALID;
-
-RESET lock_timeout;