SchulIT /
idp
| 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 Version20201101115355 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 service_provider SET class = "saml"'); |
||
|
0 ignored issues
–
show
|
|||
| 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 service_provider ADD class VARCHAR(255) NOT NULL, CHANGE entity_id entity_id VARCHAR(255) DEFAULT NULL, CHANGE acs acs LONGTEXT DEFAULT NULL, CHANGE certificate certificate LONGTEXT DEFAULT 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 service_provider DROP class, CHANGE entity_id entity_id VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE acs acs LONGTEXT CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE certificate certificate LONGTEXT CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`'); |
||
| 34 | } |
||
| 35 | } |
||
| 36 |
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.