Skip to content

armgit / ente

Public Imported from GitHub
0

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

[server] make changes to db schema be migrations

Priyanshu Dangareed82beb6195f
diff --git a/server/migrations/125_add_cast_device_name.down.sql b/server/migrations/125_add_cast_device_name.down.sql
new file mode 100644
index 0000000000..cd10d6ea06
--- /dev/null
+++ b/server/migrations/125_add_cast_device_name.down.sql
@@ -0,0 +1 @@
+ALTER TABLE casting DROP COLUMN IF EXISTS device_name;
diff --git a/server/migrations/125_add_cast_device_name.up.sql b/server/migrations/125_add_cast_device_name.up.sql
new file mode 100644
index 0000000000..4dbf7adab6
--- /dev/null
+++ b/server/migrations/125_add_cast_device_name.up.sql
@@ -0,0 +1 @@
+ALTER TABLE casting ADD COLUMN device_name VARCHAR(512) DEFAULT NULL;
diff --git a/server/migrations/78_cast.up.sql b/server/migrations/78_cast.up.sql
index 8d4d90c6d5..602db3b9ac 100644
--- a/server/migrations/78_cast.up.sql
+++ b/server/migrations/78_cast.up.sql
@@ -6,7 +6,6 @@ CREATE TABLE IF NOT EXISTS casting
public_key VARCHAR(512) NOT NULL,
collection_id BIGINT,
cast_user BIGINT,
- device_name VARCHAR(512) DEFAULT NULL,
encrypted_payload text,
token VARCHAR(512),
is_deleted BOOLEAN DEFAULT FALSE,