monasca-api/monasca_api/db
Martin Chacon Piza 7466a2f962 Replace removed DB methods with current ones
Replace removed Binary with LargeBinary import
Remove reflect=True from Alembic MetaData
Replace removed idle_timeout with connection_recycle_time option

- Binary was removed in SQLAlchemy 1.4.x [1]
- SQLAlchemy was updated to 1.4.15 in u-c [2]
- idle_timeout was removed in oslo.db 10.0.0 [3]
- oslo.db was updated to 10.0.0 in u-c [4]
- idle_timeout was already deprecated and renamed as
  connection_recycle_time [5]

[1] https://github.com/sqlalchemy/sqlalchemy/issues/6263#issuecomment-819645247
[2] dc86260b28
[3] a857b83c9c
[4] f322cc13d8
[5] 6634218415

Change-Id: I13ec9c2b53174cfb2e3cb990ec773588cf68007c
2021-07-22 22:35:58 +02:00
..
alembic Stop to use the __future__ module. 2020-06-02 20:24:41 +02:00
__init__.py Alembic migrations for all SQL script revisions 2018-06-22 08:16:35 +00:00
alembic.ini Alembic migrations for all SQL script revisions 2018-06-22 08:16:35 +00:00
fingerprint.py Replace removed DB methods with current ones 2021-07-22 22:35:58 +02:00
README Alembic migrations for all SQL script revisions 2018-06-22 08:16:35 +00:00

This directory contains the plumbing for the Alembic migrations that modify the
Monasca database.

If you need to add a new migration, run

  alembic revision -m '<revision message>'

in this directory, where <revision message> is a short description for what
your migration does such as 'Add volume field to alarm'. Alembic will then
create a revision script in the alembic/versions/ directory. You will need to
edit this script to add upwards and downwards migrations for the change you
want to make.