From c95d7ed58d6515f70c262ddff08eaa9354fc53de Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Mon, 24 Oct 2022 21:10:48 +0100 Subject: [PATCH] Make columns nullable in original migration --- ...55721_create_syndication_targets_table.php | 12 +++--- ...27_make_some_syndication_data_optional.php | 37 ------------------- 2 files changed, 6 insertions(+), 43 deletions(-) delete mode 100644 database/migrations/2022_10_24_160127_make_some_syndication_data_optional.php diff --git a/database/migrations/2022_10_21_155721_create_syndication_targets_table.php b/database/migrations/2022_10_21_155721_create_syndication_targets_table.php index 01b3d10b..c5d5793c 100644 --- a/database/migrations/2022_10_21_155721_create_syndication_targets_table.php +++ b/database/migrations/2022_10_21_155721_create_syndication_targets_table.php @@ -17,12 +17,12 @@ return new class extends Migration $table->id(); $table->string('uid'); $table->string('name'); - $table->string('service_name'); - $table->string('service_url'); - $table->string('service_photo'); - $table->string('user_name'); - $table->string('user_url'); - $table->string('user_photo'); + $table->string('service_name')->nullable(); + $table->string('service_url')->nullable(); + $table->string('service_photo')->nullable(); + $table->string('user_name')->nullable(); + $table->string('user_url')->nullable(); + $table->string('user_photo')->nullable(); $table->timestamps(); }); } diff --git a/database/migrations/2022_10_24_160127_make_some_syndication_data_optional.php b/database/migrations/2022_10_24_160127_make_some_syndication_data_optional.php deleted file mode 100644 index 901305a2..00000000 --- a/database/migrations/2022_10_24_160127_make_some_syndication_data_optional.php +++ /dev/null @@ -1,37 +0,0 @@ -string('service_name')->nullable()->change(); - $table->string('service_url')->nullable()->change(); - $table->string('service_photo')->nullable()->change(); - $table->string('user_name')->nullable()->change(); - $table->string('user_url')->nullable()->change(); - $table->string('user_photo')->nullable()->change(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('syndication_targets', function (Blueprint $table) { - // - }); - } -};