|
Revision 7247, 1.2 kB
(checked in by fabien, 5 years ago)
|
moved all autoload classes to lib/autoload
|
- Property svn:mime-type set to
text/x-php
- Property svn:eol-style set to
native
- Property svn:keywords set to
Id
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
require_once(dirname(__FILE__).'/sfPropelBaseTask.class.php'); |
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
class sfPropelBuildDbTask extends sfPropelBaseTask |
|---|
| 22 |
{ |
|---|
| 23 |
|
|---|
| 24 |
* @see sfTask |
|---|
| 25 |
*/ |
|---|
| 26 |
protected function configure() |
|---|
| 27 |
{ |
|---|
| 28 |
$this->aliases = array('propel-build-db'); |
|---|
| 29 |
$this->namespace = 'propel'; |
|---|
| 30 |
$this->name = 'build-db'; |
|---|
| 31 |
$this->briefDescription = 'Creates database for current model'; |
|---|
| 32 |
|
|---|
| 33 |
$this->detailedDescription = <<<EOF |
|---|
| 34 |
The [propel:build-db|INFO] task creates the database: |
|---|
| 35 |
|
|---|
| 36 |
[./symfony propel:build-db|INFO] |
|---|
| 37 |
|
|---|
| 38 |
The task read connection information in [config/propel.ini|COMMENT]: |
|---|
| 39 |
|
|---|
| 40 |
[propel.database.createUrl = mysql://username@password:hostname/|INFO] |
|---|
| 41 |
EOF; |
|---|
| 42 |
} |
|---|
| 43 |
|
|---|
| 44 |
|
|---|
| 45 |
* @see sfTask |
|---|
| 46 |
*/ |
|---|
| 47 |
protected function execute($arguments = array(), $options = array()) |
|---|
| 48 |
{ |
|---|
| 49 |
$this->callPhing('create-db', self::DO_NOT_CHECK_SCHEMA); |
|---|
| 50 |
} |
|---|
| 51 |
} |
|---|
| 52 |
|
|---|