Commit 55ebce26 authored by wycers's avatar wycers
Browse files

remove unique index

parent bbd14a06
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
-- This is an empty migration.alter table LuciaUser

alter table LuciaUser
    drop foreign key LuciaUser_userId_fkey;
drop index LuciaUser_userId_key on LuciaUser;

create index LuciaUser_userId_key
    on LuciaUser (userId);
ALTER TABLE `LuciaUser` ADD CONSTRAINT `LuciaUser_userId_fkey` FOREIGN KEY (`userId`) REFERENCES `User`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;