-
-
Notifications
You must be signed in to change notification settings - Fork 252
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
Make version table customizable by dialects #1560
Comments
Alembic only includes support for SQLAlchemy's built-in dialects: oracle, postgresql, sqlite, mysql, mssql. To add alembic implementations to third party dialects, you should contribute your PR to that dialect's github repository. |
@zzzeek I understand. |
the alembic_version table has only one column. it is by definition the first column in the table. |
both statements are identical >>> from sqlalchemy import table, column
>>> alembic_version = table("alembic_version", column("version_num"))
>>> print(alembic_version.select())
SELECT alembic_version.version_num
FROM alembic_version
>>> print(alembic_version.select().with_only_columns(alembic_version.c.version_num))
SELECT alembic_version.version_num
FROM alembic_version |
this is why, let's open a discussion and step through what's happening |
I think the issue is that they want to use a table that has two columns with an autoincrement id as the first column. Not sure if it's a constraint of starrocks the fact that it requires one such column as the fist one. |
Maciek Bryński has proposed a fix for this issue in the main branch: Add ability to configure alembic_version table in DialectImpl https://gerrit.sqlalchemy.org/c/sqlalchemy/alembic/+/5556 |
ok you're released thanks for the patience |
Thanks @zzzeek. |
Describe the use case
Starrocks is Open-Source, High-Performance Analytical Database.
https://www.starrocks.io
Databases / Backends / Drivers targeted
Starrocks
Example Use
Management of Tables in Starrocks.
Additional context
I will create PR with detailed technical solution.
Have a nice day!
The text was updated successfully, but these errors were encountered: