Commit graph

93 commits

Author SHA1 Message Date
Naramsim
b348e60d2c refactor: merge migrations 2023-11-30 04:09:39 +01:00
Simón Oroño
76f7a340e6 Use JSONField instead of CharField for sprites
The models affected were PokemonFormSprites and ItemSprites. This was
done to ensure they are properly returned when querying those tables
with Hasura.
2023-11-26 11:57:16 -04:00
Simón Oroño
db33cfc1a4 Format missing files 2023-11-26 11:57:16 -04:00
Simón Oroño
d1e2d9c5b4 Use new JSON field in Django instead of Postgres custom one 2023-11-26 11:57:16 -04:00
Simón Oroño
30e8a01253 Format migration 0014_auto_20231119_0303.py 2023-11-26 11:57:16 -04:00
Simón Oroño
218864dfbc Make the type of the sprites column in pokemon_v2_pokemonsprites jsonb
This is so Hasura automatically transforms the field into an array
instead of a JSON encoded in a string.

Migration was generated by the `makemigrations` command.
2023-11-26 11:57:16 -04:00
Naramsim
5237c4ccc9 refactor: format with new black 2023-11-08 10:44:55 +01:00
Ryan Voice
6787cdd62e format autogenerated migration 2023-02-27 08:10:09 -08:00
Ryan Voice
3d0c4b1953 Remove manual graphql updates
- Remove manual graphql updates
- autogen abilitypast migration
2023-02-27 08:02:55 -08:00
Ryan Voice
7af0acf677 fix formatting 2023-02-16 15:53:48 -08:00
Ryan Voice
fb893e4177 Add previous ability data structure 2023-02-16 15:18:04 -08:00
Aniket Chakraborty
c7dd432bbf Linting changes on auto-generated files
Signed-off-by: Aniket Chakraborty <aniket2583@gmail.com>
2022-06-26 19:20:07 +05:30
Aniket Chakraborty
28354a973c Updated Sprite URL
Previously the sprite endpoint returned the relative path of
the image with a /media/ prefix which was not useful for API consumer.
Now it returns a URL pointing to the image present in github.com/PokeApi/Sprites.

Signed-off-by: Aniket Chakraborty <aniket2583@gmail.com>
2022-06-26 19:01:55 +05:30
Julian Lawrance
206af8a6fd Remove order column from Generation model and use ID column instead 2021-07-19 19:00:40 +01:00
Julian Lawrance
0d9bc4f2b9 Run formatter 2021-07-16 22:32:06 +01:00
Julian Lawrance
1173b43ad1 Add order field to Generation model 2021-07-16 22:29:55 +01:00
Julian Lawrance
2445fc4792 Regenerate DB migration for past type efficacies 2021-02-24 15:37:00 +00:00
Julian Lawrance
44f14a0118 Merge remote-tracking branch 'upstream/master' into feature/past-type-efficacy 2021-02-24 13:41:20 +00:00
Julian Lawrance
49072e9c45 Format source code 2021-02-19 14:25:39 +00:00
Julian Lawrance
d48e51686c Recreate Pokemon form type DB migration 2021-02-19 14:24:33 +00:00
Julian Lawrance
bbc8cbdf2b Merge remote-tracking branch 'origin' into feature/pokemon-form-types 2021-02-18 20:36:13 +00:00
Julian Lawrance
10fec5ad1c Recreate past type efficacy data migration 2021-02-13 22:33:39 +00:00
Julian Lawrance
0aeb047677 Merge branch 'master' into feature/past-type-efficacy 2021-02-13 22:22:41 +00:00
Julian Lawrance
39856de97b Format source code again 2021-02-06 22:15:12 +00:00
Julian Lawrance
c513fa5b56 Recreate past types migration again 2021-02-06 22:03:47 +00:00
Julian Lawrance
91f39138bd Format source code 2021-02-06 22:02:36 +00:00
Julian L
c273a42f98
Merge branch 'master' into past-pokemon-types 2021-02-06 21:56:50 +00:00
Julian Lawrance
76ba2ae00e Format source code 2021-02-06 21:52:36 +00:00
Julian Lawrance
a988e6d936 Regenerate Pokemon past types migration 2021-02-06 21:32:13 +00:00
Julian Lawrance
6ce7ca413d Merge branch 'master' into past-pokemon-types 2021-02-06 21:29:40 +00:00
Alessandro Pezzè
464aeea4af fix: run black 2020-11-23 22:05:49 +01:00
Alessandro Pezzè
71d75c3540 feat: extend pokemon_name to 60 char 2020-11-23 21:57:30 +01:00
Alessandro Pezzè
a131421889
Update and rename 0006_auto_20200815_0610.py to 0007_auto_20200815_0610.py 2020-08-15 21:43:23 +02:00
Alessandro Pezzè
b2c381a89e
Merge branch 'master' into master 2020-08-15 21:32:56 +02:00
Raghav Nair
25e026cc6a Removing ultrabeast column and only updating is_legendary and is_mythical 2020-08-14 22:14:09 -07:00
Alessandro Pezzè
8c10abd909 refactor: merge migrations
:
2020-08-11 19:33:12 +02:00
Raghav Nair
d13b2f3b7d Formatting 2020-08-09 16:15:21 -07:00
Raghav Nair
60b3e6aa4d Adding migrations 2020-08-09 12:43:06 -07:00
Alessandro Pezzè
7ceba2f1b1 refactor: apply black 2020-08-01 12:24:38 +02:00
Alessandro Pezzè
047575ff41 play: add some pokemon 2020-08-01 12:00:09 +02:00
Alessandro Pezzè
47044317e4 add migration 2020-07-25 22:14:00 +02:00
Christian Garza
f44da153fb Fix linting errors 2020-07-10 02:59:05 -07:00
Christian Garza
20c5d31be4 Increase max length for PokemonSprites 2020-07-09 23:25:48 -07:00
Julian Lawrance
98d67b19ed Create model, serialiser and migration for Pokemon form types 2020-04-25 14:10:50 +01:00
Paul Hallett
867fd9c23a blacked 2020-02-24 13:18:14 +13:00
Paul Hallett
d5d55dad7f Autoformat entire project, tidy up makefile 2020-02-24 13:18:14 +13:00
Alessandro Pezzè
c7e10bd044 feat: address new max length for iso639 2020-02-23 23:58:13 +01:00
Julian Lawrance
044fcde8ee Create DB model and migration for past type efficacy 2019-12-01 12:38:51 +00:00
Julian Lawrance
1d9e41d100 Create DB model and migration for past Pokemon types 2019-11-30 20:49:39 +00:00
Charles Marttinen
8832c819e3 chore: Remove python2 compatibility code 2018-10-20 11:35:11 -04:00