From 9f3c2d5aec667f5c1bcb11701eb6e821c04c9ebf Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Mon, 18 Dec 2023 20:58:50 -0700 Subject: [PATCH] Drop blurhashes table (#527) Fixes https://github.com/turt2live/matrix-media-repo/issues/458 Migration is the inverse of 14. --- migrations/27_drop_blurhashes_down.sql | 4 ++++ migrations/27_drop_blurhashes_up.sql | 1 + 2 files changed, 5 insertions(+) create mode 100644 migrations/27_drop_blurhashes_down.sql create mode 100644 migrations/27_drop_blurhashes_up.sql diff --git a/migrations/27_drop_blurhashes_down.sql b/migrations/27_drop_blurhashes_down.sql new file mode 100644 index 00000000..1ff24109 --- /dev/null +++ b/migrations/27_drop_blurhashes_down.sql @@ -0,0 +1,4 @@ +CREATE TABLE IF NOT EXISTS blurhashes ( + sha256_hash TEXT PRIMARY KEY NOT NULL, + blurhash TEXT NOT NULL +); diff --git a/migrations/27_drop_blurhashes_up.sql b/migrations/27_drop_blurhashes_up.sql new file mode 100644 index 00000000..e0eac9d3 --- /dev/null +++ b/migrations/27_drop_blurhashes_up.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS blurhashes;