for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Uccello\Core\Database\Migrations\Migration;
class AlterFilterModule extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
Schema::table($this->tablePrefix.'filters', function(Blueprint $table) {
$table->renameColumn('order_by', 'order');
});
}
* Reverse the migrations.
public function down()
Schema::table($this->tablePrefix . 'filters', function (Blueprint $table) {
$table->renameColumn('order', 'order_by');