HummingBirdAnimeClient/migrations/20200430175135_anime_collection_cleanup.php
Timothy J Warren a80284a4ee
All checks were successful
timw4mail/HummingBirdAnimeClient/pipeline/head This commit looks good
Collection updates for 'all' tab
2020-04-30 15:33:16 -04:00

27 lines
461 B
PHP

<?php
use Phinx\Migration\AbstractMigration;
class AnimeCollectionCleanup extends AbstractMigration
{
public function up()
{
if ($this->hasTable('genre_anime_set_link'))
{
$this->table('genre_anime_set_link')
->rename('anime_set_genre_link')
->update();
}
}
public function down()
{
if ($this->hasTable('anime_set_genre_link'))
{
$this->table('anime_set_genre_link')
->rename('genre_anime_set_link')
->update();
}
}
}