ChangeSrcReferenceColumnInTranslations::up PHP Method

up() public method

Run the migrations.
public up ( ) : void
return void
    public function up()
    {
        Schema::table('ltm_translations', function (Blueprint $table) {
            $table->dropColumn('source');
        });
        Schema::table('ltm_translations', function (Blueprint $table) {
            $table->text('source')->nullable();
            $table->boolean('is_auto_added')->default(0);
        });
    }
ChangeSrcReferenceColumnInTranslations