diff --git a/graphql/metadata/databases/default/tables/public_pokemon_v2_ability.yaml b/graphql/metadata/databases/default/tables/public_pokemon_v2_ability.yaml index 7f37d77c..78edc0a6 100644 --- a/graphql/metadata/databases/default/tables/public_pokemon_v2_ability.yaml +++ b/graphql/metadata/databases/default/tables/public_pokemon_v2_ability.yaml @@ -41,13 +41,6 @@ array_relationships: table: name: pokemon_v2_pokemonability schema: public -- name: pokemon_v2_pokemonabilitiespast - using: - foreign_key_constraint_on: - column: ability_id - table: - name: pokemon_v2_pokemonabilitypast - schema: public select_permissions: - permission: allow_aggregations: true diff --git a/graphql/metadata/databases/default/tables/public_pokemon_v2_pokemon.yaml b/graphql/metadata/databases/default/tables/public_pokemon_v2_pokemon.yaml index 138e161f..59dffbbd 100644 --- a/graphql/metadata/databases/default/tables/public_pokemon_v2_pokemon.yaml +++ b/graphql/metadata/databases/default/tables/public_pokemon_v2_pokemon.yaml @@ -20,13 +20,6 @@ array_relationships: table: name: pokemon_v2_pokemonability schema: public -- name: pokemon_v2_pokemonabilitiespast - using: - foreign_key_constraint_on: - column: pokemon_id - table: - name: pokemon_v2_pokemonabilitypast - schema: public - name: pokemon_v2_pokemonforms using: foreign_key_constraint_on: diff --git a/graphql/metadata/databases/default/tables/public_pokemon_v2_pokemonabilitypast.yaml b/graphql/metadata/databases/default/tables/public_pokemon_v2_pokemonabilitypast.yaml deleted file mode 100644 index 2a1ab44a..00000000 --- a/graphql/metadata/databases/default/tables/public_pokemon_v2_pokemonabilitypast.yaml +++ /dev/null @@ -1,20 +0,0 @@ -table: - name: pokemon_v2_pokemonabilitypast - schema: public -object_relationships: -- name: pokemon_v2_generation - using: - foreign_key_constraint_on: generation_id -- name: pokemon_v2_pokemon - using: - foreign_key_constraint_on: pokemon_id -- name: pokemon_v2_ability - using: - foreign_key_constraint_on: ability_id -select_permissions: -- permission: - allow_aggregations: true - columns: "*" - filter: {} - limit: 100000 - role: anon diff --git a/graphql/metadata/databases/default/tables/tables.yaml b/graphql/metadata/databases/default/tables/tables.yaml index 2e330142..f192a01a 100644 --- a/graphql/metadata/databases/default/tables/tables.yaml +++ b/graphql/metadata/databases/default/tables/tables.yaml @@ -107,7 +107,6 @@ - "!include public_pokemon_v2_pokedexversiongroup.yaml" - "!include public_pokemon_v2_pokemon.yaml" - "!include public_pokemon_v2_pokemonability.yaml" -- "!include public_pokemon_v2_pokemonabilitypast.yaml" - "!include public_pokemon_v2_pokemoncolor.yaml" - "!include public_pokemon_v2_pokemoncolorname.yaml" - "!include public_pokemon_v2_pokemondexnumber.yaml" diff --git a/pokemon_v2/migrations/0013_pokemonabilitypast.py b/pokemon_v2/migrations/0013_pokemonabilitypast.py index f634e7fe..86164b0f 100644 --- a/pokemon_v2/migrations/0013_pokemonabilitypast.py +++ b/pokemon_v2/migrations/0013_pokemonabilitypast.py @@ -1,3 +1,5 @@ +# Generated by Django 2.1.15 on 2023-02-27 15:33 + from django.db import migrations, models import django.db.models.deletion @@ -5,57 +7,22 @@ import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ - ("pokemon_v2", "0012_auto_20220626_1402"), + ('pokemon_v2', '0012_auto_20220626_1402'), ] operations = [ migrations.CreateModel( - name="PokemonAbilityPast", + name='PokemonAbilityPast', fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("is_hidden", models.BooleanField(default=False)), - ("slot", models.IntegerField()), - ( - "generation", - models.ForeignKey( - blank=True, - null=True, - on_delete=django.db.models.deletion.CASCADE, - related_name="pokemonabilitypast", - to="pokemon_v2.Generation", - ), - ), - ( - "ability", - models.ForeignKey( - blank=True, - null=True, - on_delete=django.db.models.deletion.CASCADE, - related_name="pokemonabilitypast", - to="pokemon_v2.Ability", - ), - ), - ( - "pokemon", - models.ForeignKey( - blank=True, - null=True, - on_delete=django.db.models.deletion.CASCADE, - related_name="pokemonabilitypast", - to="pokemon_v2.Pokemon", - ), - ), + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('is_hidden', models.BooleanField(default=False)), + ('slot', models.IntegerField()), + ('ability', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='pokemonabilitypast', to='pokemon_v2.Ability')), + ('generation', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='pokemonabilitypast', to='pokemon_v2.Generation')), + ('pokemon', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='pokemonabilitypast', to='pokemon_v2.Pokemon')), ], options={ - "abstract": False, + 'abstract': False, }, ), ]