Skip to content

armgit / ente

Public Imported from GitHub
0

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

Add datacenter column for embeddings

Neeraj Guptada188aa753b7
diff --git a/server/migrations/86_add_dc_embedding.down.sql b/server/migrations/86_add_dc_embedding.down.sql
new file mode 100644
index 0000000000..d42a539f99
--- /dev/null
+++ b/server/migrations/86_add_dc_embedding.down.sql
@@ -0,0 +1,2 @@
+-- Add types for the new dcs that are introduced for the derived data
+ALTER TABLE embeddings DROP COLUMN IF EXISTS datacenters;
\ No newline at end of file
diff --git a/server/migrations/86_add_dc_embedding.up.sql b/server/migrations/86_add_dc_embedding.up.sql
new file mode 100644
index 0000000000..eecb8c0135
--- /dev/null
+++ b/server/migrations/86_add_dc_embedding.up.sql
@@ -0,0 +1,3 @@
+-- Add types for the new dcs that are introduced for the derived data
+ALTER TYPE s3region ADD VALUE 'wasabi-eu-central-2-derived';
+ALTER TABLE embeddings ADD COLUMN IF NOT EXISTS datacenters s3region[] default '{b2-eu-cen}';
\ No newline at end of file