Compare commits
3 Commits
334199a7e7
...
0a5dd6dae7
Author | SHA1 | Date |
---|---|---|
|
0a5dd6dae7 | 3 weeks ago |
|
f79ffa7d80 | 3 weeks ago |
|
ce184c6548 | 3 weeks ago |
6 changed files with 90 additions and 13 deletions
@ -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('tipos_veiculos', function (Blueprint $table) { |
||||
|
$table->boolean('status')->default(true); |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* Reverse the migrations. |
||||
|
*/ |
||||
|
public function down(): void |
||||
|
{ |
||||
|
Schema::table('tipos_veiculos', function (Blueprint $table) { |
||||
|
$table->dropColumn('status'); |
||||
|
}); |
||||
|
} |
||||
|
}; |
Loading…
Reference in new issue