Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix logs.created_on column definition

  • Loading branch information...
commit 6cf53e7ca7dd82a4c054c7e01f9772eb02f656b6 1 parent 6c8a07c
Ask Bjørn Hansen abh authored
Showing with 4 additions and 1 deletion.
  1. +1 −1  lib/NP/Model.pm
  2. +3 −0  sql/ntppool.update
2  lib/NP/Model.pm
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' ],
3  sql/ntppool.update
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;
Please sign in to comment.
Something went wrong with that request. Please try again.