summaryrefslogtreecommitdiff
path: root/journal/api/migrations
diff options
context:
space:
mode:
authorMark Powers <mark@marks.kitchen>2024-07-14 15:30:27 -0500
committerMark Powers <mark@marks.kitchen>2024-07-14 15:30:27 -0500
commitad232020d57d2c77dfd5400dc4a8290b484c8ba2 (patch)
tree3e2121666986c67fe554a1e9046682b7370d412e /journal/api/migrations
Initial commitmain
Diffstat (limited to 'journal/api/migrations')
-rw-r--r--journal/api/migrations/0001_initial.py39
-rw-r--r--journal/api/migrations/0002_source_title_alter_entry_created.py24
-rw-r--r--journal/api/migrations/__init__.py0
3 files changed, 63 insertions, 0 deletions
diff --git a/journal/api/migrations/0001_initial.py b/journal/api/migrations/0001_initial.py
new file mode 100644
index 0000000..ad1f787
--- /dev/null
+++ b/journal/api/migrations/0001_initial.py
@@ -0,0 +1,39 @@
+# Generated by Django 5.0.4 on 2024-04-30 02:08
+
+import django.db.models.deletion
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ initial = True
+
+ dependencies = [
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='Author',
+ fields=[
+ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('author', models.CharField(max_length=1024)),
+ ],
+ ),
+ migrations.CreateModel(
+ name='Source',
+ fields=[
+ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('url', models.CharField(max_length=1024)),
+ ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='journal_api.author')),
+ ],
+ ),
+ migrations.CreateModel(
+ name='Entry',
+ fields=[
+ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('created', models.DateTimeField()),
+ ('html_text', models.TextField()),
+ ('source', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='entries', to='journal_api.source')),
+ ],
+ ),
+ ]
diff --git a/journal/api/migrations/0002_source_title_alter_entry_created.py b/journal/api/migrations/0002_source_title_alter_entry_created.py
new file mode 100644
index 0000000..26ae3b1
--- /dev/null
+++ b/journal/api/migrations/0002_source_title_alter_entry_created.py
@@ -0,0 +1,24 @@
+# Generated by Django 5.0.4 on 2024-04-30 02:13
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('journal_api', '0001_initial'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='source',
+ name='title',
+ field=models.CharField(default='', max_length=1024),
+ preserve_default=False,
+ ),
+ migrations.AlterField(
+ model_name='entry',
+ name='created',
+ field=models.DateField(),
+ ),
+ ]
diff --git a/journal/api/migrations/__init__.py b/journal/api/migrations/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/journal/api/migrations/__init__.py