X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fchatty;a=blobdiff_plain;f=lib%2FChatty%2FSchema%2FResult%2FRoom.pm;h=53516f3050d20ddb1e57eccccf5e9242a8b4e73a;hp=7ae5643e8c20f78bfc0186fd1f37439103484bd1;hb=d2a57728529b95fa1c2e3da677e64c848e7d065b;hpb=9b535163e614abc2ef39b43fa4aef90e644efa41 diff --git a/lib/Chatty/Schema/Result/Room.pm b/lib/Chatty/Schema/Result/Room.pm index 7ae5643..53516f3 100644 --- a/lib/Chatty/Schema/Result/Room.pm +++ b/lib/Chatty/Schema/Result/Room.pm @@ -37,7 +37,7 @@ __PACKAGE__->table("room"); =head2 created data_type: 'timestamp' - default_value: NOW + default_value: current_timestamp is_nullable: 1 =cut @@ -48,9 +48,14 @@ __PACKAGE__->add_columns( "name", { data_type => "text", is_nullable => 1 }, "created", - { data_type => "timestamp", default_value => \"NOW", is_nullable => 1 }, + { + data_type => "timestamp", + default_value => \"current_timestamp", + is_nullable => 1, + }, ); __PACKAGE__->set_primary_key("id"); +__PACKAGE__->add_unique_constraint("name_unique", ["name"]); =head1 RELATIONS @@ -85,8 +90,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-13 18:47:53 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2QSf3vZfv8xVbUKtsKsvDg +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-17 20:21:50 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:U0zHyxd2zFVEnATmgpd+Ag # You can replace this text with custom code or comments, and it will be preserved on regeneration