added wss tools 6

This commit is contained in:
2026-06-18 19:32:28 +03:30
parent dc440abf61
commit 017ab348c7
12 changed files with 133 additions and 90 deletions
@@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
if (! Schema::hasTable('withdraws')) {
return;
}
if (Schema::hasColumn('withdraws', 'extra_note')) {
return;
}
Schema::table('withdraws', function (Blueprint $table) {
$table->text('extra_note')->nullable()->after('note');
});
}
public function down(): void
{
if (! Schema::hasTable('withdraws') || ! Schema::hasColumn('withdraws', 'extra_note')) {
return;
}
Schema::table('withdraws', function (Blueprint $table) {
$table->dropColumn('extra_note');
});
}
};