Skip to content

armgit / ente

Public Imported from GitHub
0

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

Add column to store upgraded-at timestamps

vishnukvmd21c132842845
diff --git a/server/migrations/99_add_upgraded_at.down.sql b/server/migrations/99_add_upgraded_at.down.sql
new file mode 100644
index 0000000000..6c5789be42
--- /dev/null
+++ b/server/migrations/99_add_upgraded_at.down.sql
@@ -0,0 +1 @@
+ALTER TABLE subscriptions DROP COLUMN upgraded_at;
diff --git a/server/migrations/99_add_upgraded_at.up.sql b/server/migrations/99_add_upgraded_at.up.sql
new file mode 100644
index 0000000000..1c8dc3d10f
--- /dev/null
+++ b/server/migrations/99_add_upgraded_at.up.sql
@@ -0,0 +1 @@
+ALTER TABLE subscriptions ADD COLUMN upgraded_at BIGINT DEFAULT 0;