Semaphore/db/migrations/v0.1.0.sql

7 lines
470 B
MySQL
Raw Normal View History

2016-06-02 20:26:51 +02:00
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;
2016-05-21 00:19:52 +02:00
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;