1
0
Fork 0
mirror of https://github.com/Oreolek/kohana-migrations.git synced 2024-05-18 17:08:18 +03:00
kohana-migrations/views/minion/task/migrations/new/template.php

38 lines
719 B
PHP

<?php if(!empty($description)): ?>
/**
* <?php echo $description.PHP_EOL; ?>
*/
<?php endif; ?>
class <?php echo $class; ?> extends Minion_Migration_Base {
/**
* Run queries needed to apply this migration
*
* @param Kohana_Database Database connection
*/
public function up(Kohana_Database $db)
{
<?php if(!empty($up)): ?>
<?php echo $up; ?>
<?php else: ?>
// $db->query(NULL, 'CREATE TABLE ... ');
<?php endif; ?>
}
/**
* Run queries needed to remove this migration
*
* @param Kohana_Database Database connection
*/
public function down(Kohana_Database $db)
{
<?php if(!empty($down)): ?>
<?php echo $down; ?>
<?php else: ?>
// $db->query(NULL, 'DROP TABLE ... ');
<?php endif; ?>
}
}