Skip to content

Commit

Permalink
Fix migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
lukinovec committed Nov 2, 2023
1 parent 9cf1786 commit 9f6fa74
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateBarModelsTable extends Migration
class CreateFooChildsTable extends Migration
{
/**
* Run the migrations.
Expand All @@ -15,17 +15,17 @@ class CreateBarModelsTable extends Migration
*/
public function up()
{
Schema::create('bar_models', function (Blueprint $table) {
Schema::create('foo_childs', function (Blueprint $table) {
$table->increments('id');

$table->string('custom1');
$table->string('foo')->nullable();

$table->json('data')->nullable();
});
}

public function down()
{
Schema::dropIfExists('bar_models');
Schema::dropIfExists('foo_childs');
}
}

0 comments on commit 9f6fa74

Please sign in to comment.