general category trip
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
-- CreateEnum
|
||||
CREATE TYPE "ActivityCategory" AS ENUM ('HIKING', 'CAMPING', 'SNORKELING', 'DIVING', 'ISLAND_HOPPING', 'CITY_TRIP', 'CULINARY', 'CONCERT', 'WORKSHOP', 'RETREAT');
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "Trip" ADD COLUMN "category" "ActivityCategory" NOT NULL DEFAULT 'HIKING';
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "Trip_category_status_date_idx" ON "Trip"("category", "status", "date");
|
||||
@@ -0,0 +1,2 @@
|
||||
-- AlterTable: rename column without data loss
|
||||
ALTER TABLE "Trip" RENAME COLUMN "mountain" TO "destination";
|
||||
Reference in New Issue
Block a user