mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-12 23:07:17 +00:00
Remove manual graphql updates
- Remove manual graphql updates - autogen abilitypast migration
This commit is contained in:
parent
13bfc699ce
commit
3d0c4b1953
5 changed files with 11 additions and 79 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
|
@ -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"
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
),
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue