for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20201101130541 extends AbstractMigration
{
public function getDescription() : string
return '';
}
public function postUp(Schema $schema): void {
$this->connection->exec('UPDATE user_role SET priority = 0');
Doctrine\DBAL\Connection::exec()
If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated annotation
ignore-deprecated
/** @scrutinizer ignore-deprecated */ $this->connection->exec('UPDATE user_role SET priority = 0');
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.
public function up(Schema $schema) : void
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE user_role ADD priority INT NOT NULL');
public function down(Schema $schema) : void
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE user_role DROP priority');
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.