schema->hasTable('organisations')) { $this->schema->create('organisations', function (Blueprint $table) { $table->increments('id'); $table->string('slug'); $table->string('name'); $table->text('description')->nullable(); $table->integer('registrant_id')->unsigned()->nullable(); $table->boolean('flag_approved')->default(1)->comment('Set to 1 if the organisation has been approved, 0 otherwise.'); $table->softDeletes(); $table->timestamps(); $table->engine = 'InnoDB'; $table->collation = 'utf8_unicode_ci'; $table->charset = 'utf8'; $table->foreign('registrant_id')->references('id')->on('users'); $table->unique('slug'); $table->index('slug'); }); } } /** * {@inheritdoc} */ public function down() { $this->schema->drop('organisations'); } }