HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: /home/mmickelson/spilicensing/database/migrations/2016_03_24_232349_create_license_system_table.php
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateLicenseSystemTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('license_system', function(Blueprint $table)
		{
			$table->increments('id');
			$table->integer('license_id')->unsigned();
			$table->integer('system_id')->unsigned();
			$table->timestamps();
		});

		Schema::table('license_system', function($table)
		{
			$table->foreign('license_id')->references('id')->on('licenses');
			$table->foreign('system_id')->references('id')->on('systems');
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('license_system');
	}

}