View file database/upgrades/20190623032106_replace_nextpage_in_blogs.php

File size: 341B
<?php

use Phinx\Migration\AbstractMigration;

class ReplaceNextpageInBlogs extends AbstractMigration
{
    /**
     * Migrate Up.
     */
    public function up()
    {
        $this->execute("UPDATE blogs SET text = replace(`text`, '[nextpage]', '')");
    }

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

    }
}