diff options
author | lxf <sng@luxagraf.net> | 2022-02-06 13:26:32 -0500 |
---|---|---|
committer | lxf <sng@luxagraf.net> | 2022-02-06 13:26:32 -0500 |
commit | 13c0f7653855b4feb433eeeea513f41693cdb2af (patch) | |
tree | 06194ac19bae42acbc4d771ad64ed82403bca1ea /app/planner/migrations | |
parent | 342a95c15aa3f94b6bb689c2bd7c7151db217691 (diff) |
plan: added a new model to track places we might want to go.
Diffstat (limited to 'app/planner/migrations')
-rw-r--r-- | app/planner/migrations/0005_auto_20220206_1109.py | 40 | ||||
-rw-r--r-- | app/planner/migrations/0006_campidea_state.py | 19 |
2 files changed, 59 insertions, 0 deletions
diff --git a/app/planner/migrations/0005_auto_20220206_1109.py b/app/planner/migrations/0005_auto_20220206_1109.py new file mode 100644 index 0000000..dee19bf --- /dev/null +++ b/app/planner/migrations/0005_auto_20220206_1109.py @@ -0,0 +1,40 @@ +# Generated by Django 3.2.7 on 2022-02-06 11:09 + +import django.contrib.gis.db.models.fields +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('planner', '0004_auto_20210815_1856'), + ] + + operations = [ + migrations.CreateModel( + name='CampIdea', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name', models.CharField(max_length=200)), + ('slug', models.SlugField(blank=True, null=True)), + ('point', django.contrib.gis.db.models.fields.PointField(blank=True, null=True, srid=4326)), + ('notes', models.TextField(blank=True, null=True)), + ('notes_html', models.TextField(blank=True, null=True)), + ('date_added', models.DateField(auto_now_add=True)), + ], + options={ + 'ordering': ('date_added',), + 'get_latest_by': 'date_added', + }, + ), + migrations.AlterField( + model_name='camp', + name='slug', + field=models.SlugField(blank=True, null=True), + ), + migrations.AlterField( + model_name='trip', + name='slug', + field=models.SlugField(unique_for_date='date'), + ), + ] diff --git a/app/planner/migrations/0006_campidea_state.py b/app/planner/migrations/0006_campidea_state.py new file mode 100644 index 0000000..f0dbdea --- /dev/null +++ b/app/planner/migrations/0006_campidea_state.py @@ -0,0 +1,19 @@ +# Generated by Django 3.2.7 on 2022-02-06 12:36 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('planner', '0005_auto_20220206_1109'), + ] + + operations = [ + migrations.AddField( + model_name='campidea', + name='state', + field=models.CharField(default='none', max_length=40), + preserve_default=False, + ), + ] |