fix: add listing address/ev migration
This commit is contained in:
parent
91abec0295
commit
86de2cabdf
1 changed files with 10 additions and 0 deletions
|
|
@ -0,0 +1,10 @@
|
||||||
|
-- Add missing address and EV charging fields to listings
|
||||||
|
DO $$
|
||||||
|
BEGIN
|
||||||
|
CREATE TYPE "EvCharging" AS ENUM ('NONE', 'FREE', 'PAID');
|
||||||
|
EXCEPTION
|
||||||
|
WHEN duplicate_object THEN NULL;
|
||||||
|
END$$;
|
||||||
|
|
||||||
|
ALTER TABLE "Listing" ADD COLUMN IF NOT EXISTS "streetAddress" TEXT;
|
||||||
|
ALTER TABLE "Listing" ADD COLUMN IF NOT EXISTS "evCharging" "EvCharging" NOT NULL DEFAULT 'NONE';
|
||||||
Loading…
Add table
Reference in a new issue