Added support for automatic database migrations.

Added Alembic environment and `run_db_migrations` logic to the entities
engine so database schema changes can be processed as soon as the
application is started.
This commit is contained in:
Fabio Manganiello 2023-04-29 11:32:31 +02:00
parent ff9b76477d
commit 78cee5d9b0
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774
7 changed files with 286 additions and 5 deletions

View file

@ -38,6 +38,9 @@ setup(
url="https://platypush.tech",
packages=find_packages(),
include_package_data=True,
package_data={
'platypush': ['alembic.ini', 'alembic/*', 'alembic/**/*'],
},
entry_points={
'console_scripts': [
'platypush=platypush:main',
@ -58,6 +61,7 @@ setup(
'requests',
'croniter',
'sqlalchemy',
'alembic',
'websockets',
'websocket-client',
'wheel',