monasca-api/monasca_api/db
Doug Szumski ff0c1cc67d Remove built-in plugins from database schema
Add an alembic migration to remove the built-in plugins. Monasca-notification
becomes responsible for creating them, if they are enabled in the
monasca-notification config file. This also adds some very basic tests and
fixes an issue with Python 3 support (highlighted by the tests) where the
schema was stored as unicode which prevented hashing.

Story: 2003801
Task: 26533
Change-Id: I74848bac2137e446c8825f23778f6a16a96a2048
2018-12-11 09:56:04 +00:00
..
alembic Remove built-in plugins from database schema 2018-12-11 09:56:04 +00:00
README Alembic migrations for all SQL script revisions 2018-06-22 08:16:35 +00: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 Remove built-in plugins from database schema 2018-12-11 09:56:04 +00:00

README

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.