summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMark McClain <mark.mcclain@dreamhost.com>2012-12-18 13:27:39 -0500
committerSalvatore Orlando <salv.orlando@gmail.com>2013-01-07 17:21:27 -0800
commitdbf0b22abb5a55e3bab5eb335eb47cd843a7a43d (patch)
tree573ccd9aa49775a00319ff2792dcf306d33ad389 /bin
parent56b5d21ca65fddd4f7b24770494d6bb34ac5e65c (diff)
downloadneutron-dbf0b22abb5a55e3bab5eb335eb47cd843a7a43d.tar.gz
Add migration support to Quantum
implements blueprint quantum-db-upgrades This changeset provide database migration capabilities to Quantum by wrapping the Alembic library. Change-Id: I8ba3a07f5a65e0fda9c0e85ed9c07c5978c53bc7
Diffstat (limited to 'bin')
-rwxr-xr-xbin/quantum-db-manage25
1 files changed, 25 insertions, 0 deletions
diff --git a/bin/quantum-db-manage b/bin/quantum-db-manage
new file mode 100755
index 0000000000..5c06512e40
--- /dev/null
+++ b/bin/quantum-db-manage
@@ -0,0 +1,25 @@
+#!/usr/bin/env python
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
+
+# Copyright 2012 New Dream Network, LLC (DreamHost)
+# All Rights Reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License. You may obtain
+# a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+
+import os
+import sys
+sys.path.insert(0, os.getcwd())
+from quantum.cli import main
+
+
+main()