From 11493024a07d13c2213913b0ef2e37b2aff7e409 Mon Sep 17 00:00:00 2001 From: Jordan Wright Date: Tue, 19 Feb 2019 22:00:16 -0600 Subject: [PATCH] Changed MySQL column type for redirect_url to "TEXT" to avoid truncation. Fixes #1346 --- .../20190219214543_0.8.0_redirect_url_field.sql | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 db/db_mysql/migrations/20190219214543_0.8.0_redirect_url_field.sql diff --git a/db/db_mysql/migrations/20190219214543_0.8.0_redirect_url_field.sql b/db/db_mysql/migrations/20190219214543_0.8.0_redirect_url_field.sql new file mode 100644 index 00000000..2affb4dd --- /dev/null +++ b/db/db_mysql/migrations/20190219214543_0.8.0_redirect_url_field.sql @@ -0,0 +1,8 @@ + +-- +goose Up +-- SQL in section 'Up' is executed when this migration is applied +ALTER TABLE `pages` MODIFY redirect_url TEXT; + +-- +goose Down +-- SQL section 'Down' is executed when this migration is rolled back +ALTER TABLE `pages` MODIFY redirect_url VARCHAR(255);