stacker.news/prisma/migrations/20240821072645_rename_lnbit.../migration.sql

15 lines
470 B
MySQL
Raw Normal View History

/*
Warnings:
- The primary key for the `WalletLNbits` table will be changed. If it partially fails, the table could be left without primary key constraint.
- You are about to drop the column `int` on the `WalletLNbits` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "WalletLNbits" RENAME COLUMN "int" TO "id";
UPDATE "Wallet"
SET wallet = to_jsonb("WalletLNbits")
FROM "WalletLNbits"
WHERE "Wallet".id = "WalletLNbits"."walletId";