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