]> git.localhorst.tv Git - alttp.git/blobdiff - database/migrations/2023_02_01_153251_technique_map.php
basic map pins
[alttp.git] / database / migrations / 2023_02_01_153251_technique_map.php
diff --git a/database/migrations/2023_02_01_153251_technique_map.php b/database/migrations/2023_02_01_153251_technique_map.php
new file mode 100644 (file)
index 0000000..42e9230
--- /dev/null
@@ -0,0 +1,35 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+return new class extends Migration
+{
+       /**
+        * Run the migrations.
+        *
+        * @return void
+        */
+       public function up()
+       {
+               Schema::create('technique_maps', function (Blueprint $table) {
+                       $table->id();
+                       $table->foreignId('technique_id')->constrained();
+                       $table->string('map');
+                       $table->double('x');
+                       $table->double('y');
+                       $table->timestamps();
+               });
+       }
+
+       /**
+        * Reverse the migrations.
+        *
+        * @return void
+        */
+       public function down()
+       {
+               Schema::dropIfExists('technique_maps');
+       }
+};