Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

force-clean should remove created enums #1425

Closed
5 tasks done
jiqiang90 opened this issue Nov 21, 2022 · 0 comments · Fixed by #1427
Closed
5 tasks done

force-clean should remove created enums #1425

jiqiang90 opened this issue Nov 21, 2022 · 0 comments · Fixed by #1427
Assignees

Comments

@jiqiang90
Copy link
Contributor

jiqiang90 commented Nov 21, 2022

Prerequisites

  • Are you running the latest version(s)?
  • Did you check the debugging guide?
  • Did you check the FAQs and Discussions?
  • Are you reporting to the correct repository?
  • Did you search for an existing issue or pull request?

Description

After force-clean the table, if should also remove related enums, but seems broken here.

jiatwork@MacBook-Pro-4 dapps-staking-indexer % subql-node -f . force-clean
2022-11-21T09:51:46.784Z <subql-node> INFO Current @subql/node version is 1.13.2 
[Nest] 5183  - 11/21/2022, 10:51:46 PM     LOG [NestFactory] Starting Nest application...
[Nest] 5183  - 11/21/2022, 10:51:46 PM     LOG [InstanceLoader] ForceCleanModule dependencies initialized +66ms
[Nest] 5183  - 11/21/2022, 10:51:46 PM     LOG [InstanceLoader] ConfigureModule dependencies initialized +1ms
2022-11-21T09:51:46.936Z <indexer> INFO indexer manager start 
2022-11-21T09:51:47.807Z <Force-clean> INFO force cleaned schema and tables 
jiatwork@MacBook-Pro-4 dapps-staking-indexer % 
jiatwork@MacBook-Pro-4 dapps-staking-indexer % subql-node -f .            
2022-11-21T09:51:50.964Z <subql-node> INFO Current @subql/node version is 1.13.2 
2022-11-21T09:51:51.111Z <indexer> INFO indexer manager start 
2022-11-21T09:52:00.104Z <store> INFO Historical state is enabled 
2022-11-21T09:52:00.116Z <store> ERROR Having a problem when syncing schema Error: 
 * Can't modify enum "UserTransactionType" between runs: 
 * Before: [BondAndStake,UnbondAndUnstake,Withdrawal,NominationTransfer] 
 * After : [BondAndStake,UnbondAndUnstake,Withdraw,WithdrawFromUnregistered,NominationTransfer] 
 * You must rerun the project to do such a change

Details

These details can help to reproduce the environment the issue is occurring

Local Environment: [You can get this information from executing subql version.]
Query Version: [What is the version of the query service?]
Indexer Version: [What is the version of the indexer service?]
Network Details:

  • [Network]
  • [Block height, a block height where the issue is happening]
  • [Dictionary endpoint, if used]

Steps to Reproduce

  1. [First Step]
  2. [Second Step]
  3. [and so on...]

Example project: [A link to a minimal example that can reproduce the issue]

Expected behavior: [What you expected to happen]

Actual behavior: [What actually happened]

Any other information

Is there any other information you would like to add?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants