fix some bugs 3
This commit is contained in:
@@ -34,7 +34,7 @@ return new class extends Migration
|
||||
$table->text('sync_log')->nullable();
|
||||
$table->string('pargar_ref')->nullable();
|
||||
$table->text('res')->nullable();
|
||||
$table->text('data')->nullable();
|
||||
$table->longText('data')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
if (! Schema::hasTable('pargar_sync_logs') || ! Schema::hasColumn('pargar_sync_logs', 'data')) {
|
||||
return;
|
||||
}
|
||||
|
||||
DB::statement('ALTER TABLE `pargar_sync_logs` MODIFY COLUMN `data` LONGTEXT NULL');
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
if (! Schema::hasTable('pargar_sync_logs') || ! Schema::hasColumn('pargar_sync_logs', 'data')) {
|
||||
return;
|
||||
}
|
||||
|
||||
DB::statement('ALTER TABLE `pargar_sync_logs` MODIFY COLUMN `data` TEXT NULL');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user