/**
  * Create the DB scheme.
  * @return null;
  */
 public function up()
 {
     \Schema::dropIfExists('axc_data_management_insurance_content');
     \Schema::create('axc_data_management_insurance_content', function ($table) {
         SchemaHelper::init($table);
         $table->string('title')->unique()->index();
         SchemaHelper::addPosition($table);
         SchemaHelper::addPublished($table);
         SchemaHelper::addChangedAt($table);
         SchemaHelper::addChangedBy($table);
         SchemaHelper::avoidDelete($table);
     });
 }
コード例 #2
0
 /**
  * Create the DB scheme.
  * @return null;
  */
 public function up()
 {
     \Schema::dropIfExists('axc_data_management_slideshow');
     \Schema::create('axc_data_management_slideshow', function ($table) {
         SchemaHelper::init($table);
         $table->string('title')->unique()->index();
         $table->text('description')->unique();
         SchemaHelper::addPosition($table);
         SchemaHelper::addPublished($table);
         SchemaHelper::addChangedAt($table);
         SchemaHelper::addChangedBy($table);
         SchemaHelper::avoidDelete($table);
     });
 }
コード例 #3
0
 /**
  * Create the DB scheme.
  * @return null;
  */
 public function up()
 {
     \Schema::dropIfExists('axc_data_management_abbreviation');
     \Schema::create('axc_data_management_abbreviation', function ($table) {
         SchemaHelper::init($table);
         $table->string('code')->unique()->index();
         $table->string('acronym')->unique()->index();
         $table->string('meaning')->unique();
         SchemaHelper::addPublished($table);
         SchemaHelper::addChangedAt($table);
         SchemaHelper::addChangedBy($table);
         SchemaHelper::avoidDelete($table);
     });
 }
コード例 #4
0
 /**
  * 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);
     });
 }
コード例 #5
0
 /**
  * Create the DB scheme.
  * @return null;
  */
 public function up()
 {
     \Schema::dropIfExists('axc_data_management_route');
     \Schema::create('axc_data_management_route', function ($table) {
         SchemaHelper::init($table);
         $table->string('path')->unique();
         $table->string('language');
         $table->foreign('language')->references('code')->on('rainlab_translate_locales');
         $table->string('page');
         SchemaHelper::addPublished($table);
         SchemaHelper::addChangedAt($table);
         SchemaHelper::addChangedBy($table);
         SchemaHelper::avoidDelete($table);
     });
 }