-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
MsSql: Upgrade db failed - pyodbc - column length discrepancy #337
Comments
Seems specific to Sql Server, but I'd approve that PR, I think you'd have to touch the model as well |
It's definitely, Sql server specific. |
@gyzmau, did you manage to make caravel work with your fix? After pulling the fixed version, I got
This seemed very similar to the FK length discrepency you described in this issue, which is why I attempted to fix it like this
Now i get
Before trying further edits I would like to know if in your case everything is working properly with SQL server. |
I think that is a problem with the b4456560d4f3_change_table_unique_constraint.py migration. If you remove the try clause from b4456560d4f3 then it gives an error that the constraint it is trying to drop does not exist. I searched the project for the constraint name What I did for now is run |
@mistercrunch: This problem continues to exist when using an Azure SQL Database as a backing database for Superset. Here is the setting in SQLALCHEMY_DATABASE_URI = 'mssql+pymssql://sensomind@sensomindsuperset:${SUPERSET_METADATA_PASSWORD}@sensomindsuperset.database.windows.net:1433/superset' Is there any workaround for this error? |
Bumps [chalk](https://github.com/chalk/chalk) from 3.0.0 to 4.0.0. - [Release notes](https://github.com/chalk/chalk/releases) - [Commits](chalk/chalk@v3.0.0...v4.0.0) Signed-off-by: dependabot-preview[bot] <[email protected]> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Bumps [chalk](https://github.com/chalk/chalk) from 3.0.0 to 4.0.0. - [Release notes](https://github.com/chalk/chalk/releases) - [Commits](chalk/chalk@v3.0.0...v4.0.0) Signed-off-by: dependabot-preview[bot] <[email protected]> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Bumps [set-value](https://github.com/jonschlinkert/set-value) from 0.4.3 to 2.0.1. **This update includes a security fix.** - [Release notes](https://github.com/jonschlinkert/set-value/releases) - [Commits](jonschlinkert/set-value@0.4.3...2.0.1) Signed-off-by: dependabot-preview[bot] <[email protected]>
Bumps [chalk](https://github.com/chalk/chalk) from 3.0.0 to 4.0.0. - [Release notes](https://github.com/chalk/chalk/releases) - [Commits](chalk/chalk@v3.0.0...v4.0.0) Signed-off-by: dependabot-preview[bot] <[email protected]> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Bumps [set-value](https://github.com/jonschlinkert/set-value) from 0.4.3 to 2.0.1. **This update includes a security fix.** - [Release notes](https://github.com/jonschlinkert/set-value/releases) - [Commits](jonschlinkert/set-value@0.4.3...2.0.1) Signed-off-by: dependabot-preview[bot] <[email protected]>
Bumps [chalk](https://github.com/chalk/chalk) from 3.0.0 to 4.0.0. - [Release notes](https://github.com/chalk/chalk/releases) - [Commits](chalk/chalk@v3.0.0...v4.0.0) Signed-off-by: dependabot-preview[bot] <[email protected]> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Bumps [set-value](https://github.com/jonschlinkert/set-value) from 0.4.3 to 2.0.1. **This update includes a security fix.** - [Release notes](https://github.com/jonschlinkert/set-value/releases) - [Commits](jonschlinkert/set-value@0.4.3...2.0.1) Signed-off-by: dependabot-preview[bot] <[email protected]>
Bumps [chalk](https://github.com/chalk/chalk) from 3.0.0 to 4.0.0. - [Release notes](https://github.com/chalk/chalk/releases) - [Commits](chalk/chalk@v3.0.0...v4.0.0) Signed-off-by: dependabot-preview[bot] <[email protected]> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Bumps [set-value](https://github.com/jonschlinkert/set-value) from 0.4.3 to 2.0.1. **This update includes a security fix.** - [Release notes](https://github.com/jonschlinkert/set-value/releases) - [Commits](jonschlinkert/set-value@0.4.3...2.0.1) Signed-off-by: dependabot-preview[bot] <[email protected]>
Platform: Windows 7
Python Library connector: pyodbc
When running:
caravel db upgrade
Got the error below:
In the migration script 4e6a06bad7a8_init.py we have a foreign key between datasources.datasource_name and columns.column_name incompatible with Sql Server because of a discrepancy on the length of the field.
To fix it , I changed the line 61 of 4e6a06bad7a8_init.py:
sa.Column('datasource_name', sa.String(length=250), nullable=True),
to
sa.Column('datasource_name', sa.String(length=256), nullable=True),
Might be worth to change it in the repo. The impact is quite low.
The text was updated successfully, but these errors were encountered: