forked from Cavemanon/cavepaintings
Drop SCORE_DATETIME/NOW - all the databases we care about now support TIMESTAMP/CURRENT_TIMESTAMP
This commit is contained in:
@ -15,7 +15,7 @@ class Notes extends Extension
|
||||
image_id INTEGER NOT NULL,
|
||||
user_id INTEGER NOT NULL,
|
||||
user_ip CHAR(15) NOT NULL,
|
||||
date SCORE_DATETIME NOT NULL,
|
||||
date TIMESTAMP NOT NULL,
|
||||
x1 INTEGER NOT NULL,
|
||||
y1 INTEGER NOT NULL,
|
||||
height INTEGER NOT NULL,
|
||||
@ -30,7 +30,7 @@ class Notes extends Extension
|
||||
id SCORE_AIPK,
|
||||
image_id INTEGER NOT NULL,
|
||||
user_id INTEGER NOT NULL,
|
||||
date SCORE_DATETIME NOT NULL,
|
||||
date TIMESTAMP NOT NULL,
|
||||
FOREIGN KEY (user_id) REFERENCES users(id) ON UPDATE CASCADE ON DELETE CASCADE,
|
||||
FOREIGN KEY (image_id) REFERENCES images(id) ON DELETE CASCADE
|
||||
");
|
||||
@ -44,7 +44,7 @@ class Notes extends Extension
|
||||
image_id INTEGER NOT NULL,
|
||||
user_id INTEGER NOT NULL,
|
||||
user_ip CHAR(15) NOT NULL,
|
||||
date SCORE_DATETIME NOT NULL,
|
||||
date TIMESTAMP NOT NULL,
|
||||
x1 INTEGER NOT NULL,
|
||||
y1 INTEGER NOT NULL,
|
||||
height INTEGER NOT NULL,
|
||||
|
Reference in New Issue
Block a user