-
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 branch 'api_v2_backgrounds' into release/1.4.0
- Loading branch information
Showing
35 changed files
with
7,653 additions
and
103 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,42 @@ | ||
# Generated by Django 3.2.20 on 2023-09-17 10:18 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api_v2', '0008_alter_featbenefit_desc'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='SuggestedCharacteristics', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('personality_trait_table', models.TextField(help_text='Table to roll for personality traits. Markdown.')), | ||
('ideal_table', models.TextField(help_text='Table to roll for ideals. Markdown.')), | ||
('bond_table', models.TextField(help_text='Table to roll for bonds. Markdown.')), | ||
('flaw_table', models.TextField(help_text='Table to roll for flaws. Markdown.')), | ||
], | ||
), | ||
migrations.AlterField( | ||
model_name='featbenefit', | ||
name='desc', | ||
field=models.TextField(help_text='Description of the game content item. Markdown.'), | ||
), | ||
migrations.CreateModel( | ||
name='Background', | ||
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)), | ||
('characteristics', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api_v2.suggestedcharacteristics')), | ||
('document', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api_v2.document')), | ||
], | ||
options={ | ||
'verbose_name_plural': 'backgrounds', | ||
}, | ||
), | ||
] |
17 changes: 17 additions & 0 deletions
17
api_v2/migrations/0010_rename_suggestedcharacteristics_characteristics.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 2023-09-17 10:20 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api_v2', '0009_auto_20230917_1018'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameModel( | ||
old_name='SuggestedCharacteristics', | ||
new_name='Characteristics', | ||
), | ||
] |
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 2023-09-17 10:23 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api_v2', '0010_rename_suggestedcharacteristics_characteristics'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='background', | ||
name='characteristics', | ||
), | ||
migrations.AddField( | ||
model_name='characteristics', | ||
name='background', | ||
field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='api_v2.background'), | ||
preserve_default=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,31 @@ | ||
# Generated by Django 3.2.20 on 2023-09-17 10:30 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api_v2', '0011_auto_20230917_1023'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='characteristics', | ||
name='background', | ||
field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='api_v2.background'), | ||
), | ||
migrations.CreateModel( | ||
name='BackgroundFeature', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(help_text='Name of the item.', max_length=100)), | ||
('desc', models.TextField(help_text='Description of the game content item. Markdown.')), | ||
('background', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='api_v2.background')), | ||
], | ||
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,27 @@ | ||
# Generated by Django 3.2.20 on 2023-09-17 10:47 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api_v2', '0012_auto_20230917_1030'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='BackgroundBenefit', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(help_text='Name of the item.', max_length=100)), | ||
('desc', models.TextField(help_text='Description of the game content item. Markdown.')), | ||
('background', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api_v2.background')), | ||
], | ||
options={ | ||
'ordering': ['pk'], | ||
'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,18 @@ | ||
# Generated by Django 3.2.20 on 2023-10-03 14:17 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api_v2', '0013_backgroundbenefit'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='featbenefit', | ||
name='desc', | ||
field=models.TextField(help_text='Text of the individual feat benefit.'), | ||
), | ||
] |
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,28 @@ | ||
# Generated by Django 3.2.20 on 2023-10-03 20:15 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api_v2', '0014_alter_featbenefit_desc'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='backgroundbenefit', | ||
name='type', | ||
field=models.CharField(blank=True, choices=[('ability_score_increase', 'Ability Score Increase'), ('skill_proficiency', 'Skill Proficiency'), ('tool_proficiency', 'Tool Proficiency'), ('language', 'Language'), ('equipment', 'Equipment'), ('feature', 'Feature'), ('connection', 'Connection'), ('memento', 'Memento')], help_text='Benefit type.', max_length=200, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='featbenefit', | ||
name='type', | ||
field=models.CharField(blank=True, choices=[('ability_score_increase', 'Ability Score Increase'), ('skill_proficiency', 'Skill Proficiency'), ('tool_proficiency', 'Tool Proficiency'), ('language', 'Language'), ('equipment', 'Equipment'), ('feature', 'Feature'), ('connection', 'Connection'), ('memento', 'Memento')], help_text='Benefit type.', max_length=200, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='trait', | ||
name='type', | ||
field=models.CharField(blank=True, choices=[('ability_score_increase', 'Ability Score Increase'), ('skill_proficiency', 'Skill Proficiency'), ('tool_proficiency', 'Tool Proficiency'), ('language', 'Language'), ('equipment', 'Equipment'), ('feature', 'Feature'), ('connection', 'Connection'), ('memento', 'Memento')], help_text='Benefit type.', max_length=200, null=True), | ||
), | ||
] |
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,28 @@ | ||
# Generated by Django 3.2.20 on 2023-10-04 11:02 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api_v2', '0015_auto_20231003_2015'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='characteristics', | ||
name='background', | ||
), | ||
migrations.AlterField( | ||
model_name='featbenefit', | ||
name='desc', | ||
field=models.TextField(help_text='Description of the game content item. Markdown.'), | ||
), | ||
migrations.DeleteModel( | ||
name='BackgroundFeature', | ||
), | ||
migrations.DeleteModel( | ||
name='Characteristics', | ||
), | ||
] |
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,28 @@ | ||
# Generated by Django 3.2.20 on 2023-10-06 19:53 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api_v2', '0016_auto_20231004_1102'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='backgroundbenefit', | ||
name='type', | ||
field=models.CharField(blank=True, choices=[('ability_score_increase', 'Ability Score Increase'), ('skill_proficiency', 'Skill Proficiency'), ('tool_proficiency', 'Tool Proficiency'), ('language', 'Language'), ('equipment', 'Equipment'), ('feature', 'Feature'), ('suggested_characteristics', 'Suggested Characteristics'), ('adventures_and_advancement', 'Adventures and Advancement'), ('connection_and_memento', 'Connection and Memento')], help_text='Benefit type.', max_length=200, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='featbenefit', | ||
name='type', | ||
field=models.CharField(blank=True, choices=[('ability_score_increase', 'Ability Score Increase'), ('skill_proficiency', 'Skill Proficiency'), ('tool_proficiency', 'Tool Proficiency'), ('language', 'Language'), ('equipment', 'Equipment'), ('feature', 'Feature'), ('suggested_characteristics', 'Suggested Characteristics'), ('adventures_and_advancement', 'Adventures and Advancement'), ('connection_and_memento', 'Connection and Memento')], help_text='Benefit type.', max_length=200, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='trait', | ||
name='type', | ||
field=models.CharField(blank=True, choices=[('ability_score_increase', 'Ability Score Increase'), ('skill_proficiency', 'Skill Proficiency'), ('tool_proficiency', 'Tool Proficiency'), ('language', 'Language'), ('equipment', 'Equipment'), ('feature', 'Feature'), ('suggested_characteristics', 'Suggested Characteristics'), ('adventures_and_advancement', 'Adventures and Advancement'), ('connection_and_memento', 'Connection and Memento')], help_text='Benefit type.', max_length=200, null=True), | ||
), | ||
] |
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
Oops, something went wrong.