diff --git a/database/migrations/2024_12_12_094141_add_information_to_invoiceitems_table.php b/database/migrations/2024_12_12_094141_add_information_to_invoiceitems_table.php new file mode 100644 index 0000000..0b57bb8 --- /dev/null +++ b/database/migrations/2024_12_12_094141_add_information_to_invoiceitems_table.php @@ -0,0 +1,30 @@ +string('name')->after('invoice_id'); + $table->text('description')->nullable()->after('name'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('invoiceitems', function (Blueprint $table) { + $table->dropColumn('name'); + $table->dropColumn('description'); + }); + } +}; diff --git a/database/migrations/2024_12_20_130041_add_information_to_invoices_table.php b/database/migrations/2024_12_20_130041_add_information_to_invoices_table.php new file mode 100644 index 0000000..1c059ed --- /dev/null +++ b/database/migrations/2024_12_20_130041_add_information_to_invoices_table.php @@ -0,0 +1,30 @@ +decimal('tax', 8, 2)->default(0); + $table->decimal('sum', 8, 2)->default(0); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('invoices', function (Blueprint $table) { + $table->dropColumn('tax'); + $table->dropColumn('sum'); + }); + } +};