Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michael Iseard
Kudos-Donations
Commits
c8f067fb
Commit
c8f067fb
authored
Aug 17, 2020
by
Michael Iseard
Browse files
Fix default value for datetime fields
parent
f5ecb1f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Service/ActivatorService.php
View file @
c8f067fb
...
...
@@ -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,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment