summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2023-07-26 16:55:24 -0500
committerluxagraf <sng@luxagraf.net>2023-07-26 16:55:24 -0500
commit65b1bb075774478bc717de81f0737f96cf32e497 (patch)
treef9d24eb2165f97c93e7dcd511c4d37ab3af9312c /app
parent8e429c6b453e1061ee997934f241f76f2f103710 (diff)
posts: added migrations
Diffstat (limited to 'app')
-rw-r--r--app/notes/migrations/0002_alter_note_options_note_plan_alter_note_post.py29
-rw-r--r--app/posts/migrations/0015_delete_note.py16
2 files changed, 45 insertions, 0 deletions
diff --git a/app/notes/migrations/0002_alter_note_options_note_plan_alter_note_post.py b/app/notes/migrations/0002_alter_note_options_note_plan_alter_note_post.py
new file mode 100644
index 0000000..13d9009
--- /dev/null
+++ b/app/notes/migrations/0002_alter_note_options_note_plan_alter_note_post.py
@@ -0,0 +1,29 @@
+# Generated by Django 4.2.2 on 2023-07-26 21:48
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('posts', '0015_delete_note'),
+ ('notes', '0001_initial'),
+ ]
+
+ operations = [
+ migrations.AlterModelOptions(
+ name='note',
+ options={'ordering': ('date_created', 'status')},
+ ),
+ migrations.AddField(
+ model_name='note',
+ name='plan',
+ field=models.IntegerField(choices=[(0, 'For Guide'), (1, 'Review'), (2, 'Rave'), (3, 'Rant')], default=0),
+ ),
+ migrations.AlterField(
+ model_name='note',
+ name='post',
+ field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='posts.post'),
+ ),
+ ]
diff --git a/app/posts/migrations/0015_delete_note.py b/app/posts/migrations/0015_delete_note.py
new file mode 100644
index 0000000..bf6346e
--- /dev/null
+++ b/app/posts/migrations/0015_delete_note.py
@@ -0,0 +1,16 @@
+# Generated by Django 4.2.2 on 2023-07-26 21:48
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('posts', '0014_alter_note_post_alter_note_user'),
+ ]
+
+ operations = [
+ migrations.DeleteModel(
+ name='Note',
+ ),
+ ]