Issues (97)

migrations/Version20201101130541.php (1 issue)

1
<?php
2
3
declare(strict_types=1);
4
5
namespace DoctrineMigrations;
6
7
use Doctrine\DBAL\Schema\Schema;
8
use Doctrine\Migrations\AbstractMigration;
9
10
/**
11
 * Auto-generated Migration: Please modify to your needs!
12
 */
13
final class Version20201101130541 extends AbstractMigration
14
{
15
    public function getDescription() : string
16
    {
17
        return '';
18
    }
19
20
    public function postUp(Schema $schema): void {
21
        $this->connection->exec('UPDATE user_role SET priority = 0');
0 ignored issues
show
Deprecated Code introduced by
The function Doctrine\DBAL\Connection::exec() has been deprecated: This API is deprecated and will be removed after 2022 ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

21
        /** @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.

Loading history...
22
    }
23
24
    public function up(Schema $schema) : void
25
    {
26
        // this up() migration is auto-generated, please modify it to your needs
27
        $this->addSql('ALTER TABLE user_role ADD priority INT NOT NULL');
28
    }
29
30
    public function down(Schema $schema) : void
31
    {
32
        // this down() migration is auto-generated, please modify it to your needs
33
        $this->addSql('ALTER TABLE user_role DROP priority');
34
    }
35
}
36