Permalink
Browse files

Fix logs.created_on column definition

  • Loading branch information...
1 parent 6c8a07c commit 6cf53e7ca7dd82a4c054c7e01f9772eb02f656b6 @abh abh committed Feb 17, 2012
Showing with 4 additions and 1 deletion.
  1. +1 −1 lib/NP/Model.pm
  2. +3 −0 sql/ntppool.update
View
@@ -53,7 +53,7 @@ __PACKAGE__->meta->setup(
type => { type => 'varchar', length => 50 },
title => { type => 'varchar', length => 255 },
message => { type => 'text', length => 65535 },
- created_on => { type => 'datetime', default => '0000-00-00 00:00:00', not_null => 1 },
+ created_on => { type => 'datetime', default => 'now', not_null => 1 },
],
primary_key_columns => [ 'id' ],
View
@@ -396,3 +396,6 @@ alter table zone_server_counts
alter table zone_server_counts
drop key `zone`,
add unique key `zone_date` (`zone_id`, `date`, `ip_version`);
+
+#53
+alter table logs modify created_on datetime not null;

0 comments on commit 6cf53e7

Please sign in to comment.