Skip to content

armgit / ente

Public Imported from GitHub
0

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

[server] Add ip column

Neeraj Guptabadd9263f465
diff --git a/server/migrations/84_add_cast_column.down.sql b/server/migrations/84_add_cast_column.down.sql
new file mode 100644
index 0000000000..c08fed94e6
--- /dev/null
+++ b/server/migrations/84_add_cast_column.down.sql
@@ -0,0 +1 @@
+ALTER TABLE casting DROP COLUMN IF EXISTS ip;
\ No newline at end of file
diff --git a/server/migrations/84_add_cast_column.up.sql b/server/migrations/84_add_cast_column.up.sql
new file mode 100644
index 0000000000..828c2e57c2
--- /dev/null
+++ b/server/migrations/84_add_cast_column.up.sql
@@ -0,0 +1,5 @@
+--- Delete all rows from casting table and add a non-nullable column called ip
+BEGIN;
+DELETE FROM casting;
+ALTER TABLE casting ADD COLUMN ip text NOT NULL;
+COMMIT;