sf刷新推进源-数据库.sh
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sf刷新推进源-数据库.sh相关的知识,希望对你有一定的参考价值。
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.
#!/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 $?
以上是关于sf刷新推进源-数据库.sh的主要内容,如果未能解决你的问题,请参考以下文章