You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xshop/database/migrations/2024_02_05_022113_fix_title...

53 lines
1.3 KiB
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
Schema::table('posts', function ($table) {
$table->text('title')->change();
});
Schema::table('categories', function ($table) {
$table->text('name')->change();
});
Schema::table('cats', function ($table) {
$table->text('name')->change();
});
Schema::table('products', function ($table) {
$table->text('name')->change();
});
Schema::table('props', function ($table) {
$table->text('label')->change();
});
Schema::table('galleries', function ($table) {
$table->text('title')->change();
});
Schema::table('menu_items', function ($table) {
$table->text('title')->change();
});
Schema::table('images', function ($table) {
$table->text('title')->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
};