2022-10-26 19:57:37 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
2023-01-15 00:04:00 +00:00
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
2022-10-26 19:57:37 +01:00
|
|
|
|
2023-01-15 00:04:00 +00:00
|
|
|
class CreateTranslationsTable extends Migration
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function up()
|
|
|
|
{
|
|
|
|
Schema::create('ltm_translations', function (Blueprint $table) {
|
|
|
|
$table->collation = 'utf8mb4_bin';
|
2022-10-26 19:57:37 +01:00
|
|
|
$table->bigIncrements('id');
|
|
|
|
$table->integer('status')->default(0);
|
|
|
|
$table->string('locale');
|
|
|
|
$table->string('group');
|
|
|
|
$table->text('key');
|
|
|
|
$table->text('value')->nullable();
|
|
|
|
$table->timestamps();
|
|
|
|
});
|
2023-01-15 00:04:00 +00:00
|
|
|
}
|
2022-10-26 19:57:37 +01:00
|
|
|
|
2023-01-15 00:04:00 +00:00
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
2022-10-26 19:57:37 +01:00
|
|
|
Schema::drop('ltm_translations');
|
2023-01-15 00:04:00 +00:00
|
|
|
}
|
2022-10-26 19:57:37 +01:00
|
|
|
}
|