[Enhancement] Add support for custom Alembic version table name (#53281)
Signed-off-by: Maciek Bryński <maciek@brynski.pl>
This commit is contained in:
parent
90bc32b774
commit
850a8b477f
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue