Créer un compte ou loggez-vous pour pouvoir ajouter, commenter et noter les snippets.

Navigation

Tags relatifs

my Symfony Plugins

Plugins demos


My bookmarks

Vous pouvez commenter/noter en utilisant le compte anonymous (mot de passe: anonymous)
You can comment/rate using the anonymous account (password: anonymous).

Snippets taggés : "db4" Snippets taggés : "db4"

[symfony plugins] Batch typique pour le plugin sfDB4toPropelPlugin - 321 view(s)

db4.sh

#!/bin/bash
 
SYMFONY=`dirname $0`"/symfony"
 
SEP="==========================================================================="
echo "Rebuilding full database from DB4 schema and fixtures"
 
echo $SEP
echo "Converting DB4 schema for propel..."
$SYMFONY propel:db4-to-propel frontend --env=cli --debug=1 --file_dir=/doc/database --file=snippets_db4.xml --output_dir=/config --output=snippets_schema --package=lib.model.snippets
 
echo $SEP
echo "Rebuilding all tables & ORM classes..."
$SYMFONY propel:build-all-load frontend
 
echo $SEP
echo "Clearing the cache..."
$SYMFONY cc
 
echo $SEP
cd ..
echo "JOB's DONE ! ;)"
par COil le 2008-10-07, taggé : batch  db4  plugin  propel  symfony 
(1 commentaire)
Debug toolbar