From bd3d7d98ff87185f209c9714ef93aa18815d3892 Mon Sep 17 00:00:00 2001 From: Thiago Youssef Date: Fri, 1 Jul 2022 10:12:35 -0300 Subject: [PATCH 1/2] Increase notification text field length on database --- .../20220701113409_change_notification_text_type_to_text.rb | 5 +++++ db/structure.sql | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20220701113409_change_notification_text_type_to_text.rb diff --git a/db/migrate/20220701113409_change_notification_text_type_to_text.rb b/db/migrate/20220701113409_change_notification_text_type_to_text.rb new file mode 100644 index 0000000000..79c4b50279 --- /dev/null +++ b/db/migrate/20220701113409_change_notification_text_type_to_text.rb @@ -0,0 +1,5 @@ +class ChangeNotificationTextTypeToText < ActiveRecord::Migration[6.1] + def change + change_column :notifications, :text, :text + end +end diff --git a/db/structure.sql b/db/structure.sql index 76bfe8b43a..26121f552c 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -2215,7 +2215,7 @@ ALTER SEQUENCE public.nameservers_id_seq OWNED BY public.nameservers.id; CREATE TABLE public.notifications ( id integer NOT NULL, registrar_id integer NOT NULL, - text character varying NOT NULL, + text text NOT NULL, attached_obj_type character varying, attached_obj_id integer, read boolean NOT NULL, @@ -5412,4 +5412,5 @@ INSERT INTO "schema_migrations" (version) VALUES ('20220413084536'), ('20220413084748'), ('20220504090512'), -('20220406085500'); +('20220406085500') +('20220701113409'); From b335fac1594da275b4098371733faad4f658b189 Mon Sep 17 00:00:00 2001 From: Thiago Youssef Date: Fri, 1 Jul 2022 10:14:59 -0300 Subject: [PATCH 2/2] Fix schema --- db/structure.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/structure.sql b/db/structure.sql index 26121f552c..0d2055c2ec 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -5412,5 +5412,5 @@ INSERT INTO "schema_migrations" (version) VALUES ('20220413084536'), ('20220413084748'), ('20220504090512'), -('20220406085500') +('20220406085500'), ('20220701113409');