View file database/upgrades/20180420131916_edit_fields_in_counter24.php

File size: 475B
<?php

use Phinx\Migration\AbstractMigration;

class EditFieldsInCounter24 extends AbstractMigration
{
    /**
     * Migrate Up.
     */
    public function up()
    {
        $table = $this->table('counter24');
        $table
            ->changeColumn('hour', 'integer')
            ->changeColumn('hosts', 'integer')
            ->changeColumn('hits', 'integer')
            ->save();
    }

    /**
     * Migrate Down.
     */
    public function down()
    {

    }
}