You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
583 B

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;
return new class extends Migration {
public function up()
{
// SQLite TEXT/VARCHAR already accepts rich descriptions without a length limit.
if (DB::getDriverName() === 'mysql') {
DB::statement('ALTER TABLE course_content_evaluations MODIFY `desc` MEDIUMTEXT NULL COMMENT \'问卷描述(富文本)\'');
}
}
public function down()
{
// Keep the wider column to avoid truncating descriptions already saved by editors.
}
};