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

ERROR 1022 (23000) at line 724: Can't write; duplicate key in table 'attested_fields' #92

Closed
pmiklos opened this issue Apr 4, 2018 · 1 comment

Comments

@pmiklos
Copy link
Contributor

pmiklos commented Apr 4, 2018

The latest byteball.sql fails to execute on Mysql database:

ERROR 1022 (23000) at line 724: Can't write; duplicate key in table 'attested_fields'

The problem is that constraint attestationsByAttestorAddress is already used in table attestations.

Also the unit field in tables attested_fields and original_addresses needs the BINARY keyword:

	unit CHAR(44) BINARY NOT NULL,
@tonyofbyteball
Copy link
Member

Thanks fixed, I always forget BINARY

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