Continue MMC

This commit is contained in:
Александр Бабкин
2022-07-14 11:01:44 +03:00
parent 30950a120e
commit 97bacd4423
10 changed files with 158 additions and 24 deletions

View File

@@ -0,0 +1,33 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateAukMmcTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('auk_mmc', function (Blueprint $table) {
$table->id();
$table->integer('auk_id')->unsigned()->references('id')->on('auks');
$table->integer('mmc_id')->unsigned()->references('id')->on('mmcs');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('auk_mmc');
}
}

View File

@@ -17,7 +17,7 @@ class ProjectTableSeeder extends Seeder
DB::table('projects')->insert([
'name' => 'Ил-76МД90А',
'description' => 'АОС Ил-76МД90А',
'mmc_path' => '/Docs/Project/643 Россия/IL-76MD-90А_ru/2_MMC',
'mmc_path' => '/home/shurick/tmp/mmc',
]);
}