-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #169 from utxostack/feat/block-indexing
feat: rgbpp transactions indexing
- Loading branch information
Showing
39 changed files
with
1,130 additions
and
549 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
backend/prisma/migrations/20240916084317_transaction/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
Warnings: | ||
- You are about to drop the column `difficulty` on the `Block` table. All the data in the column will be lost. | ||
- You are about to drop the column `maxFee` on the `Block` table. All the data in the column will be lost. | ||
- You are about to drop the column `minFee` on the `Block` table. All the data in the column will be lost. | ||
- You are about to drop the column `size` on the `Block` table. All the data in the column will be lost. | ||
- You are about to drop the column `totalFee` on the `Block` table. All the data in the column will be lost. | ||
- You are about to drop the column `fee` on the `Transaction` table. All the data in the column will be lost. | ||
- You are about to drop the column `size` on the `Transaction` table. All the data in the column will be lost. | ||
- You are about to drop the column `timestamp` on the `Transaction` table. All the data in the column will be lost. | ||
- You are about to drop the `Output` table. If the table is not empty, all the data it contains will be lost. | ||
- Changed the type of `index` on the `Transaction` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required. | ||
*/ | ||
-- DropForeignKey | ||
ALTER TABLE "Output" DROP CONSTRAINT "Output_chainId_txHash_fkey"; | ||
|
||
-- AlterTable | ||
ALTER TABLE "Block" DROP COLUMN "difficulty", | ||
DROP COLUMN "maxFee", | ||
DROP COLUMN "minFee", | ||
DROP COLUMN "size", | ||
DROP COLUMN "totalFee"; | ||
|
||
-- AlterTable | ||
ALTER TABLE "Transaction" DROP COLUMN "fee", | ||
DROP COLUMN "size", | ||
DROP COLUMN "timestamp", | ||
ADD COLUMN "btcTxid" TEXT, | ||
DROP COLUMN "index", | ||
ADD COLUMN "index" INTEGER NOT NULL; | ||
|
||
-- DropTable | ||
DROP TABLE "Output"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.