From 457e1a7111e13b4747c07bb3c0610d0b744410ed Mon Sep 17 00:00:00 2001 From: Endre Karlson Date: Wed, 20 Mar 2013 13:01:10 +0000 Subject: [PATCH] Add back db manage script --- bin/billingstack-db-manage | 26 ++++++++++++++++++++++++++ setup.py | 1 + 2 files changed, 27 insertions(+) create mode 100755 bin/billingstack-db-manage diff --git a/bin/billingstack-db-manage b/bin/billingstack-db-manage new file mode 100755 index 0000000..4dc66b0 --- /dev/null +++ b/bin/billingstack-db-manage @@ -0,0 +1,26 @@ +#!/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 billingstack.storage.impl_sqlalchemy.migration.cli import main + + +main() diff --git a/setup.py b/setup.py index 48d8fb8..8921b58 100644 --- a/setup.py +++ b/setup.py @@ -48,6 +48,7 @@ setup( dependency_links=dependency_links, scripts=[ 'bin/billingstack-api', + 'bin/billingstack-db-manage', 'bin/billingstack-identity-api', 'bin/billingstack-manage', 'bin/billingstack-central'