[rhmessaging-commits] rhmessaging commits: r1713 - mgmt/bin.
rhmessaging-commits at lists.jboss.org
rhmessaging-commits at lists.jboss.org
Wed Feb 20 12:25:10 EST 2008
Author: justi9
Date: 2008-02-20 12:25:09 -0500 (Wed, 20 Feb 2008)
New Revision: 1713
Modified:
mgmt/bin/devel-reload-database
Log:
Make the db reload script resilient to the schema already being
removed.
Modified: mgmt/bin/devel-reload-database
===================================================================
--- mgmt/bin/devel-reload-database 2008-02-20 16:09:24 UTC (rev 1712)
+++ mgmt/bin/devel-reload-database 2008-02-20 17:25:09 UTC (rev 1713)
@@ -5,7 +5,8 @@
exit 1
fi
-psql -U "$1" -d "$2" -c "drop schema public cascade; create schema public"
+psql -U "$1" -d "$2" -c "drop schema public cascade"
+psql -U "$1" -d "$2" -c "create schema public"
psql -U "$1" -d "$2" -f "$DEVEL_HOME"/mint/sql/schema.sql
python "$DEVEL_HOME"/cumin/python/cumin/demo.py postgresql://"$1"@localhost/"$2"
More information about the rhmessaging-commits
mailing list