Skip to content

Commit

Permalink
New migration. Change route description type from varchar to text (#1248
Browse files Browse the repository at this point in the history
)

Co-authored-by: zkabic <zoran.kabic@hotmail.com>
  • Loading branch information
zkabic and zkabic authored Dec 14, 2023
1 parent 55478fe commit 82d3469
Showing 1 changed file with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

declare(strict_types=1);

namespace SWP\Migrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20231130123618 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}

public function up(Schema $schema): void
{
$this->addSql("ALTER TABLE swp_route ALTER COLUMN description TYPE TEXT USING description::TEXT; ");
}

public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE swp_route ALTER COLUMN description TYPE VARCHAR(255)');
}
}

0 comments on commit 82d3469

Please sign in to comment.