for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Author: Emmanuel Paul Mnzava
* Twitter: @epmnzava
* Github:https://github.com/dbrax/eticket
* Email: [email protected]
*
*/
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateEventsTable extends Migration
{
* Run the migrations.
* @return void
public function up()
Schema::create('events', function (Blueprint $table) {
$table->bigIncrements('id');
$table->integer('userid')->nullable(); //??? in multitenant or distribution
$table->string('name');
$table->string('location',225);
$table->integer('category');
$table->string('city',255);
$table->string('country',255);
$table->text('description');
$table->string('timezone')->default('(GMT+3:00) Nairobi');
$table->timestamps();
});
}
* Reverse the migrations.
public function down()
Schema::dropIfExists('events');