for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Bedard\Shop\Updates;
use Schema;
use October\Rain\Database\Schema\Blueprint;
use October\Rain\Database\Updates\Migration;
class CreateCustomersTable extends Migration
{
public function up()
Schema::create('bedard_shop_customers', function(Blueprint $table) {
$table->engine = 'InnoDB';
$table->increments('id');
$table->string('name')->default('');
$table->string('email')->default('');
$table->integer('user_id')->unsigned()->index();
$table->timestamps();
});
}
public function down()
Schema::dropIfExists('bedard_shop_customers');