From cac59a152749001ab9c52f9ba5c67784bfbf54f8 Mon Sep 17 00:00:00 2001 From: Darin McBride Date: Mon, 17 Aug 2015 13:01:36 -0600 Subject: [PATCH] Lengthen subject line max Sitter expiration messages need slightly longer subject lines. --- lib/Lacuna/DB/Result/Message.pm | 2 +- var/upgrades/sitter.sql | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Lacuna/DB/Result/Message.pm b/lib/Lacuna/DB/Result/Message.pm index 6212809b..c0c1250f 100644 --- a/lib/Lacuna/DB/Result/Message.pm +++ b/lib/Lacuna/DB/Result/Message.pm @@ -10,7 +10,7 @@ use Lacuna::Util qw(format_date); __PACKAGE__->table('message'); __PACKAGE__->add_columns( in_reply_to => { data_type => 'int', size => 11, is_nullable => 1 }, - subject => { data_type => 'varchar', size => 30, is_nullable => 0 }, + subject => { data_type => 'varchar', size => 64, is_nullable => 0 }, body => { data_type => 'mediumtext', is_nullable => 1 }, date_sent => { data_type => 'datetime', is_nullable => 0, set_on_create => 1 }, from_id => { data_type => 'int', size => 11, is_nullable => 0 }, diff --git a/var/upgrades/sitter.sql b/var/upgrades/sitter.sql index 4cd40f1a..d92ca3bf 100644 --- a/var/upgrades/sitter.sql +++ b/var/upgrades/sitter.sql @@ -9,4 +9,6 @@ CREATE TABLE sitter_auths ( PRIMARY KEY (baby_id, sitter_id), CONSTRAINT sitter_auths_fk_baby_id FOREIGN KEY (baby_id) REFERENCES empire (id) ON DELETE CASCADE, CONSTRAINT sitter_auths_fk_sitter_id FOREIGN KEY (sitter_id) REFERENCES empire (id) ON DELETE CASCADE -) ENGINE=InnoDB-- +) ENGINE=InnoDB;-- + +alter table message modify subject varchar(64); -- 2.51.2