2014-07-29 13:33:21 +08:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* This view is used by console/controllers/MigrateController.php
|
|
|
|
* The following variables are available in this view:
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* @var $className string the new migration class name */
|
|
|
|
echo "<?php\n";
|
|
|
|
?>
|
|
|
|
|
2017-04-14 05:04:18 +07:00
|
|
|
class <?= $className ?> extends \explosivebit\arangodb\Migration
|
2014-07-29 13:33:21 +08:00
|
|
|
{
|
|
|
|
public function up()
|
|
|
|
{
|
2017-04-14 04:44:05 +07:00
|
|
|
$this->createCollection('<?= $className ?>',[]);
|
2014-07-29 13:33:21 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
public function down()
|
|
|
|
{
|
2017-04-14 04:44:05 +07:00
|
|
|
$this->dropCollection('<?= $className ?>');
|
2014-07-29 13:33:21 +08:00
|
|
|
}
|
|
|
|
}
|