diff --git a/database/migrations/2020_07_24_162820_changes_for_v540.php b/database/migrations/2020_07_24_162820_changes_for_v540.php index 525f947ff7..3f6dbddc2c 100644 --- a/database/migrations/2020_07_24_162820_changes_for_v540.php +++ b/database/migrations/2020_07_24_162820_changes_for_v540.php @@ -28,6 +28,13 @@ class ChangesForV540 extends Migration $table->dropColumn('order'); } ); + + Schema::table( + 'bills', static function (Blueprint $table) { + $table->dropColumn('end_date'); + $table->dropColumn('extension_date'); + } + ); } /** @@ -47,6 +54,13 @@ class ChangesForV540 extends Migration $table->string('provider')->nullable(); } ); + Schema::table( + 'bills', static function (Blueprint $table) { + $table->date('end_date')->nullable()->after('date'); + $table->date('extension_date')->nullable()->after('end_date'); + } + ); + // make column nullable: Schema::table('oauth_clients', function (Blueprint $table) {