summaryrefslogtreecommitdiff
path: root/app/unused_apps/src/migrations
diff options
context:
space:
mode:
Diffstat (limited to 'app/unused_apps/src/migrations')
-rw-r--r--app/unused_apps/src/migrations/0001_initial.py76
-rw-r--r--app/unused_apps/src/migrations/0002_auto_20160329_2107.py19
-rw-r--r--app/unused_apps/src/migrations/0003_auto_20180707_0958.py17
-rw-r--r--app/unused_apps/src/migrations/0004_auto_20191007_0905.py17
-rw-r--r--app/unused_apps/src/migrations/__init__.py0
5 files changed, 129 insertions, 0 deletions
diff --git a/app/unused_apps/src/migrations/0001_initial.py b/app/unused_apps/src/migrations/0001_initial.py
new file mode 100644
index 0000000..1f672ee
--- /dev/null
+++ b/app/unused_apps/src/migrations/0001_initial.py
@@ -0,0 +1,76 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.9 on 2016-03-29 21:06
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+import src.models
+
+
+class Migration(migrations.Migration):
+
+ initial = True
+
+ dependencies = [
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='Book',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('title', models.CharField(max_length=200)),
+ ('image', models.FileField(blank=True, null=True, upload_to=src.models.get_upload_path)),
+ ('slug', models.SlugField(unique_for_date='pub_date')),
+ ('body_html', models.TextField(blank=True)),
+ ('body_markdown', models.TextField()),
+ ('pub_date', models.DateTimeField(verbose_name='Date published')),
+ ('last_updated', models.DateTimeField(auto_now=True)),
+ ('status', models.IntegerField(choices=[(0, 'Draft'), (1, 'Published')], default=0)),
+ ('price', models.FloatField()),
+ ('price_sale', models.FloatField()),
+ ('meta_description', models.CharField(blank=True, max_length=256, null=True)),
+ ('pages', models.DecimalField(blank=True, decimal_places=0, max_digits=3, null=True)),
+ ('template_name', models.CharField(choices=[('details/src_book.html', 'Default'), ('details/src_book_2.html', 'Book Two')], default='details/src_book.html', max_length=200)),
+ ],
+ options={
+ 'get_latest_by': 'pub_date',
+ 'ordering': ('-pub_date',),
+ },
+ ),
+ migrations.CreateModel(
+ name='Entry',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('title', models.CharField(max_length=200)),
+ ('slug', models.SlugField(unique_for_date='pub_date')),
+ ('body_html', models.TextField(blank=True)),
+ ('body_markdown', models.TextField()),
+ ('pub_date', models.DateTimeField(verbose_name='Date published')),
+ ('last_updated', models.DateTimeField(auto_now=True)),
+ ('enable_comments', models.BooleanField(default=False)),
+ ('has_code', models.BooleanField(default=False)),
+ ('status', models.IntegerField(choices=[(0, 'Draft'), (1, 'Published')], default=0)),
+ ('meta_description', models.CharField(blank=True, max_length=256, null=True)),
+ ('template_name', models.IntegerField(choices=[(0, 'default')], default=0)),
+ ],
+ options={
+ 'get_latest_by': 'pub_date',
+ 'ordering': ('-pub_date',),
+ 'verbose_name_plural': 'entries',
+ },
+ ),
+ migrations.CreateModel(
+ name='Topic',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('name', models.CharField(max_length=60)),
+ ('slug', models.SlugField()),
+ ('pluralized_name', models.CharField(max_length=60)),
+ ],
+ ),
+ migrations.AddField(
+ model_name='entry',
+ name='topics',
+ field=models.ManyToManyField(blank=True, to='src.Topic'),
+ ),
+ ]
diff --git a/app/unused_apps/src/migrations/0002_auto_20160329_2107.py b/app/unused_apps/src/migrations/0002_auto_20160329_2107.py
new file mode 100644
index 0000000..25f5e4e
--- /dev/null
+++ b/app/unused_apps/src/migrations/0002_auto_20160329_2107.py
@@ -0,0 +1,19 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.9 on 2016-03-29 21:07
+from __future__ import unicode_literals
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('src', '0001_initial'),
+ ]
+
+ operations = [
+ migrations.RenameModel(
+ old_name='Entry',
+ new_name='Post',
+ ),
+ ]
diff --git a/app/unused_apps/src/migrations/0003_auto_20180707_0958.py b/app/unused_apps/src/migrations/0003_auto_20180707_0958.py
new file mode 100644
index 0000000..f619888
--- /dev/null
+++ b/app/unused_apps/src/migrations/0003_auto_20180707_0958.py
@@ -0,0 +1,17 @@
+# Generated by Django 2.0.1 on 2018-07-07 09:58
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('src', '0002_auto_20160329_2107'),
+ ]
+
+ operations = [
+ migrations.AlterModelOptions(
+ name='post',
+ options={'get_latest_by': 'pub_date', 'ordering': ('-pub_date',), 'verbose_name_plural': 'posts'},
+ ),
+ ]
diff --git a/app/unused_apps/src/migrations/0004_auto_20191007_0905.py b/app/unused_apps/src/migrations/0004_auto_20191007_0905.py
new file mode 100644
index 0000000..6c223a0
--- /dev/null
+++ b/app/unused_apps/src/migrations/0004_auto_20191007_0905.py
@@ -0,0 +1,17 @@
+# Generated by Django 2.2.6 on 2019-10-07 09:05
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('src', '0003_auto_20180707_0958'),
+ ]
+
+ operations = [
+ migrations.RenameModel(
+ old_name='Post',
+ new_name='SrcPost',
+ ),
+ ]
diff --git a/app/unused_apps/src/migrations/__init__.py b/app/unused_apps/src/migrations/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/app/unused_apps/src/migrations/__init__.py