src/Migrations/2016_12_11_034855_add_lang_to_translations_table.php
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddLangToTranslationsTable extends Migration
{
/**
* Run the migrations.
*/
public function up()
{
Schema::table(config('cms.db-prefix', '').'translations', function (Blueprint $table) {
$table->string('language')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down()
{
Schema::table(config('cms.db-prefix', '').'translations', function ($table) {
$table->dropColumn('language');
});
}
}