From 0ab3f2bfa44e32dbcf32156c366259f6fd4b21ec Mon Sep 17 00:00:00 2001 From: Luna Date: Fri, 26 Apr 2019 03:55:53 -0300 Subject: [PATCH] add 1_webhook_avatars migration --- manage/cmd/migration/scripts/1_webhook_avatars.sql | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 manage/cmd/migration/scripts/1_webhook_avatars.sql diff --git a/manage/cmd/migration/scripts/1_webhook_avatars.sql b/manage/cmd/migration/scripts/1_webhook_avatars.sql new file mode 100644 index 0000000..150efbb --- /dev/null +++ b/manage/cmd/migration/scripts/1_webhook_avatars.sql @@ -0,0 +1,13 @@ +-- webhook_avatars table. check issue 46. +CREATE TABLE IF NOT EXISTS webhook_avatars ( + webhook_id bigint, + + -- this is e.g a sha256 hash of EmbedURL.to_md_url + hash text, + + -- we don't hardcode the mediaproxy url here for obvious reasons. + -- the output of EmbedURL.to_md_url goes here. + md_url_redir text, + + PRIMARY KEY (webhook_id, hash) +);