Skip to content

Commit

Permalink
3208: Fixed migration
Browse files Browse the repository at this point in the history
  • Loading branch information
tuj committed Dec 9, 2024
1 parent aed4bfc commit c59f5bd
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions migrations/Version20241125085559.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,21 @@ public function getDescription(): string

public function up(Schema $schema): void
{
$this->addSql('UPDATE feed_source SET feed_type = \'App\\Feed\\SourceType\\Calendar\\CalendarApiFeedType\' WHERE feed_type = \'App\\Feed\\CalendarApiFeedType\'');
$this->addSql('UPDATE feed_source SET feed_type = \'App\\Feed\\SourceType\\EventDatabase\\EventDatabaseApiFeedType\' WHERE feed_type = \'App\\Feed\\EventDatabaseApiFeedType\'');
$this->addSql('UPDATE feed_source SET feed_type = \'App\\Feed\\SourceType\\Koba\\KobaFeedType\' WHERE feed_type = \'App\\Feed\\KobaFeedType\'');
$this->addSql('UPDATE feed_source SET feed_type = \'App\\Feed\\SourceType\\Notified\\NotifiedFeedType\' WHERE feed_type = \'App\\Feed\\NotifiedFeedType\'');
$this->addSql('UPDATE feed_source SET feed_type = \'App\\Feed\\SourceType\\Rss\\RssFeedType\' WHERE feed_type = \'App\\Feed\\RssFeedType\'');
$this->addSql('UPDATE feed_source SET feed_type = \'App\\Feed\\SourceType\\SparkleIO\\SparkleIOFeedType\' WHERE feed_type = \'App\\Feed\\SparkleIOFeedType\'');

$this->addSql('UPDATE feed_source SET feed_type = "App\\\\Feed\\\\SourceType\\\\Calendar\\\\CalendarApiFeedType" WHERE feed_type = "App\\\\Feed\\\\CalendarApiFeedType"');
$this->addSql('UPDATE feed_source SET feed_type = "App\\\\Feed\\\\SourceType\\\\EventDatabase\\\\EventDatabaseApiFeedType" WHERE feed_type = "App\\\\Feed\\\\EventDatabaseApiFeedType"');
$this->addSql('UPDATE feed_source SET feed_type = "App\\\\Feed\\\\SourceType\\\\Koba\\\\KobaFeedType" WHERE feed_type = "App\\\\Feed\\\\KobaFeedType"');
$this->addSql('UPDATE feed_source SET feed_type = "App\\\\Feed\\\\SourceType\\\\Notified\\\\NotifiedFeedType" WHERE feed_type = "App\\\\Feed\\\\NotifiedFeedType"');
$this->addSql('UPDATE feed_source SET feed_type = "App\\\\Feed\\\\SourceType\\\\Rss\\\\RssFeedType" WHERE feed_type = "App\\\\Feed\\\\RssFeedType"');
$this->addSql('UPDATE feed_source SET feed_type = "App\\\\Feed\\\\SourceType\\\\SparkleIO\\\\SparkleIOFeedType" WHERE feed_type = "App\\\\Feed\\\\SparkleIOFeedType"');
}

public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs

$this->addSql('UPDATE feed_source SET feed_type = "App\\\\Feed\\\\CalendarApiFeedType" WHERE feed_type LIKE "App\\\\Feed\\\\SourceType\\\\Calendar\\\\CalendarApiFeedType"');
$this->addSql('UPDATE feed_source SET feed_type = "App\\\\Feed\\\\EventDatabaseApiFeedType" WHERE feed_type LIKE "App\\\\Feed\\\\SourceType\\\\EventDatabase\\\\EventDatabaseApiFeedType"');
$this->addSql('UPDATE feed_source SET feed_type = "App\\\\Feed\\\\KobaFeedType" WHERE feed_type LIKE "App\\\\Feed\\\\SourceType\\\\Koba\\\\KobaFeedType"');
$this->addSql('UPDATE feed_source SET feed_type = "App\\\\Feed\\\\NotifiedFeedType" WHERE feed_type LIKE "App\\\\Feed\\\\SourceType\\\\Notified\\\\NotifiedFeedType"');
$this->addSql('UPDATE feed_source SET feed_type = "App\\\\Feed\\\\RssFeedType" WHERE feed_type LIKE "App\\\\Feed\\\\SourceType\\\\Rss\\\\RssFeedType"');
$this->addSql('UPDATE feed_source SET feed_type = "App\\\\Feed\\\\SparkleIOFeedType" WHERE feed_type LIKE "App\\\\Feed\\\\SourceType\\\\SparkleIO\\\\SparkleIOFeedType"');
}
}

0 comments on commit c59f5bd

Please sign in to comment.