ALTER TABLE "Floor" ADD COLUMN IF NOT EXISTS "LocationId"  INT REFERENCES   "Location"("LocationId");
UPDATE "Floor" SET "LocationId"=(Select "LocationId" from "Location" where "Name"='Parigi');
ALTER TABLE "Floor" ALTER COLUMN   "LocationId" SET   NOT NULL;