Semaphore/db/migrations/v0.1.0.sql
Matej Kramny f16b3a57e8 Fix SQL bugs
- Fixes #117
- Fixes #116
2016-06-02 19:26:51 +01:00

7 lines
470 B
SQL

alter table user change `created` `created` datetime not null;
alter table project change `created` `created` datetime not null comment 'Created timestamp';
alter table task change `created` `created` datetime not null;
alter table user__token change `created` `created` datetime not null;
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;