Add initial service functionality to DB
This commit is contained in:
parent
47235b670a
commit
f6da00dd1c
4 changed files with 137 additions and 0 deletions
32
database/migrations/2015_12_08_023034_add_services_table.php
Normal file
32
database/migrations/2015_12_08_023034_add_services_table.php
Normal file
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class AddServicesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('services', function (Blueprint $table) {
|
||||
$table->increments('id')->unsigned();
|
||||
$table->string('name');
|
||||
$table->text('description');
|
||||
$table->string('docker_image');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('services');
|
||||
}
|
||||
}
|
Reference in a new issue