Change file desc to text, since it can be larger than 255 chars
This commit is contained in:
parent
f6a6c13ca2
commit
ba0d612889
24
database/migrations/2023_12_13_130721_fix_tic_desc.php
Normal file
24
database/migrations/2023_12_13_130721_fix_tic_desc.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?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
|
||||
{
|
||||
DB::statement('ALTER TABLE files ALTER COLUMN "desc" TYPE text');
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
DB::statement('ALTER TABLE files ALTER COLUMN "desc" TYPE varchar(255)');
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue
Block a user