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

code: 'ER_BLOB_KEY_WITHOUT_LENGTH', when using MySql for persistent storage config #152

Open
AnonymityAdvoc8 opened this issue Jul 24, 2024 · 0 comments

Comments

@AnonymityAdvoc8
Copy link

When updating the persistent storage config to use MySQL and run the server for the first time, it does it's migration and fails when creating the registeredTenants table.

code: 'ER_BLOB_KEY_WITHOUT_LENGTH',
errno: 1170,
sqlState: '42000',
sqlMessage: "BLOB/TEXT column 'did' used in key specification without a key length",
sql: 'create table if not exists registeredTenants (did text primary key, termsOfServiceHash text)'

Solution was to create the table manual and let the rest of the migration run:

CREATE TABLE IF NOT EXISTS registeredTenants (
did VARCHAR(255) PRIMARY KEY,
termsOfServiceHash TEXT
);

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

1 participant