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);