mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
add .sql script for setting default date values on base entity
This commit is contained in:
parent
3615714b6c
commit
5753eb1382
1 changed files with 8 additions and 0 deletions
|
|
@ -0,0 +1,8 @@
|
|||
--TODO: Possibly convert to stored procedure
|
||||
ALTER TABLE
|
||||
filterlistsdata.List MODIFY COLUMN AddedDateUtc DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL;
|
||||
ALTER TABLE
|
||||
filterlistsdata.List MODIFY COLUMN ModifiedDateUtc DATETIME DEFAULT NULL
|
||||
ON
|
||||
UPDATE
|
||||
CURRENT_TIMESTAMP;
|
||||
Loading…
Reference in a new issue