35512-vm/db/migrations/007_add_location_id_to_assets.sql
2025-11-08 20:43:02 +00:00

2 lines
137 B
SQL

ALTER TABLE `assets` ADD COLUMN `location_id` INT NULL, ADD FOREIGN KEY (`location_id`) REFERENCES `locations`(`id`) ON DELETE SET NULL;