Просмотр файла database/upgrades/20191111002502_change_hash_in_invite.php

Размер файла: 531B
<?php

use Phinx\Migration\AbstractMigration;

class ChangeHashInInvite extends AbstractMigration
{
    /**
     * Migrate Up.
     */
    public function up()
    {
        $table = $this->table('invite');
        $table
            ->changeColumn('hash', 'string', ['limit' => 16])
            ->save();
    }

    /**
     * Migrate Down.
     */
    public function down()
    {
        $table = $this->table('invite');
        $table
            ->changeColumn('hash', 'string', ['limit' => 15])
            ->save();
    }
}