Continue MMC
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
@@ -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',
|
||||
]);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user