diff options
Diffstat (limited to 'app/gtd/migrations')
9 files changed, 245 insertions, 0 deletions
diff --git a/app/gtd/migrations/0001_initial.py b/app/gtd/migrations/0001_initial.py new file mode 100644 index 0000000..9df3dc9 --- /dev/null +++ b/app/gtd/migrations/0001_initial.py @@ -0,0 +1,71 @@ +# Generated by Django 4.2.7 on 2023-11-14 09:18 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ('media', '0008_auto_20201202_1155'), + ] + + operations = [ + migrations.CreateModel( + name='GTDOutcome', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('title', models.CharField(max_length=300)), + ('slug', models.SlugField()), + ('body_markdown', models.TextField()), + ('body_html', models.TextField(blank=True)), + ('date_goal', models.DateField()), + ('date_ended', models.DateField()), + ('featured_image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='media.luximage')), + ], + options={ + 'ordering': ('-date_goal',), + }, + ), + migrations.CreateModel( + name='GTDProject', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('title', models.CharField(max_length=200)), + ('short_title', models.CharField(blank=True, max_length=200, null=True)), + ('slug', models.SlugField()), + ('body_markdown', models.TextField(blank=True, null=True)), + ('body_html', models.TextField(blank=True)), + ('date_goal', models.DateField(blank=True, null=True)), + ('date_ended', models.DateField(blank=True, null=True)), + ('project_type', models.IntegerField(choices=[(0, 'wired'), (1, 'lbh'), (2, 'personal')], default=0)), + ('outcome', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='gtd.gtdoutcome')), + ], + options={ + 'ordering': ('-date_goal',), + 'get_latest_by': 'date_goal', + }, + ), + migrations.CreateModel( + name='GTDNote', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('title', models.CharField(max_length=200)), + ('slug', models.SlugField()), + ('body_markdown', models.TextField()), + ('body_html', models.TextField(blank=True)), + ('date_completed', models.DateField()), + ('date_created', models.DateTimeField(auto_now=True)), + ('note_type', models.IntegerField(choices=[(0, 'action'), (1, 'reminder'), (2, 'reference')], default=0)), + ('reminder', models.BigIntegerField(help_text='In days')), + ('status', models.IntegerField(choices=[(0, 'None'), (1, 'Open'), (2, 'Completed')], default=0)), + ('project', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='gtd.gtdproject')), + ], + options={ + 'ordering': ('-date_created',), + 'get_latest_by': 'date_created', + }, + ), + ] diff --git a/app/gtd/migrations/0002_alter_gtdnote_reminder.py b/app/gtd/migrations/0002_alter_gtdnote_reminder.py new file mode 100644 index 0000000..c626625 --- /dev/null +++ b/app/gtd/migrations/0002_alter_gtdnote_reminder.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.7 on 2023-11-14 09:58 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('gtd', '0001_initial'), + ] + + operations = [ + migrations.AlterField( + model_name='gtdnote', + name='reminder', + field=models.BigIntegerField(blank=True, help_text='In days', null=True), + ), + ] diff --git a/app/gtd/migrations/0003_alter_gtdnote_date_completed.py b/app/gtd/migrations/0003_alter_gtdnote_date_completed.py new file mode 100644 index 0000000..67eeffd --- /dev/null +++ b/app/gtd/migrations/0003_alter_gtdnote_date_completed.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.7 on 2023-11-14 09:58 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('gtd', '0002_alter_gtdnote_reminder'), + ] + + operations = [ + migrations.AlterField( + model_name='gtdnote', + name='date_completed', + field=models.DateField(blank=True, null=True), + ), + ] diff --git a/app/gtd/migrations/0004_remove_gtdnote_slug_remove_gtdoutcome_slug_and_more.py b/app/gtd/migrations/0004_remove_gtdnote_slug_remove_gtdoutcome_slug_and_more.py new file mode 100644 index 0000000..e706ab8 --- /dev/null +++ b/app/gtd/migrations/0004_remove_gtdnote_slug_remove_gtdoutcome_slug_and_more.py @@ -0,0 +1,30 @@ +# Generated by Django 4.2.7 on 2023-11-14 14:03 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('gtd', '0003_alter_gtdnote_date_completed'), + ] + + operations = [ + migrations.RemoveField( + model_name='gtdnote', + name='slug', + ), + migrations.RemoveField( + model_name='gtdoutcome', + name='slug', + ), + migrations.RemoveField( + model_name='gtdproject', + name='slug', + ), + migrations.AlterField( + model_name='gtdproject', + name='project_type', + field=models.IntegerField(choices=[(0, 'Wired'), (1, 'LBH'), (2, 'Personal')], default=0), + ), + ] diff --git a/app/gtd/migrations/0005_wiredpost.py b/app/gtd/migrations/0005_wiredpost.py new file mode 100644 index 0000000..ec97830 --- /dev/null +++ b/app/gtd/migrations/0005_wiredpost.py @@ -0,0 +1,35 @@ +# Generated by Django 4.2.7 on 2023-11-15 13:45 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('gtd', '0004_remove_gtdnote_slug_remove_gtdoutcome_slug_and_more'), + ] + + operations = [ + migrations.CreateModel( + name='WiredPost', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('title', models.CharField(blank=True, max_length=512, null=True)), + ('body', models.TextField(blank=True, null=True)), + ('url', models.CharField(blank=True, max_length=512, null=True)), + ('edit_url', models.CharField(blank=True, max_length=512, null=True)), + ('date_last_pub', models.DateField()), + ('guid', models.CharField(blank=True, db_index=True, max_length=512, null=True)), + ('author', models.CharField(blank=True, max_length=255, null=True)), + ('post_type', models.IntegerField(choices=[(0, 'review'), (1, 'guide'), (2, 'how-to')], default=1)), + ('template_type', models.IntegerField(choices=[(0, 'story'), (1, 'gallery')], default=0)), + ('update_frequency', models.BigIntegerField(help_text='In days')), + ('needs_update', models.BooleanField(default=False)), + ('is_live', models.BooleanField(default=True)), + ('post_status', models.IntegerField(choices=[(0, 'Assigned'), (1, 'turned in'), (2, 'published')], default=2)), + ], + options={ + 'ordering': ('date_last_pub',), + }, + ), + ] diff --git a/app/gtd/migrations/0006_remove_gtdoutcome_featured_image_wirednote.py b/app/gtd/migrations/0006_remove_gtdoutcome_featured_image_wirednote.py new file mode 100644 index 0000000..a301f26 --- /dev/null +++ b/app/gtd/migrations/0006_remove_gtdoutcome_featured_image_wirednote.py @@ -0,0 +1,35 @@ +# Generated by Django 4.2.7 on 2023-11-15 13:54 + +from django.db import migrations, models +import django.db.models.deletion +import django.utils.timezone + + +class Migration(migrations.Migration): + + dependencies = [ + ('gtd', '0005_wiredpost'), + ] + + operations = [ + migrations.RemoveField( + model_name='gtdoutcome', + name='featured_image', + ), + migrations.CreateModel( + name='WiredNote', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('title', models.CharField(max_length=400)), + ('url', models.CharField(blank=True, max_length=400, null=True)), + ('body_markdown', models.TextField(blank=True, null=True)), + ('date_created', models.DateTimeField(default=django.utils.timezone.now)), + ('status', models.IntegerField(choices=[(0, 'Call In'), (1, 'Asked For'), (2, 'Coming'), (3, 'Testing'), (4, 'Done'), (5, 'Live')], default=0)), + ('plan', models.IntegerField(choices=[(0, 'For Guide'), (1, 'Review'), (2, 'Rave/Rant'), (3, 'No Plan')], default=0)), + ('post', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='gtd.wiredpost')), + ], + options={ + 'ordering': ('date_created', 'status'), + }, + ), + ] diff --git a/app/gtd/migrations/0007_alter_wiredpost_date_last_pub.py b/app/gtd/migrations/0007_alter_wiredpost_date_last_pub.py new file mode 100644 index 0000000..b2f113c --- /dev/null +++ b/app/gtd/migrations/0007_alter_wiredpost_date_last_pub.py @@ -0,0 +1,19 @@ +# Generated by Django 4.2.7 on 2023-11-15 15:01 + +import datetime +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('gtd', '0006_remove_gtdoutcome_featured_image_wirednote'), + ] + + operations = [ + migrations.AlterField( + model_name='wiredpost', + name='date_last_pub', + field=models.DateField(default=datetime.datetime.now), + ), + ] diff --git a/app/gtd/migrations/0008_alter_wiredpost_date_last_pub.py b/app/gtd/migrations/0008_alter_wiredpost_date_last_pub.py new file mode 100644 index 0000000..a76d230 --- /dev/null +++ b/app/gtd/migrations/0008_alter_wiredpost_date_last_pub.py @@ -0,0 +1,19 @@ +# Generated by Django 4.2.7 on 2023-11-15 15:02 + +import datetime +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('gtd', '0007_alter_wiredpost_date_last_pub'), + ] + + operations = [ + migrations.AlterField( + model_name='wiredpost', + name='date_last_pub', + field=models.DateField(default=datetime.datetime(2023, 11, 15, 15, 2, 22, 531344)), + ), + ] diff --git a/app/gtd/migrations/__init__.py b/app/gtd/migrations/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/app/gtd/migrations/__init__.py |