Merge pull request #44 from jbrooksuk/services-table

Created the services table
This commit is contained in:
Philip Manavopoulos
2014-11-26 17:15:26 +00:00

View File

@@ -0,0 +1,37 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateServicesTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('services', function(Blueprint $table)
{
$table->increments('id');
$table->string('type')->nullable(false);
$table->boolean('active')->default(0); // Inactive by default
$table->text('properties')->nullable(true);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('services');
}
}