pokeapi/pokemon_v2/migrations/0002_itemsprites_pokemonformsprites_pokemonsprites.py

96 lines
2.8 KiB
Python
Raw Normal View History

2016-03-05 12:14:10 +00:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("pokemon_v2", "0001_squashed_0002_auto_20160301_1408"),
2016-03-05 12:14:10 +00:00
]
operations = [
migrations.CreateModel(
name="ItemSprites",
2016-03-05 12:14:10 +00:00
fields=[
(
"id",
models.AutoField(
verbose_name="ID",
serialize=False,
auto_created=True,
primary_key=True,
),
),
("sprites", models.CharField(max_length=500)),
(
"item",
models.ForeignKey(
on_delete=models.CASCADE,
related_name="itemsprites",
blank=True,
to="pokemon_v2.Item",
null=True,
),
),
2016-03-05 12:14:10 +00:00
],
2020-11-23 21:05:49 +00:00
options={
"abstract": False,
},
2016-03-05 12:14:10 +00:00
),
migrations.CreateModel(
name="PokemonFormSprites",
2016-03-05 12:14:10 +00:00
fields=[
(
"id",
models.AutoField(
verbose_name="ID",
serialize=False,
auto_created=True,
primary_key=True,
),
),
("sprites", models.CharField(max_length=500)),
(
"pokemon_form",
models.ForeignKey(
on_delete=models.CASCADE,
related_name="pokemonformsprites",
blank=True,
to="pokemon_v2.PokemonForm",
null=True,
),
),
2016-03-05 12:14:10 +00:00
],
2020-11-23 21:05:49 +00:00
options={
"abstract": False,
},
2016-03-05 12:14:10 +00:00
),
migrations.CreateModel(
name="PokemonSprites",
2016-03-05 12:14:10 +00:00
fields=[
(
"id",
models.AutoField(
verbose_name="ID",
serialize=False,
auto_created=True,
primary_key=True,
),
),
("sprites", models.CharField(max_length=500)),
(
"pokemon",
models.ForeignKey(
on_delete=models.CASCADE,
related_name="pokemonsprites",
blank=True,
to="pokemon_v2.Pokemon",
null=True,
),
),
2016-03-05 12:14:10 +00:00
],
2020-11-23 21:05:49 +00:00
options={
"abstract": False,
},
2016-03-05 12:14:10 +00:00
),
]