Remove manual graphql updates

- Remove manual graphql updates
- autogen abilitypast migration
This commit is contained in:
Ryan Voice 2023-02-27 08:02:55 -08:00
parent 13bfc699ce
commit 3d0c4b1953
5 changed files with 11 additions and 79 deletions

View file

@ -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

View file

@ -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:

View file

@ -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

View file

@ -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"

View file

@ -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,
},
),
]