Commit c8f067fb authored by Michael Iseard's avatar Michael Iseard
Browse files

Fix default value for datetime fields

parent f5ecb1f1
......@@ -53,8 +53,8 @@ class ActivatorService {
$sql = "CREATE TABLE $table_name (
id mediumint(9) NOT NULL AUTO_INCREMENT,
created datetime DEFAULT CURRENT_TIMESTAMP NOT NULL,
last_updated datetime DEFAULT CURRENT_TIMESTAMP NOT NULL,
created datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
last_updated datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
email VARCHAR(320) NOT NULL,
name VARCHAR(255) NOT NULL,
street VARCHAR(255),
......@@ -85,8 +85,8 @@ class ActivatorService {
$sql = "CREATE TABLE $table_name (
id mediumint(9) NOT NULL AUTO_INCREMENT,
created datetime DEFAULT CURRENT_TIMESTAMP NOT NULL,
last_updated datetime DEFAULT CURRENT_TIMESTAMP NOT NULL,
created datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
last_updated datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
value DECIMAL(7,2) NOT NULL,
currency VARCHAR(255),
status VARCHAR(255) DEFAULT 'open' NOT NULL,
......@@ -121,8 +121,8 @@ class ActivatorService {
$sql = "CREATE TABLE $table_name (
id MEDIUMINT(9) NOT NULL AUTO_INCREMENT,
created datetime DEFAULT CURRENT_TIMESTAMP NOT NULL,
last_updated datetime DEFAULT CURRENT_TIMESTAMP NOT NULL,
created datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
last_updated datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
value DECIMAL(7,2) NOT NULL,
currency VARCHAR(255),
frequency VARCHAR(255) NOT NULL,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment