Files
yii2-arangodb/views/migration.php
Ilya Rumyancev (MacBook) 70f7a1c341 edit view migration
2017-04-14 01:04:18 +03:00

23 lines
463 B
PHP

<?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";
?>
class <?= $className ?> extends \explosivebit\arangodb\Migration
{
public function up()
{
$this->createCollection('<?= $className ?>',[]);
}
public function down()
{
$this->dropCollection('<?= $className ?>');
}
}