sqlalchemy-hana icon indicating copy to clipboard operation
sqlalchemy-hana copied to clipboard

Python Alembic migration tool with SAP HANA and sqlalchemy_hana

Open THM-MA opened this issue 6 years ago • 7 comments

I'm porting an existing Python Flask web application from a Postgres RDBMS to a SAP HANA Express database.

SQLAlchemy works well with my SAP HANA database using the sqlalchemy_hana dialect.

However my Flask application uses the Alembic migration tool (based on SQLAlchemy) to manage the database.

Building the database using Alembic throws an "hana" KeyError.

This is actualy rather an Alembic issue than a sqlalchemy_hana issue and i therefore posted it on Stackoverflow inclusing a detailed error description.

However you may find many SQLAlchemy user managing thier database updates using Alembic migrations.

What is your oppinion on that?

THM-MA avatar May 03 '18 16:05 THM-MA

Internally we already use alembic for our schema migrations also within Flask applications. I'm currently clarifying how and when we can share something about it.

jarus avatar May 23 '18 10:05 jarus

Hi Christoph, an news on the above mentioned topic? We are still interesetd in anything you can share. Thx, Thomas

THM-MA avatar Mar 04 '19 16:03 THM-MA

@jarus Any update on this?

joshsullivan1 avatar May 17 '19 01:05 joshsullivan1

@jarus : I join the chorus in asking you about that :) Thanks!

harrycruz avatar Jun 17 '19 19:06 harrycruz

I started with integrating alembic support into SQLAlchemy-HANA. The current progress is visible in the branch alembic-preview. Any kind of feedback is welcome.

jarus avatar Aug 15 '20 14:08 jarus

These are great news indeed, thanks for picking this up!

harrycruz avatar Aug 15 '20 15:08 harrycruz

Hi Christoph,

I'd like to use sqlalchemy-hana with alembic db migration in internal analytic project in SAP. Is the branch your mentioned more or less complete, so we can try it? We can tolerate some glitches (also data loss) given the profits of automated db schema migration.

Anton

0anton avatar Sep 13 '20 14:09 0anton

Superseded by https://github.com/SAP/sqlalchemy-hana/issues/102

In short version 1.0 will include an alembic dialect

kasium avatar Oct 04 '23 13:10 kasium