<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateLanguageContentsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('language_contents', function (Blueprint $table) {
$table->id();
$table->integer('languageId');
$table->string('chapter');
$table->string('chapterSub');
$table->longText('value');
$table->integer('dataId');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('language_contents');
}
}
tablonun geri kalan kısımlarını da bu tabloya ekliyorum