From 9f6fa743f18aadc3787bebcf68161ebc0e4b1d77 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Thu, 2 Nov 2023 11:32:10 +0100 Subject: [PATCH] Fix migrations --- ....php => 2023_10_21_000001_create_foo_childs_table.php} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename tests/etc/migrations/{2023_05_11_000001_create_bar_models_table.php => 2023_10_21_000001_create_foo_childs_table.php} (67%) diff --git a/tests/etc/migrations/2023_05_11_000001_create_bar_models_table.php b/tests/etc/migrations/2023_10_21_000001_create_foo_childs_table.php similarity index 67% rename from tests/etc/migrations/2023_05_11_000001_create_bar_models_table.php rename to tests/etc/migrations/2023_10_21_000001_create_foo_childs_table.php index 4f8d42d..bb39d10 100644 --- a/tests/etc/migrations/2023_05_11_000001_create_bar_models_table.php +++ b/tests/etc/migrations/2023_10_21_000001_create_foo_childs_table.php @@ -6,7 +6,7 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateBarModelsTable extends Migration +class CreateFooChildsTable extends Migration { /** * Run the migrations. @@ -15,10 +15,10 @@ 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(); }); @@ -26,6 +26,6 @@ class CreateBarModelsTable extends Migration public function down() { - Schema::dropIfExists('bar_models'); + Schema::dropIfExists('foo_childs'); } }