Merge pull request #267 from RecentRunner/nullable-appointment-pet
nullable appointment pet
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
ALTER TABLE appointment MODIFY petId BIGINT NULL;
|
||||
ALTER TABLE appointment DROP FOREIGN KEY fk_appointment_pet;
|
||||
ALTER TABLE appointment ADD CONSTRAINT fk_appointment_pet FOREIGN KEY (petId) REFERENCES pet(petId) ON DELETE SET NULL;
|
||||
Reference in New Issue
Block a user