From 93ca3613ac1f066489ba682144366eefdf57e815 Mon Sep 17 00:00:00 2001 From: karimalden Date: Mon, 29 Jul 2024 14:52:14 +0300 Subject: [PATCH] add migrate --- ...4_03_31_072859_create_quotations_table.php | 2 +- ...ttachment_nullable_in_quotations_table.php | 28 +++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 database/migrations/2024_07_29_115049_make_attachment_nullable_in_quotations_table.php 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(); + }); + } +};