pokeapi/pokemon_v2/migrations/0013_pokemonabilitypast.py

63 lines
2 KiB
Python
Raw Normal View History

# Generated by Django 2.1.15 on 2023-02-27 15:33
2023-02-16 23:18:04 +00:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
2023-02-27 16:10:09 +00:00
("pokemon_v2", "0012_auto_20220626_1402"),
2023-02-16 23:18:04 +00:00
]
operations = [
migrations.CreateModel(
2023-02-27 16:10:09 +00:00
name="PokemonAbilityPast",
2023-02-16 23:18:04 +00:00
fields=[
2023-02-27 16:10:09 +00:00
(
"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",
),
),
2023-02-16 23:18:04 +00:00
],
options={
2023-02-27 16:10:09 +00:00
"abstract": False,
2023-02-16 23:18:04 +00:00
},
),
]