diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-05-24 15:33:27 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-05-24 15:33:27 +0100 |
commit | e1444cafa50b8857bb40049a921bd388684db03f (patch) | |
tree | 08821fa7a0b4e8f62e824a8662dab938ecb017eb /perllib/FixMyStreet/DB/Result/Token.pm | |
parent | d9395396a76ce8254fca8637d3bde9e10b7f7564 (diff) |
Add InflateColumn::DateTime to all models.
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Token.pm')
-rw-r--r-- | perllib/FixMyStreet/DB/Result/Token.pm | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Token.pm b/perllib/FixMyStreet/DB/Result/Token.pm index e4ea7262a..d838e9fc2 100644 --- a/perllib/FixMyStreet/DB/Result/Token.pm +++ b/perllib/FixMyStreet/DB/Result/Token.pm @@ -8,26 +8,27 @@ use warnings; use base 'DBIx::Class::Core'; -__PACKAGE__->load_components("FilterColumn"); +__PACKAGE__->load_components("FilterColumn", "InflateColumn::DateTime"); __PACKAGE__->table("token"); __PACKAGE__->add_columns( - "scope", - { data_type => "text", is_nullable => 0 }, - "token", - { data_type => "text", is_nullable => 0 }, - "data", - { data_type => "bytea", is_nullable => 0 }, - "created", - { - data_type => "timestamp", - default_value => \"ms_current_timestamp()", - is_nullable => 0, - }, + "scope", + { data_type => "text", is_nullable => 0 }, + "token", + { data_type => "text", is_nullable => 0 }, + "data", + { data_type => "bytea", is_nullable => 0 }, + "created", + { + data_type => "timestamp", + default_value => \"ms_current_timestamp()", + is_nullable => 0, + }, ); -__PACKAGE__->set_primary_key( "scope", "token" ); +__PACKAGE__->set_primary_key("scope", "token"); -# Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-03-24 17:36:08 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tClh4Spd63IpCeiGVHfrEQ + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-05-24 15:32:43 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ET4L1y6yWmEUDKPKa7wJiw # Trying not to use this # use mySociety::DBHandle qw(dbh); |