Commit 033c7eb3 authored by Antoine Le Gonidec's avatar Antoine Le Gonidec

New database table to store dependencies

Fix #9
parent e88ffd0e
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateDependenciesTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up() {
Schema::create('dependencies', function (Blueprint $table) {
$table->string('system');
$table->string('package');
$table->unique([ 'system', 'package' ]);
$table->boolean('base')
->default(false);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down() {
Schema::dropIfExists('dependencies');
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment