Просмотр файла database/upgrades/20200501032913_rename_count_blogs_in_categories.php

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

use Phinx\Migration\AbstractMigration;

class RenameCountBlogsInCategories extends AbstractMigration
{
    /**
     * Migrate Change.
     */
    public function change(): void
    {
        $table = $this->table('categories');
        $table->renameColumn('count_blogs', 'count_articles')->update();
    }
}