| 1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class UpdateYzSettingColumn extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- //
- if (Schema::hasTable('yz_setting')) {
- if (Schema::hasColumn('yz_setting', 'value')) {
- Schema::table('yz_setting', function (Blueprint $table) {
- $table->longText('value')->change();
- });
- }
- }
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- //
- }
- }
|