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

Can't restore wallet now after issue #602 #603

Open
backenders-game opened this issue May 7, 2021 · 1 comment
Open

Can't restore wallet now after issue #602 #603

backenders-game opened this issue May 7, 2021 · 1 comment

Comments

@backenders-game
Copy link

After issue "Uncaught exception: Error: checkBalances failed #602" I deleted my data and started to restore again. Now after restoration i am getting error:

Uncaught exception: Error: Error: SQLITE_ERROR: no such column: creation_date SELECT asset, metadata_unit, name, suffix, decimals, registry_address, strftime('%s', creation_date) AS timestamp FROM asset_metadata

@backenders-game backenders-game changed the title Can't restore wallet now after Can't restore wallet now after issue #602 May 7, 2021
@tarmo888
Copy link
Member

tarmo888 commented May 7, 2021

Steps to fix:

DROP TABLE asset_metadata;
CREATE TABLE asset_metadata (
    asset CHAR(44) NOT NULL PRIMARY KEY,
    metadata_unit CHAR(44) NOT NULL,
    registry_address CHAR(32) NULL,
    suffix VARCHAR(20) NULL,
    name VARCHAR(20) NULL,
    decimals TINYINT NULL,
    creation_date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
    UNIQUE (name, registry_address),
    FOREIGN KEY (asset) REFERENCES assets(unit),
    FOREIGN KEY (metadata_unit) REFERENCES units(unit)
);
  • click "Write Changes" button

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

No branches or pull requests

2 participants