Skip to content

Commit b4f8ef0

Browse files
authored
Add description to DB migration
1 parent 6461c84 commit b4f8ef0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Migrations/Mysql/Version20200716150451.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Doctrine\DBAL\Migrations\AbortMigrationException;
77

88
/**
9-
* Auto-generated Migration: Please modify to your needs! This block will be used as the migration description if getDescription() is not used.
9+
* Add expires field to authorization table
1010
*/
1111
class Version20200716150451 extends AbstractMigration
1212
{
@@ -16,7 +16,7 @@ class Version20200716150451 extends AbstractMigration
1616
*/
1717
public function getDescription(): string
1818
{
19-
return '';
19+
return 'Add expires field to authorization table';
2020
}
2121

2222
/**
@@ -26,7 +26,6 @@ public function getDescription(): string
2626
*/
2727
public function up(Schema $schema): void
2828
{
29-
// this up() migration is autogenerated, please modify it to your needs
3029
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on "mysql".');
3130
$this->addSql('ALTER TABLE flownative_oauth2_client_authorization ADD expires DATETIME DEFAULT NULL COMMENT \'(DC2Type:datetime_immutable)\'');
3231
}
@@ -38,7 +37,6 @@ public function up(Schema $schema): void
3837
*/
3938
public function down(Schema $schema): void
4039
{
41-
// this down() migration is autogenerated, please modify it to your needs
4240
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on "mysql".');
4341

4442
$this->addSql('ALTER TABLE flownative_oauth2_client_authorization DROP expires');

0 commit comments

Comments
 (0)