nullable petId in appointment

This commit is contained in:
2026-04-14 15:39:30 -06:00
parent f0ce6d8c2d
commit 060ecf1ef2

View File

@@ -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;