diff --git a/database/migrations/2024_03_31_072859_create_quotations_table.php b/database/migrations/2024_03_31_072859_create_quotations_table.php index 61daf4c..09f4509 100644 --- a/database/migrations/2024_03_31_072859_create_quotations_table.php +++ b/database/migrations/2024_03_31_072859_create_quotations_table.php @@ -17,7 +17,7 @@ public function up(): void $table->string('phone'); $table->string('email'); $table->text('message'); - $table->string('attachment')->nullable(); + $table->string('attachment'); $table->timestamps(); }); } diff --git a/database/migrations/2024_07_29_115049_make_attachment_nullable_in_quotations_table.php b/database/migrations/2024_07_29_115049_make_attachment_nullable_in_quotations_table.php new file mode 100644 index 0000000..1f3b1a9 --- /dev/null +++ b/database/migrations/2024_07_29_115049_make_attachment_nullable_in_quotations_table.php @@ -0,0 +1,28 @@ +string('attachment')->nullable()->change(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('quotations', function (Blueprint $table) { + $table->string('attachment')->nullable(false)->change(); + }); + } +};