Merge pull request #267 from RecentRunner/nullable-appointment-pet

nullable appointment pet
This commit was merged in pull request #267.
This commit is contained in:
2026-04-14 15:41:18 -06:00
committed by GitHub

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;