mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 02:51:06 +03:30
36 lines
866 B
PHP
36 lines
866 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class CreateTablePackPackage extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('pack_package', function (Blueprint $table) {
|
|
$table->bigIncrements('id');
|
|
$table->unsignedBigInteger('pack_id');
|
|
$table->foreign('pack_id')->references('id')->on('packes');
|
|
$table->unsignedBigInteger('package_id');
|
|
$table->foreign('package_id')->references('id')->on('packages');
|
|
// $table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('pack_package');
|
|
}
|
|
}
|