]> git.localhorst.tv Git - alttp.git/blob - database/migrations/2022_08_23_082412_create_technique_translations_table.php
clean up manual tracking
[alttp.git] / database / migrations / 2022_08_23_082412_create_technique_translations_table.php
1 <?php
2
3 use Illuminate\Database\Migrations\Migration;
4 use Illuminate\Database\Schema\Blueprint;
5 use Illuminate\Support\Facades\Schema;
6
7 return new class extends Migration
8 {
9         /**
10          * Run the migrations.
11          *
12          * @return void
13          */
14         public function up()
15         {
16                 Schema::create('technique_translations', function (Blueprint $table) {
17                         $table->id();
18                         $table->foreignId('technique_id')->constrained();
19                         $table->string('locale');
20                         $table->text('title');
21                         $table->text('short');
22                         $table->text('description');
23                         $table->timestamps();
24                         $table->unique(['technique_id', 'locale']);
25                 });
26         }
27
28         /**
29          * Reverse the migrations.
30          *
31          * @return void
32          */
33         public function down()
34         {
35                 Schema::dropIfExists('technique_translations');
36         }
37 };