From da6091e0212782f8784fb54addca343484fda301 Mon Sep 17 00:00:00 2001 From: Jordan Wright Date: Sat, 9 Jun 2018 18:10:27 -0500 Subject: [PATCH] Add migration to change MySQL storage of HTML to be mediumtext to hold larger HTML pages. Fixes #1067 --- .../20180609164054_0.7.0_update_html_storage.sql | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 db/db_mysql/migrations/20180609164054_0.7.0_update_html_storage.sql diff --git a/db/db_mysql/migrations/20180609164054_0.7.0_update_html_storage.sql b/db/db_mysql/migrations/20180609164054_0.7.0_update_html_storage.sql new file mode 100644 index 00000000..dab6f1b7 --- /dev/null +++ b/db/db_mysql/migrations/20180609164054_0.7.0_update_html_storage.sql @@ -0,0 +1,10 @@ + +-- +goose Up +-- SQL in section 'Up' is executed when this migration is applied +ALTER TABLE templates MODIFY html MEDIUMTEXT; +ALTER TABLE pages MODIFY html MEDIUMTEXT; + +-- +goose Down +-- SQL section 'Down' is executed when this migration is rolled back +ALTER TABLE templates MODIFY html TEXT; +ALTER TABLE pages MODIFY html TEXT;