diff --git a/db/migrations/1673510995256-Data.js b/db/migrations/1673510995256-relay_support.js similarity index 94% rename from db/migrations/1673510995256-Data.js rename to db/migrations/1673510995256-relay_support.js index 66a68a1..4475824 100644 --- a/db/migrations/1673510995256-Data.js +++ b/db/migrations/1673510995256-relay_support.js @@ -2,8 +2,8 @@ module.exports = class Data1673510995256 { name = 'Data1673510995256' async up(db) { - await db.query(`ALTER TABLE "twin" RENAME COLUMN "ip" TO "relay"`) - await db.query(`ALTER TABLE "twin" ALTER COLUMN "relay" DROP NOT NULL`) + await db.query(`ALTER TABLE "twin" DROP COLUMN "ip"`) + await db.query(`ALTER TABLE "twin" ADD "relay" text`) await db.query(`ALTER TABLE "twin" ADD "public_key" text`) await db.query(`ALTER TABLE "historical_balance" DROP CONSTRAINT "FK_383ff006e4b59db91d32cb891e9"`) await db.query(`ALTER TABLE "historical_balance" ALTER COLUMN "account_id" DROP NOT NULL`) @@ -26,8 +26,8 @@ module.exports = class Data1673510995256 { } async down(db) { - await db.query(`ALTER TABLE "twin" RENAME COLUMN "relay" TO "ip"`) - await db.query(`ALTER TABLE "twin" ALTER COLUMN "ip" SET NOT NULL`) + await db.query(`ALTER TABLE "twin" DROP COLUMN "relay"`) + await db.query(`ALTER TABLE "twin" ADD "ip" text`) await db.query(`ALTER TABLE "twin" DROP COLUMN "public_key"`) await db.query(`ALTER TABLE "historical_balance" ADD CONSTRAINT "FK_383ff006e4b59db91d32cb891e9" FOREIGN KEY ("account_id") REFERENCES "account"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`) await db.query(`ALTER TABLE "historical_balance" ALTER COLUMN "account_id" SET NOT NULL`) diff --git a/indexer/chart/Chart.yaml b/indexer/chart/Chart.yaml index 3a7b4bc..ddd97e8 100644 --- a/indexer/chart/Chart.yaml +++ b/indexer/chart/Chart.yaml @@ -2,4 +2,4 @@ name: tfchainindexer description: Helm Chart for the tfchain hydra indexer version: 2.7.6 apiVersion: v2 -appVersion: '2.9.0-rc1' +appVersion: '2.9.0-rc2' diff --git a/package-lock.json b/package-lock.json index 63ab397..6b6b9cc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "graphql_tfgrid", - "version": "2.9.0-rc1", + "version": "2.9.0-rc2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "graphql_tfgrid", - "version": "2.9.0-rc1", + "version": "2.9.0-rc2", "license": "ISC", "dependencies": { "@subsquid/archive-registry": "1.0.18", diff --git a/package.json b/package.json index d69b29a..1d7a3ec 100644 --- a/package.json +++ b/package.json @@ -1,19 +1,20 @@ { "name": "graphql_tfgrid", "private": "true", - "version": "2.9.0-rc1", + "version": "2.9.0-rc2", "description": "GraphQL server and Substrate indexer. Generated with ♥ by Hydra-CLI", "author": "", "license": "ISC", "scripts": { "update": "npx npm-check-updates --filter /subsquid/ --upgrade && npm i -f", "build": "rm -rf lib && tsc", - "db:create-migration": "sqd db create-migration", + "db:create-migration": "npx squid-typeorm-migration generate", + "db:migrate": "npx squid-typeorm-migration apply", "db:init": "node init-countries.js", "db:up": "docker-compose up -d db", "process": "node db/init.js && node init-countries.js && node -r dotenv/config lib/processor.js", "api": "squid-graphql-server", - "codegen": "sqd codegen", + "codegen": "npx squid-typeorm-codegen", "typegen": "squid-substrate-typegen typegen/typegen.json", "lint": "npm run lint:prod -- --fix", "lint:prod": "eslint . --ext .ts --ignore-path .gitignore --max-warnings 0" @@ -41,4 +42,4 @@ "@types/node": "16.11.47", "typescript": "4.7.4" } -} +} \ No newline at end of file diff --git a/processor-chart/Chart.yaml b/processor-chart/Chart.yaml index 4f4c622..e1ea255 100644 --- a/processor-chart/Chart.yaml +++ b/processor-chart/Chart.yaml @@ -2,4 +2,4 @@ apiVersion: v2 name: tfchain-processor description: A chart for the tfchain graphql processor and query node version: 1.0.5 -appVersion: '2.9.0-rc1' +appVersion: '2.9.0-rc2'