-- Split single price hint into weekday/weekend prices and add new amenities
ALTER TABLE "Listing"
  ADD COLUMN "priceWeekdayEuros" INTEGER,
  ADD COLUMN "priceWeekendEuros" INTEGER,
  ADD COLUMN "hasMicrowave" BOOLEAN NOT NULL DEFAULT false,
  ADD COLUMN "hasFreeParking" BOOLEAN NOT NULL DEFAULT false;

UPDATE "Listing"
SET
  "priceWeekdayEuros" = "priceHintPerNightEuros",
  "priceWeekendEuros" = "priceHintPerNightEuros"
WHERE "priceWeekdayEuros" IS NULL
  AND "priceWeekendEuros" IS NULL;

ALTER TABLE "Listing" DROP COLUMN "priceHintPerNightEuros";
