-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #425 from open5e/v2_expose_enums
V2 expose enums
- Loading branch information
Showing
61 changed files
with
7,908 additions
and
7,184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Generated by Django 3.2.20 on 2024-03-14 18:02 | ||
|
||
import django.core.validators | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api_v2', '0052_merge_0033_auto_20240123_0222_0051_auto_20240301_2014'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='SpellSchool', | ||
fields=[ | ||
('name', models.CharField(help_text='Name of the item.', max_length=100)), | ||
('desc', models.TextField(help_text='Description of the game content item. Markdown.')), | ||
('key', models.CharField(help_text='Unique key for the Item.', max_length=100, primary_key=True, serialize=False)), | ||
('document', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api_v2.document')), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='Size', | ||
fields=[ | ||
('name', models.CharField(help_text='Name of the item.', max_length=100)), | ||
('key', models.CharField(help_text='Unique key for the Item.', max_length=100, primary_key=True, serialize=False)), | ||
('rank', models.IntegerField(help_text='Ranking of the size, smallest has the lowest values.', unique=True)), | ||
('space_diameter', models.DecimalField(decimal_places=3, default=0, help_text='Number representing the diameter of the space controlled by the object.', max_digits=10, validators=[django.core.validators.MinValueValidator(0)])), | ||
('document', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api_v2.document')), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='ItemRarity', | ||
fields=[ | ||
('name', models.CharField(help_text='Name of the item.', max_length=100)), | ||
('key', models.CharField(help_text='Unique key for the Item.', max_length=100, primary_key=True, serialize=False)), | ||
('rank', models.IntegerField(help_text='Ranking of the rarity, most common has the lowest values.', unique=True)), | ||
('document', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api_v2.document')), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generated by Django 3.2.20 on 2024-03-14 19:11 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api_v2', '0053_itemrarity_size_spellschool'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name='creature', | ||
old_name='size', | ||
new_name='size_integer', | ||
), | ||
migrations.RenameField( | ||
model_name='item', | ||
old_name='size', | ||
new_name='size_integer', | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Generated by Django 3.2.20 on 2024-03-14 19:21 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api_v2', '0054_auto_20240314_1911'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='creature', | ||
name='size', | ||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='api_v2.size'), | ||
), | ||
migrations.AddField( | ||
model_name='item', | ||
name='size', | ||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='api_v2.size'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Generated by Django 3.2.20 on 2024-03-14 19:40 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api_v2', '0055_auto_20240314_1921'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='creature', | ||
name='size_integer', | ||
), | ||
migrations.RemoveField( | ||
model_name='item', | ||
name='size_integer', | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Generated by Django 3.2.20 on 2024-03-14 19:43 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api_v2', '0056_auto_20240314_1940'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='creature', | ||
name='size', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api_v2.size'), | ||
), | ||
migrations.AlterField( | ||
model_name='item', | ||
name='size', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api_v2.size'), | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
api_v2/migrations/0058_rename_rarity_item_rarity_integer.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 3.2.20 on 2024-03-14 20:00 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api_v2', '0057_auto_20240314_1943'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name='item', | ||
old_name='rarity', | ||
new_name='rarity_integer', | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Generated by Django 3.2.20 on 2024-03-14 20:02 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api_v2', '0058_rename_rarity_item_rarity_integer'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='item', | ||
name='rarity', | ||
field=models.ForeignKey(help_text='Rarity object.', null=True, on_delete=django.db.models.deletion.CASCADE, to='api_v2.itemrarity'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 3.2.20 on 2024-03-14 20:08 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api_v2', '0059_item_rarity'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='item', | ||
name='rarity_integer', | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
api_v2/migrations/0061_rename_damage_type_creatureattack_damage_type_old.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 3.2.20 on 2024-03-15 12:17 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api_v2', '0060_remove_item_rarity_integer'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name='creatureattack', | ||
old_name='damage_type', | ||
new_name='damage_type_OLD', | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Generated by Django 3.2.20 on 2024-03-15 12:18 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api_v2', '0061_rename_damage_type_creatureattack_damage_type_old'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='creatureattack', | ||
name='damage_type', | ||
field=models.ForeignKey(help_text='What kind of damage this attack deals', null=True, on_delete=django.db.models.deletion.CASCADE, to='api_v2.damagetype'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Generated by Django 3.2.20 on 2024-03-15 12:28 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api_v2', '0062_creatureattack_damage_type'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name='creatureattack', | ||
old_name='damage_type_OLD', | ||
new_name='extra_damage_type_OLD', | ||
), | ||
migrations.RemoveField( | ||
model_name='creatureattack', | ||
name='extra_damage_type', | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Generated by Django 3.2.20 on 2024-03-15 12:31 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api_v2', '0063_auto_20240315_1228'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='creatureattack', | ||
name='extra_damage_type', | ||
field=models.ForeignKey(help_text='What kind of extra damage this attack deals', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='+', to='api_v2.damagetype'), | ||
), | ||
migrations.AlterField( | ||
model_name='creatureattack', | ||
name='damage_type', | ||
field=models.ForeignKey(help_text='What kind of damage this attack deals', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='+', to='api_v2.damagetype'), | ||
), | ||
] |
17 changes: 17 additions & 0 deletions
17
api_v2/migrations/0065_remove_creatureattack_extra_damage_type_old.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 3.2.20 on 2024-03-15 12:34 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api_v2', '0064_auto_20240315_1231'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='creatureattack', | ||
name='extra_damage_type_OLD', | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
api_v2/migrations/0066_rename_damage_type_weapon_damage_type_old.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 3.2.20 on 2024-03-15 12:41 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api_v2', '0065_remove_creatureattack_extra_damage_type_old'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name='weapon', | ||
old_name='damage_type', | ||
new_name='damage_type_old', | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Generated by Django 3.2.20 on 2024-03-15 12:42 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api_v2', '0066_rename_damage_type_weapon_damage_type_old'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='weapon', | ||
name='damage_type', | ||
field=models.ForeignKey(help_text='What kind of damage this weapon deals', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='+', to='api_v2.damagetype'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 3.2.20 on 2024-03-15 12:45 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api_v2', '0067_weapon_damage_type'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='weapon', | ||
name='damage_type_old', | ||
), | ||
] |
Oops, something went wrong.