designate/designate/storage/impl_sqlalchemy/migrate_repo
Erik Olof Gunnar Andersson 1924abff40 Add unique constraint to service_statuses
In the current implementation, if for any reason a duplicate
service entry gets created, the call to update that service
will fail endlessly, and instead cause the service to create
new entries everytime update_service_status gets called. Causing
it to fill the database with duplicate entries.

This patch adds a unique constraint to the service_statuses
table based on the service_name and hostname, to ensure that
this cannot happen.

In addition we add a new test to the storage driver and further
expanded the central service test coverage.

Change-Id: I307a8f7dd8b8a83effa447a846db3288efa32dba
Closes-Bug: #1768824
2018-05-20 12:41:21 -07:00
..
versions Add unique constraint to service_statuses 2018-05-20 12:41:21 -07:00
README Rename Moniker -> Designate 2013-06-09 21:15:03 +01:00
__init__.py Rename Moniker -> Designate 2013-06-09 21:15:03 +01:00
manage.py Remove vim header from source files 2016-10-05 08:26:32 +07:00
migrate.cfg Rename Moniker -> Designate 2013-06-09 21:15:03 +01:00
utils.py Remove translation of log messages 2018-03-14 12:54:05 -07:00

README

This is a database migration repository for the project Designate.

More information at
http://code.google.com/p/sqlalchemy-migrate/