diff --git a/migrations/Version20241125085559.php b/migrations/Version20241125085559.php index 3affb967..56b233be 100644 --- a/migrations/Version20241125085559.php +++ b/migrations/Version20241125085559.php @@ -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"'); } }