Skip to content

Commit bb3409b

Browse files
committed
Added migration
1 parent 9b941f6 commit bb3409b

File tree

1 file changed

+21
-0
lines changed
  • packages/persistance/prisma/migrations/20250129115920_st_prover

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
Warnings:
3+
4+
- You are about to drop the column `blockStateTransitions` on the `BlockResult` table. All the data in the column will be lost.
5+
- You are about to drop the column `protocolTransitions` on the `TransactionExecutionResult` table. All the data in the column will be lost.
6+
- Added the required column `beforeBlockStateTransitions` to the `Block` table without a default value. This is not possible if the table is not empty.
7+
- Added the required column `fromStateRoot` to the `Block` table without a default value. This is not possible if the table is not empty.
8+
- Added the required column `afterBlockStateTransitions` to the `BlockResult` table without a default value. This is not possible if the table is not empty.
9+
10+
*/
11+
-- AlterTable
12+
ALTER TABLE "Block" ADD COLUMN "beforeBlockStateTransitions" JSON NOT NULL,
13+
ADD COLUMN "fromStateRoot" TEXT NOT NULL;
14+
15+
-- AlterTable
16+
ALTER TABLE "BlockResult" DROP COLUMN "blockStateTransitions",
17+
ADD COLUMN "afterBlockStateTransitions" JSON NOT NULL,
18+
ADD COLUMN "witnessedRoots" TEXT[];
19+
20+
-- AlterTable
21+
ALTER TABLE "TransactionExecutionResult" DROP COLUMN "protocolTransitions";

0 commit comments

Comments
 (0)