diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2022-10-13 11:29:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-13 11:29:19 +0200 |
commit | b04633a9614609f18b39ba0f0015df301a04ab64 (patch) | |
tree | c2cc9a8f4998e1e258f828d3d9d8db4440b10d8a /db | |
parent | 7afc6a630c76fb071bd189af3ac1366efc82f819 (diff) |
Add image processing and generate blurhash for server thumbnail (#19348)
Remove separate server hero setting
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20221012181003_add_blurhash_to_site_uploads.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20221012181003_add_blurhash_to_site_uploads.rb b/db/migrate/20221012181003_add_blurhash_to_site_uploads.rb new file mode 100644 index 00000000000..e1c87712b12 --- /dev/null +++ b/db/migrate/20221012181003_add_blurhash_to_site_uploads.rb @@ -0,0 +1,5 @@ +class AddBlurhashToSiteUploads < ActiveRecord::Migration[6.1] + def change + add_column :site_uploads, :blurhash, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index 2f9058509cf..3972f777ade 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2022_10_06_061337) do +ActiveRecord::Schema.define(version: 2022_10_12_181003) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -866,6 +866,7 @@ ActiveRecord::Schema.define(version: 2022_10_06_061337) do t.json "meta" t.datetime "created_at", null: false t.datetime "updated_at", null: false + t.string "blurhash" t.index ["var"], name: "index_site_uploads_on_var", unique: true end |