diff --git a/prisma/migrations/20250926182138_removed_item_from_type/migration.sql b/prisma/migrations/20250926182138_removed_item_from_type/migration.sql new file mode 100644 index 000000000..756158973 --- /dev/null +++ b/prisma/migrations/20250926182138_removed_item_from_type/migration.sql @@ -0,0 +1,8 @@ +-- AlterEnum +BEGIN; +CREATE TYPE "public"."Type_new" AS ENUM ('BUY', 'DIVIDEND', 'FEE', 'INTEREST', 'LIABILITY', 'SELL'); +ALTER TABLE "public"."Order" ALTER COLUMN "type" TYPE "public"."Type_new" USING ("type"::text::"public"."Type_new"); +ALTER TYPE "public"."Type" RENAME TO "Type_old"; +ALTER TYPE "public"."Type_new" RENAME TO "Type"; +DROP TYPE "public"."Type_old"; +COMMIT; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 7a3c613ca..72ec79008 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -349,7 +349,6 @@ enum Type { DIVIDEND FEE INTEREST - ITEM LIABILITY SELL }