Changeset View
Changeset View
Standalone View
Standalone View
src/database/migrations/2023_02_17_100000_vat_rates_table.php
Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Lines | return new class extends Migration | ||||
* | * | ||||
* @return void | * @return void | ||||
*/ | */ | ||||
public function down() | public function down() | ||||
{ | { | ||||
Schema::table( | Schema::table( | ||||
'payments', | 'payments', | ||||
function (Blueprint $table) { | function (Blueprint $table) { | ||||
$table->dropForeign(['vat_rate_id']); | |||||
mollekopf: Doesn't belong in the same commit (but is indeed required). | |||||
$table->dropColumn('vat_rate_id'); | $table->dropColumn('vat_rate_id'); | ||||
$table->dropColumn('credit_amount'); | $table->dropColumn('credit_amount'); | ||||
} | } | ||||
); | ); | ||||
Schema::dropIfExists('vat_rates'); | Schema::dropIfExists('vat_rates'); | ||||
} | } | ||||
}; | }; |
Doesn't belong in the same commit (but is indeed required).