This commit is contained in:
Matej Kramny 2016-05-20 23:19:52 +01:00
parent 977835f923
commit 2caa691ed6

View File

@ -1,4 +1,7 @@
alter table user change `created` `created` datetime not null default current_timestamp; alter table user change `created` `created` datetime not null default current_timestamp;
alter table project change `created` `created` datetime not null default current_timestamp comment 'Created timestamp'; alter table project change `created` `created` datetime not null default current_timestamp comment 'Created timestamp';
alter table task change `created` `created` datetime not null default current_timestamp; alter table task change `created` `created` datetime not null default current_timestamp;
alter table user__token change `created` `created` datetime not null default current_timestamp; alter table user__token change `created` `created` datetime not null default current_timestamp;
alter table task drop foreign key `task_ibfk_1`;
alter table task add constraint `task_ibfk_1` foreign key (`template_id`) references `project__template` (`id`) on delete cascade;