Seditio Source
Root |
./othercms/croogo-4.0.7/vendor/croogo/croogo/Users/config/Migrations/20191120014021_UsersSyncTimestampFields.php
<?php
use Migrations\AbstractMigration;

class
UsersSyncTimestampFields extends AbstractMigration
{
   
/**
     * Change Method.
     *
     * More information on this method is available here:
     * http://docs.phinx.org/en/latest/migrations.html#the-change-method
     * @return void
     */
   
public function change()
    {
       
$this->table('users')
            ->
renameColumn('updated', 'modified')
            ->
renameColumn('updated_by', 'modified_by')
            ->
update();

       
$this->table('roles')
            ->
renameColumn('updated', 'modified')
            ->
renameColumn('updated_by', 'modified_by')
            ->
update();

       
$this->table('roles_users')
            ->
renameColumn('updated', 'modified')
            ->
update();
    }
}