mirror of
https://github.com/archtechx/virtualcolumn.git
synced 2025-12-12 18:44:04 +00:00
Fix migrations
This commit is contained in:
parent
9cf17865d0
commit
9f6fa743f1
1 changed files with 4 additions and 4 deletions
|
|
@ -6,7 +6,7 @@ use Illuminate\Database\Migrations\Migration;
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
use Illuminate\Support\Facades\Schema;
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
class CreateBarModelsTable extends Migration
|
class CreateFooChildsTable extends Migration
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Run the migrations.
|
* Run the migrations.
|
||||||
|
|
@ -15,10 +15,10 @@ class CreateBarModelsTable extends Migration
|
||||||
*/
|
*/
|
||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
Schema::create('bar_models', function (Blueprint $table) {
|
Schema::create('foo_childs', function (Blueprint $table) {
|
||||||
$table->increments('id');
|
$table->increments('id');
|
||||||
|
|
||||||
$table->string('custom1');
|
$table->string('foo')->nullable();
|
||||||
|
|
||||||
$table->json('data')->nullable();
|
$table->json('data')->nullable();
|
||||||
});
|
});
|
||||||
|
|
@ -26,6 +26,6 @@ class CreateBarModelsTable extends Migration
|
||||||
|
|
||||||
public function down()
|
public function down()
|
||||||
{
|
{
|
||||||
Schema::dropIfExists('bar_models');
|
Schema::dropIfExists('foo_childs');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue