From 719deedeb670ad683666c04b244aeb19ef01d75d Mon Sep 17 00:00:00 2001 From: JQQQ Date: Tue, 8 Nov 2022 11:20:05 +1300 Subject: [PATCH 1/2] remove migrate alter table --- packages/node-core/src/indexer/store.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/node-core/src/indexer/store.service.ts b/packages/node-core/src/indexer/store.service.ts index 8d472c5d60..a800f22950 100644 --- a/packages/node-core/src/indexer/store.service.ts +++ b/packages/node-core/src/indexer/store.service.ts @@ -259,7 +259,7 @@ export class StoreService { // this will allow alter current entity, including fields // TODO, add rules for changes, eg only allow add nullable field // Only allow altering the tables on the main thread - await this.sequelize.sync({alter: {drop: isMainThread}}); + // await this.sequelize.sync({alter: {drop: isMainThread}}); await this.setMetadata('historicalStateEnabled', this.historical); for (const query of extraQueries) { await this.sequelize.query(query); From 789c0c60170511f880af70821b7949851eed4415 Mon Sep 17 00:00:00 2001 From: JQQQ Date: Tue, 8 Nov 2022 11:22:20 +1300 Subject: [PATCH 2/2] remove --- packages/node-core/src/indexer/store.service.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/node-core/src/indexer/store.service.ts b/packages/node-core/src/indexer/store.service.ts index a800f22950..4c980cfcbb 100644 --- a/packages/node-core/src/indexer/store.service.ts +++ b/packages/node-core/src/indexer/store.service.ts @@ -259,7 +259,6 @@ export class StoreService { // this will allow alter current entity, including fields // TODO, add rules for changes, eg only allow add nullable field // Only allow altering the tables on the main thread - // await this.sequelize.sync({alter: {drop: isMainThread}}); await this.setMetadata('historicalStateEnabled', this.historical); for (const query of extraQueries) { await this.sequelize.query(query);