mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-22 03:13:06 +00:00
format autogenerated migration
This commit is contained in:
parent
e585bf527d
commit
6787cdd62e
1 changed files with 44 additions and 9 deletions
|
@ -7,22 +7,57 @@ 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()),
|
||||
('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')),
|
||||
(
|
||||
"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