Revision: 35980
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 15, 2010 22:06 by PixEye
Initial Code
#!/bin/sh mv -f config/*.xml config/generated-schema.yml /tmp/ ./symfony propel-build-schema || exit $? in='config/schema.yml' tmp='config/schema-new.yml' chnEnTrop=', required: true, defaultValue: CURRENT_TIMESTAMP' sed -e "s/$chnEnTrop//" "$in" > "$tmp" || exit $? mv -f "$tmp" "$in" || exit $? ./symfony propel-build-model || exit $? ./symfony propel:build-forms || exit $? ./symfony propel:build-filters || exit $?
Initial URL
Initial Description
This shell script helps to refresh a propel schema from an existing database using (the "old") Symfony 1.2 and avoiding the "CURRENT_TIMESTAMP" (MySQL) bug.
Initial Title
sf-refresh-propel-from-db.sh
Initial Tags
mysql, php
Initial Language
Bash