Hello,
Is it possible to have an exemple of up () migration method when using Module Migrations ?
<?php
/** @var Pimple\Container $container */
$container['phpmig.sets'] = function ($container) {
return array(
'cms' => array(
'adapter' => new Adapter\File\Flat('modules/migrationLogs/cms_migrations.log'),
'migrations_path' => 'migrations/cms'
),
'blog' => array(
'adapter' => new Adapter\File\Flat('modules/migrationLogs/blog_migrations.log'),
'migrations_path' => 'migrations/blog'
)
);
};
class AddRatingToLolCats extends Migration
{
/**
* Do the migration
*/
public function up()
{
$sql = "ALTER TABLE `lol_cats` ADD COLUMN `rating` INT(10) UNSIGNED NULL";
?????????????????
}
Hello,
Is it possible to have an exemple of
up ()migration method when using Module Migrations ?