15 lines
261 B
MySQL
15 lines
261 B
MySQL
|
|
||
|
|
||
|
|
||
|
ALTER TABLE api.builds
|
||
|
ALTER COLUMN created_at SET DEFAULT now();
|
||
|
|
||
|
ALTER TABLE api.builds
|
||
|
ALTER COLUMN updated_at SET DEFAULT now();
|
||
|
|
||
|
CREATE TRIGGER update_builds
|
||
|
BEFORE UPDATE ON api.builds
|
||
|
FOR EACH ROW
|
||
|
EXECUTE PROCEDURE moddatetime(updated_at);
|
||
|
|