script to regenerate database schema

This commit is contained in:
Martin Konecny 2012-07-18 15:10:45 -04:00
parent 31176f525e
commit d0e4ad1334
1 changed files with 11 additions and 0 deletions

11
dev_tools/propel_regenerate.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash -e
# Absolute path to this script
SCRIPT=`readlink -f $0`
# Absolute directory this script is in
SCRIPTPATH=`dirname $SCRIPT`
cd $SCRIPTPATH/../airtime_mvc/
path=`pwd`
cd build
sed -i s#"project\.home =.*$"#"project.home = $path"#g build.properties
../library/propel/generator/bin/propel-gen