-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Increase url length in database to 2048 characters
fix #1
- Loading branch information
Torben Ewert
committed
Sep 5, 2019
1 parent
53fda00
commit f949759
Showing
2 changed files
with
47 additions
and
0 deletions.
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\Migrations\AbstractMigration; | ||
use Doctrine\DBAL\Schema\Schema; | ||
|
||
/** | ||
* Auto-generated Migration: Please modify to your needs! This block will be used as the migration description if getDescription() is not used. | ||
*/ | ||
class Version20190905141704 extends AbstractMigration | ||
{ | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getDescription() | ||
{ | ||
return ''; | ||
} | ||
|
||
/** | ||
* @param Schema $schema | ||
* @return void | ||
*/ | ||
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('CREATE TABLE unikka_linkchecker_domain_model_resultitem (persistence_object_identifier VARCHAR(40) NOT NULL, createdat DATETIME NOT NULL, checkedat DATETIME NOT NULL, originurl VARCHAR(2048) NOT NULL, url VARCHAR(2048) NOT NULL, statuscode INT NOT NULL, PRIMARY KEY(persistence_object_identifier)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB'); | ||
} | ||
|
||
/** | ||
* @param Schema $schema | ||
* @return void | ||
*/ | ||
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('DROP TABLE unikka_linkchecker_domain_model_resultitem'); | ||
} | ||
} |