Просмотр файла database/upgrades/20181112052511_edit_relate_type_in_spam.php

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

use App\Models\Message;
use Phinx\Migration\AbstractMigration;

class EditRelateTypeInSpam extends AbstractMigration
{
    /**
     * Migrate Up.
     */
    public function up()
    {
        $this->execute('UPDATE spam SET relate_type="' . addslashes(Message::class) . '" WHERE relate_type = "' . addslashes('App\Models\Inbox') . '";');
    }

    /**
     * Migrate Down.
     */
    public function down()
    {
        $this->execute('UPDATE spam SET relate_type="' . addslashes('App\Models\Inbox') . '" WHERE relate_type = "' . addslashes(Message::class) . '";');
    }
}