/** * Create the DB scheme. * @return null; */ public function up() { \Schema::dropIfExists('axc_data_management_email'); \Schema::create('axc_data_management_email', function ($table) { SchemaHelper::init($table); $table->string('type')->unique()->index(); $table->string('address')->unique(); SchemaHelper::addBoolean($table, 'principal'); SchemaHelper::addPosition($table); SchemaHelper::addPublished($table); SchemaHelper::addChangedAt($table); SchemaHelper::addChangedBy($table); SchemaHelper::avoidDelete($table); }); }