Skip to content

armgit / ente

Public Imported from GitHub
0

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

Index temp object expiry cleanup

Neeraj Gupta631dc0cfdc52
diff --git a/server/migrations/123_temp_objects_expiration_time_idx.down.sql b/server/migrations/123_temp_objects_expiration_time_idx.down.sql
new file mode 100644
index 0000000000..2df850931c
--- /dev/null
+++ b/server/migrations/123_temp_objects_expiration_time_idx.down.sql
@@ -0,0 +1 @@
+DROP INDEX CONCURRENTLY IF EXISTS temp_objects_expiration_time_idx;
diff --git a/server/migrations/123_temp_objects_expiration_time_idx.up.sql b/server/migrations/123_temp_objects_expiration_time_idx.up.sql
new file mode 100644
index 0000000000..a72d0ee938
--- /dev/null
+++ b/server/migrations/123_temp_objects_expiration_time_idx.up.sql
@@ -0,0 +1,2 @@
+CREATE INDEX CONCURRENTLY IF NOT EXISTS temp_objects_expiration_time_idx
+ ON temp_objects (expiration_time);