-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TASK: Change size of redirecturi to store more uris
- Loading branch information
1 parent
447fd79
commit b091170
Showing
2 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
namespace Neos\Flow\Persistence\Doctrine\Migrations; | ||
|
||
use Doctrine\DBAL\Migrations\AbstractMigration; | ||
use Doctrine\DBAL\Schema\Schema; | ||
|
||
class Version20190228174241 extends AbstractMigration | ||
{ | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getDescription() | ||
{ | ||
return 'Change redirecturi field to text'; | ||
} | ||
|
||
/** | ||
* @param Schema $schema | ||
* @return void | ||
* @throws \Doctrine\DBAL\DBALException | ||
* @throws \Doctrine\DBAL\Migrations\AbortMigrationException | ||
*/ | ||
public function up(Schema $schema) | ||
{ | ||
// this up() migration is autogenerated, please modify it to your needs | ||
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on "mysql".'); | ||
$this->addSql('ALTER TABLE punktde_oauth2_server_domain_model_client CHANGE redirecturi redirecturi TEXT DEFAULT NULL'); | ||
} | ||
|
||
/** | ||
* @param Schema $schema | ||
* @return void | ||
* @throws \Doctrine\DBAL\DBALException | ||
* @throws \Doctrine\DBAL\Migrations\AbortMigrationException | ||
*/ | ||
public function down(Schema $schema) | ||
{ | ||
// this down() migration is autogenerated, please modify it to your needs | ||
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on "mysql".'); | ||
|
||
$this->addSql('ALTER TABLE punktde_oauth2_server_domain_model_client CHANGE redirecturi redirecturi VARCHAR(255) DEFAULT NULL COLLATE utf8mb4_unicode_ci'); | ||
} | ||
} |