about summary refs log tree commit diff
path: root/db/migrate
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2020-04-26 23:29:08 +0200
committerGitHub <noreply@github.com>2020-04-26 23:29:08 +0200
commitc3ca3801f2b8a44db09b83da2e64130eb2c41ef1 (patch)
treee73ca016feb38abe9ce7d259e572964ddb86f8d4 /db/migrate
parent2744f61696df70e722cd6ade9564ad4f0f8f34d6 (diff)
Add separate cache directory for non-local uploads (#12821)
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20200417125749_add_storage_schema_version.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20200417125749_add_storage_schema_version.rb b/db/migrate/20200417125749_add_storage_schema_version.rb
new file mode 100644
index 000000000..7438f97ba
--- /dev/null
+++ b/db/migrate/20200417125749_add_storage_schema_version.rb
@@ -0,0 +1,9 @@
+class AddStorageSchemaVersion < ActiveRecord::Migration[5.2]
+  def change
+    add_column :preview_cards, :image_storage_schema_version, :integer
+    add_column :accounts, :avatar_storage_schema_version, :integer
+    add_column :accounts, :header_storage_schema_version, :integer
+    add_column :media_attachments, :file_storage_schema_version, :integer
+    add_column :custom_emojis, :image_storage_schema_version, :integer
+  end
+end