Implements database upgrade as storage engine independent
Currently, calling ceilometer-dbsync will be default raises an error since it tries to upgrade a SQL database, even if mongo (the default) is used. This patch fixes that by adding an upgrade capability to the storage engine connection base class, and implementing it only in SQL. Change-Id: I9a0da235ef3a93aaefd1b122d59f244ea293e9fe Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
@@ -204,6 +204,9 @@ class Connection(base.Connection):
|
||||
], name='meter_idx')
|
||||
return
|
||||
|
||||
def upgrade(self, version=None):
|
||||
pass
|
||||
|
||||
def _get_connection(self, opts):
|
||||
"""Return a connection to the database.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user