for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUpdatesTable extends Migration
{
/**
* Run the migrations.
*/
public function up()
Schema::create('updates', function (Blueprint $table) {
$table->increments('id');
$table->string('title');
$table->string('version', 10);
$table->string('type');
$table->text('description');
$table->integer('downloads');
$table->timestamps();
});
Schema::create('customers', function (Blueprint $table) {
$table->string('name');
$table->string('purchaseKey');
$table->timestamp('support_ends');
$table->string('email')->unique();
}
* Reverse the migrations.
public function down()
Schema::dropIfExists('customers');
Schema::dropIfExists('updates');