Version 5.1 - All the GraphQL #32

Closed
timw4mail wants to merge 1160 commits from develop into master
Showing only changes of commit a97a31ea41 - Show all commits

View File

@ -27,10 +27,6 @@ class AnimeCollectionRefactorCleanup extends AbstractMigration
} }
$this->table('media')->insert($moreMediaTypes)->save(); $this->table('media')->insert($moreMediaTypes)->save();
// Cleanup existing media types a bit
$this->execute("UPDATE media SET type='Bootleg' WHERE id=4");
$this->execute('DELETE FROM media WHERE id=1');
// Remove foreign key and media_id column from anime_set // Remove foreign key and media_id column from anime_set
$animeSet = $this->table('anime_set'); $animeSet = $this->table('anime_set');
if ($animeSet->hasColumn('media_id')) if ($animeSet->hasColumn('media_id'))
@ -38,6 +34,10 @@ class AnimeCollectionRefactorCleanup extends AbstractMigration
$animeSet->dropForeignKey('media_id')->save(); $animeSet->dropForeignKey('media_id')->save();
$animeSet->removeColumn('media_id')->save(); $animeSet->removeColumn('media_id')->save();
} }
// Cleanup existing media types a bit
$this->execute("UPDATE media SET type='Bootleg' WHERE id=4");
$this->execute('DELETE FROM media WHERE id=1');
} }
public function down() public function down()