π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fold social wall migrations into initial schema
Anand Baburajan5d9321342d50
diff --git a/server/migrations/122_wall_multiple_links.down.sql b/server/migrations/122_wall_multiple_links.down.sqldeleted file mode 100644index d91f7f0f6a..0000000000--- a/server/migrations/122_wall_multiple_links.down.sql+++ /dev/null@@ -1,17 +0,0 @@-DELETE FROM wall_link_sessions;--DELETE FROM wall_links existing-USING wall_links newer-WHERE existing.wall_id = newer.wall_id- AND (- existing.updated_at < newer.updated_at- OR (existing.updated_at = newer.updated_at AND existing.auth_key_hash < newer.auth_key_hash)- );--DROP INDEX IF EXISTS idx_wall_links_wall_updated;--ALTER TABLE wall_links- DROP CONSTRAINT IF EXISTS wall_links_pkey;--ALTER TABLE wall_links- ADD PRIMARY KEY (wall_id);diff --git a/server/migrations/122_wall_multiple_links.up.sql b/server/migrations/122_wall_multiple_links.up.sqldeleted file mode 100644index b382ffadb7..0000000000--- a/server/migrations/122_wall_multiple_links.up.sql+++ /dev/null@@ -1,8 +0,0 @@-ALTER TABLE wall_links- DROP CONSTRAINT IF EXISTS wall_links_pkey;--ALTER TABLE wall_links- ADD PRIMARY KEY (wall_id, auth_key_hash);--CREATE INDEX IF NOT EXISTS idx_wall_links_wall_updated- ON wall_links (wall_id, updated_at DESC);diff --git a/server/migrations/123_wall_single_active_link.down.sql b/server/migrations/123_wall_single_active_link.down.sqldeleted file mode 100644index b382ffadb7..0000000000--- a/server/migrations/123_wall_single_active_link.down.sql+++ /dev/null@@ -1,8 +0,0 @@-ALTER TABLE wall_links- DROP CONSTRAINT IF EXISTS wall_links_pkey;--ALTER TABLE wall_links- ADD PRIMARY KEY (wall_id, auth_key_hash);--CREATE INDEX IF NOT EXISTS idx_wall_links_wall_updated- ON wall_links (wall_id, updated_at DESC);diff --git a/server/migrations/123_wall_single_active_link.up.sql b/server/migrations/123_wall_single_active_link.up.sqldeleted file mode 100644index d91f7f0f6a..0000000000--- a/server/migrations/123_wall_single_active_link.up.sql+++ /dev/null@@ -1,17 +0,0 @@-DELETE FROM wall_link_sessions;--DELETE FROM wall_links existing-USING wall_links newer-WHERE existing.wall_id = newer.wall_id- AND (- existing.updated_at < newer.updated_at- OR (existing.updated_at = newer.updated_at AND existing.auth_key_hash < newer.auth_key_hash)- );--DROP INDEX IF EXISTS idx_wall_links_wall_updated;--ALTER TABLE wall_links- DROP CONSTRAINT IF EXISTS wall_links_pkey;--ALTER TABLE wall_links- ADD PRIMARY KEY (wall_id);