add migrate
This commit is contained in:
parent
15d5dfa593
commit
93ca3613ac
|
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('quotations', function (Blueprint $table) {
|
||||
$table->string('attachment')->nullable()->change();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('quotations', function (Blueprint $table) {
|
||||
$table->string('attachment')->nullable(false)->change();
|
||||
});
|
||||
}
|
||||
};
|
||||
Loading…
Reference in New Issue
Block a user