DB Config
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php namespace GermanAirlinesVa\Fleet\Updates;
|
||||
|
||||
use Schema;
|
||||
use October\Rain\Database\Updates\Migration;
|
||||
|
||||
class BuilderTableCreateGermanAirlinesVaSchoolingDeferredBindings extends Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
Schema::connection('germanairlinesva_social')->create('deferred_bindings', function ($table) {
|
||||
$table->engine = 'InnoDB';
|
||||
$table->increments('id')->unsigned();
|
||||
$table->string('master_type');
|
||||
$table->string('master_field');
|
||||
$table->string('slave_type');
|
||||
$table->integer('slave_id');
|
||||
$table->mediumText('pivot_data')->nullable();
|
||||
$table->string('session_key');
|
||||
$table->boolean('is_bind')->default(true);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
Schema::connection('germanairlinesva_social')->disableForeignKeyConstraints();
|
||||
Schema::connection('germanairlinesva_social')->dropIfExists('deferred_bindings');
|
||||
Schema::connection('germanairlinesva_social')->enableForeignKeyConstraints();
|
||||
}
|
||||
}
|
||||
@@ -1,2 +1,4 @@
|
||||
1.0.1:
|
||||
- Initialize plugin.
|
||||
- 'Create table deferred_bindings'
|
||||
- builder_table_create_deferred_bindings.php
|
||||
|
||||
Reference in New Issue
Block a user