You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- You are about to drop the column `product_id` on the `cart_items` table. All the data in the column will be lost.
5
+
- A unique constraint covering the columns `[cart_id,attribute_value_id]` on the table `cart_items` will be added. If there are existing duplicate values, this will fail.
6
+
- Added the required column `attribute_value_id` to the `cart_items` table without a default value. This is not possible if the table is not empty.
7
+
8
+
*/
9
+
-- DropForeignKey
10
+
ALTERTABLE"cart_items" DROP CONSTRAINT"cart_items_product_id_fkey";
11
+
12
+
-- DropIndex
13
+
DROPINDEX"cart_items_cart_id_product_id_key";
14
+
15
+
-- AlterTable
16
+
ALTERTABLE"cart_items" DROP COLUMN "product_id",
17
+
ADD COLUMN "attribute_value_id"INTEGERNOT NULL;
18
+
19
+
-- CreateIndex
20
+
CREATEUNIQUE INDEX "cart_items_cart_id_attribute_value_id_key" ON"cart_items"("cart_id", "attribute_value_id");
21
+
22
+
-- AddForeignKey
23
+
ALTERTABLE"cart_items" ADD CONSTRAINT"cart_items_attribute_value_id_fkey"FOREIGN KEY ("attribute_value_id") REFERENCES"variants_attributes_values"("id") ON DELETE CASCADEONUPDATE CASCADE;
0 commit comments