proc-gen equipment drops from monsters can be picked up
[sketchy-heroes.git] / prisma / migrations / 20220317154129_rework_items / migration.sql
diff --git a/prisma/migrations/20220317154129_rework_items/migration.sql b/prisma/migrations/20220317154129_rework_items/migration.sql
new file mode 100644 (file)
index 0000000..a60f81b
--- /dev/null
@@ -0,0 +1,14 @@
+/*
+  Warnings:
+
+  - You are about to drop the column `availableRarity` on the `Item` table. All the data in the column will be lost.
+  - Added the required column `rarity` to the `Inventory` table without a default value. This is not possible if the table is not empty.
+  - Added the required column `rarityDropRates` to the `Item` table without a default value. This is not possible if the table is not empty.
+
+*/
+-- AlterTable
+ALTER TABLE "Inventory" ADD COLUMN     "rarity" "Rarity" NOT NULL;
+
+-- AlterTable
+ALTER TABLE "Item" DROP COLUMN "availableRarity",
+ADD COLUMN     "rarityDropRates" JSONB NOT NULL;