core (memory/sqla): database migration using Alembic:
Alembic database migration tool, which is the recommended one for SQLAlchemy has been integrated. When a database is created, it will be used to stamp to current (head) revision, otherwise, DB will be checked to see if it needs to be updated, and upgrade will be triggered if necessary.
This commit is contained in:
parent
71db80fc4d
commit
8ae38a1131
1 changed files with 330 additions and 21 deletions
7
setup.py
7
setup.py
|
|
@ -55,8 +55,9 @@ install_requires = [
|
|||
'omemo-backend-signal < 0.3',
|
||||
'pyyaml < 5.5.0',
|
||||
'sqlalchemy >= 1.4',
|
||||
'alembic',
|
||||
'aiosqlite',
|
||||
'txdbus'
|
||||
'txdbus',
|
||||
]
|
||||
|
||||
extras_require = {
|
||||
|
|
@ -140,6 +141,6 @@ setup(
|
|||
use_scm_version=sat_dev_version if is_dev_version else False,
|
||||
install_requires=install_requires,
|
||||
extras_require=extras_require,
|
||||
package_data={"sat": ["VERSION"]},
|
||||
package_data={"sat": ["VERSION", "memory/migration/alembic.ini"]},
|
||||
python_requires=">=3.7",
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue