Change Method.

More information on this method is available here:
http://docs.phinx.org/en/latest/migrations.html#the-change-method
@return void
548868
public function change()
	{
		$this->table('database_logs')
			->changeColumn('ip', 'string', [
				'default' => null,
				'limit' => 100,
				'null' => true,
			])
			->changeColumn('hostname', 'string', [
				'default' => null,
				'limit' => 100,
				'null' => true,
			])
			->changeColumn('created', 'datetime', [
				'default' => null,
				'null' => false,
			])->update();
	}
199000
public function change()
    {
        $permissionTable = $this->table('permission', ['signed' => false]);

        $permissionTable->addColumn('name', 'string', ['limit' => 100])
            ->addColumn('status', 'boolean', ['default' => 1])
            ->addColumn('created_at', 'datetime')
            ->addColumn('updated_at', 'datetime', ['null' => true])
            ->addIndex('name', ['name' => 'idx_role_name' ,'unique' => true])
            ->create();
    }
752384
public function change() {
		$table = $this->table('queue_processes');
		$table
			->addColumn('pid', 'string', ['null' => false, 'default' => null, 'length' => 30])
			->addColumn('created', 'datetime', ['null' => true, 'default' => null])
			->addColumn('modified', 'datetime', ['null' => true, 'default' => null])
			->save();
	}
814533
public function up()
    {
        Schema::create('content_elements', function (Blueprint $table) {
            $table->increments('id');
            $table->string('type', 20)->nullable();
            $table->string('html')->nullable()->default(null);
            $table->string('html_tag')->nullable()->default(null);
            $table->enum('wrapper_type', ['begin', 'end'])->nullable()->default(null);
            $table->string('label')->nullable()->default(null);
            $table->string('form_input_type', 20)->nullable()->default(null);
            $table->text('html_attributes')->nullable()->default(null);
            $table->text('form_options')->nullable()->default(null);
            $table->string('form_validation')->nullable()->default('string');

            $table->nullableTimestamps();
        });
    }
887006
public function change()
    {
        $table = $this->table('menus');
        $table->addColumn('default', 'boolean', [
            'default' => null,
            'null' => true,
        ]);
        $table->update();
    }
1001469
public function up()
    {
        Schema::table('attributes', function (Blueprint $table) {

            // String settings
            $table->integer('maxlength')->nullable();
            $table->string('pattern')->nullable();
            $table->string('autocomplete')->nullable();
            $table->string('placeholder')->nullable();

            // Numeric settings
            $table->double('min')->nullable();
            $table->double('max')->nullable();
            $table->double('step')->nullable();
        });
    }
680482
public function up()
    {
        $driver = Schema::getConnection()->getDriverName();
        // Even though we take care of this scenario in the code,
        // SQL Server does not allow potential cascading loops,
        // so set the default no action and clear out created/modified by another user when deleting a user.

        $onDelete = (('sqlsrv' === $driver) ? 'no action' : 'set null');

        if (Schema::hasColumn('system_config', 'db_version')) {
            Schema::table('system_config', function (Blueprint $t) use ($onDelete) {
                // delete the old stuff and create the new config
                $t->dropPrimary('system_config_db_version_primary');
                $t->dropColumn('db_version');
                $t->dropColumn('created_date');
                $t->dropColumn('last_modified_date');
//                $t->dropColumn('created_by_id');
//                $t->dropColumn('last_modified_by_id');
                $t->integer('service_id')->unsigned()->primary();
                $t->foreign('service_id')->references('id')->on('service')->onDelete('cascade');
                $t->integer('invite_email_service_id')->unsigned()->nullable();
                $t->foreign('invite_email_service_id')->references('id')->on('service')->onDelete($onDelete);
                $t->integer('invite_email_template_id')->unsigned()->nullable();
                $t->foreign('invite_email_template_id')->references('id')->on('email_template')->onDelete($onDelete);
                $t->integer('password_email_service_id')->unsigned()->nullable();
                $t->foreign('password_email_service_id')->references('id')->on('service')->onDelete($onDelete);
                $t->integer('password_email_template_id')->unsigned()->nullable();
                $t->foreign('password_email_template_id')->references('id')->on('email_template')->onDelete($onDelete);
            });
        }
    }
1079351
private function changed()
    {
        if ($this->isDirty) {
            return;
        }

        $this->isDirty = true;

        if ($this->association !== null &&
            $this->association['isOwningSide'] &&
            $this->association['type'] === ClassMetadata::MANY_TO_MANY &&
            $this->owner &&
            $this->em->getClassMetadata(get_class($this->owner))->isChangeTrackingNotify()) {
            $this->em->getUnitOfWork()->scheduleForDirtyCheck($this->owner);
        }
    }
234848
public function change()
    {
        $table = $this->table('permissions');
        
        $table->addColumn('owner_model', 'string', [
            'default' => null,
            'null' => false,
            'limit' => 50,
        ]);

        $table->removeColumn('user_id');
        $table->removeColumn('is_active');

        $table->addColumn('owner_foreign_key', 'char', [
            'default' => null,
            'null' => false,
            'limit' => 36 
        ]);

        $table->save();
    }
614699
public function up()
    {
        Schema::table('theme_templates', function (Blueprint $table) {
            $table->create();
            $table->increments('id');
            $table->integer('theme_id');
            $table->integer('template_id');
            $table->string('label')->nullable();
            $table->integer('child_template')->nullable();
            $table->integer('hidden')->nullable();
            $table->timestamps();
        });

        $themeTemplates = [];
        $deleteTemplateIds = [];
        $templatesFound = [];
        $templates = DB::table('templates')->get();
        foreach ($templates as $template) {
            if (array_key_exists($template->template, $templatesFound)) {
                $deleteTemplateIds[] = $template->id;
            } else {
                $templatesFound[$template->template] = $template;
            }
            $themeTemplate = array_diff_key((array) $template, array_fill_keys(['template'], ''));
            foreach (['label', 'child_template', 'hidden'] as $attribute) {
                if ($templatesFound[$template->template]->$attribute == $themeTemplate[$attribute]) {
                    $themeTemplate[$attribute] = null;
                }
            }
            $themeTemplate['template_id'] = $templatesFound[$template->template]->id;
            $themeTemplates[] = $themeTemplate;
        }

        Schema::rename('template_blocks', 'theme_template_blocks');
        DB::table('theme_templates')->insert($themeTemplates);
        DB::table('templates')->whereIn('id', $deleteTemplateIds)->delete();
        Schema::table('templates', function(Blueprint $table) {
            $table->dropColumn('theme_id');
        });
        Schema::table('theme_template_blocks', function(Blueprint $table) {
            $table->renameColumn('template_id', 'theme_template_id');
        });
    }
451658
public function change() {
		$table = $this->table('queued_tasks');

		$table->changeColumn('status', 'string', [
		    'length' => 255,
			'null' => true,
			'default' => null,
		]);

		$table->save();
	}
516971
public function up()
    {
        $table = $this->table('users');
        $table->changeColumn('username', 'string', ['null' => true, 'default' => null]);
        $table->update();
    }
537493
public function migrateUp()
    {
        try {
            $this->builder->table(
                $this->table,
                function ($table) {
                    $table->string('value')->nullable()->change();
                }
            );
        } catch (\Exception $e) {
            dd($e->getMessage());
        }
    }
1103703
public function up()
    {
        Schema::table('notifications', function (Blueprint $table) {
            $table->bigInteger('from_id')->unsigned()->nullable()->change();
        });
        Schema::table('notifications', function (Blueprint $table) {
            $table->renameColumn('expire_time', 'expires_at');
        });
    }
782525
public function change()
    {
        $tableName = 'language_translations';
        if (!$this->hasTable($tableName)) {
            $tableName = 'translations';
        }
        $table = $this->table($tableName);
        if ($table->hasColumn('is_active')) {
            $table->removeColumn('is_active');
        }
        if ($table->hasColumn('code')) {
            $table->removeColumn('code');
        }
        if ($table->hasColumn('language_id')) {
            $table->changeColumn('language_id', 'string', [
                'limit' => 36,
                'null' => false,
            ]);
        } else {
            $table->addColumn('language_id', 'string', [
                'limit' => 36,
                'null' => false,
            ]);
        }
        $table->save();
    }
692372
public function change()
    {
        $rolePermissionTable = $this->table('role_permission', ['signed' => false]);

        $rolePermissionTable->addColumn('role_id', 'integer', ['signed' => false])
            ->addColumn('permission_id', 'integer', ['signed' => false])
            ->addColumn('created_at', 'datetime')
            ->addIndex(['role_id', 'permission_id'], ['name' => 'idx_role_permission_unique', 'unique' => true])
            ->addForeignKey('role_id', 'role', 'id', ['delete' => 'RESTRICT', 'constraint' => 'fk_role_permission_role'])
            ->addForeignKey('permission_id', 'permission', 'id', ['delete' => 'RESTRICT', 'constraint' => 'fk_role_permission_permission'])
            ->create();
    }
1261106
public function change() {
		$table = $this->table('queue_processes');

		$table->changeColumn('pid', 'string', [
			'length' => 40,
			'null' => false,
			'default' => null,
			'encoding' => 'utf8mb4',
			'collation' => 'utf8mb4_unicode_ci',
		]);

		$table->save();
	}