[Enhancement] Add support for custom Alembic version table name (#53281)

Signed-off-by: Maciek Bryński <maciek@brynski.pl>
This commit is contained in:
Maciej Bryński 2024-12-17 02:55:54 +01:00 committed by GitHub
parent 90bc32b774
commit 850a8b477f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View File

@ -14,4 +14,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
__version__ = "1.2.0"
__version__ = "1.2.1"

View File

@ -15,14 +15,15 @@ class StarrocksImpl(MySQLImpl):
*,
version_table: str,
version_table_schema: Optional[str],
version_table_pk: bool,
version_table_pk: bool, # ignored as StarRocks requires a primary key
**kw,
) -> Table:
return Table(
"alembic_version",
version_table,
MetaData(),
Column("id", BIGINT, autoincrement=True, primary_key=True),
Column("version_num", VARCHAR(32), primary_key=False),
schema=version_table_schema,
starrocks_primary_key="id",
)