forked from platypush/platypush
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:
parent
ff9b76477d
commit
78cee5d9b0
7 changed files with 286 additions and 5 deletions
4
setup.py
4
setup.py
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue