summaryrefslogtreecommitdiff
path: root/app/notes/migrations
diff options
context:
space:
mode:
Diffstat (limited to 'app/notes/migrations')
-rw-r--r--app/notes/migrations/0001_initial.py45
-rw-r--r--app/notes/migrations/0002_auto_20160208_1107.py20
-rw-r--r--app/notes/migrations/0003_auto_20160208_1120.py33
-rw-r--r--app/notes/migrations/0004_auto_20160616_1444.py27
-rw-r--r--app/notes/migrations/0005_auto_20160616_1445.py20
-rw-r--r--app/notes/migrations/0006_auto_20160617_2058.py24
-rw-r--r--app/notes/migrations/0007_auto_20160617_2143.py20
-rw-r--r--app/notes/migrations/0008_remove_luxnote_date_last_updated.py19
8 files changed, 4 insertions, 204 deletions
diff --git a/app/notes/migrations/0001_initial.py b/app/notes/migrations/0001_initial.py
index 598b81b..ea67ad1 100644
--- a/app/notes/migrations/0001_initial.py
+++ b/app/notes/migrations/0001_initial.py
@@ -1,10 +1,7 @@
-# -*- coding: utf-8 -*-
-# Generated by Django 1.9 on 2016-02-08 10:57
-from __future__ import unicode_literals
+# Generated by Django 2.0.1 on 2018-05-09 09:35
-import django.contrib.gis.db.models.fields
from django.db import migrations, models
-import django.db.models.deletion
+import django.utils.timezone
class Migration(migrations.Migration):
@@ -12,52 +9,18 @@ class Migration(migrations.Migration):
initial = True
dependencies = [
- #('locations', '__first__'),
]
operations = [
migrations.CreateModel(
- name='LuxNote',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('title', models.CharField(blank=True, max_length=250, null=True)),
- ('slug', models.SlugField(blank=True, unique_for_date='date_created')),
- ('date_created', models.DateTimeField(editable=False)),
- ('date_last_updated', models.DateTimeField(blank=True, verbose_name='Date')),
- ('body_html', models.TextField(blank=True)),
- ('body_markdown', models.TextField(verbose_name='Note')),
- ],
- ),
- migrations.CreateModel(
name='Note',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(blank=True, max_length=250, null=True)),
- ('slug', models.SlugField(blank=True, unique_for_date='date_created')),
- ('date_created', models.DateTimeField(blank=True, verbose_name='Date')),
- ('date_last_updated', models.DateTimeField(blank=True, verbose_name='Date')),
- ('point', django.contrib.gis.db.models.fields.PointField(srid=4326)),
- ('city_name', models.CharField(blank=True, max_length=250, null=True)),
- ('state_name', models.CharField(blank=True, max_length=250, null=True)),
- ('country_name', models.CharField(blank=True, max_length=150, null=True)),
+ ('slug', models.SlugField(blank=True, unique_for_date='pub_date')),
+ ('pub_date', models.DateTimeField(default=django.utils.timezone.now)),
('body_html', models.TextField(blank=True)),
('body_markdown', models.TextField(verbose_name='Note')),
- ('twitter_text', models.CharField(blank=True, max_length=450, null=True, verbose_name='Twitter text')),
- ('twitter_id', models.CharField(max_length=450, verbose_name='twitter_id')),
- ('twitter_send', models.BooleanField(default=False, verbose_name='send to twitter?')),
- ('twitter_sent', models.BooleanField(default=False)),
- ('location', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='locations.Location')),
- ],
- ),
- migrations.CreateModel(
- name='OriginNoteForReplies',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('date_created', models.DateTimeField()),
- ('profile_image', models.CharField(blank=True, max_length=450, null=True)),
- ('screen_name', models.CharField(blank=True, max_length=75, null=True)),
- ('body_html', models.TextField(blank=True)),
- ('remote_url', models.CharField(blank=True, max_length=450, null=True)),
],
),
]
diff --git a/app/notes/migrations/0002_auto_20160208_1107.py b/app/notes/migrations/0002_auto_20160208_1107.py
deleted file mode 100644
index 3333a34..0000000
--- a/app/notes/migrations/0002_auto_20160208_1107.py
+++ /dev/null
@@ -1,20 +0,0 @@
-# -*- coding: utf-8 -*-
-# Generated by Django 1.9 on 2016-02-08 11:07
-from __future__ import unicode_literals
-
-from django.db import migrations
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('notes', '0001_initial'),
- ]
-
- operations = [
- migrations.RenameField(
- model_name='luxnote',
- old_name='date_created',
- new_name='pub_date',
- ),
- ]
diff --git a/app/notes/migrations/0003_auto_20160208_1120.py b/app/notes/migrations/0003_auto_20160208_1120.py
deleted file mode 100644
index 43f49a6..0000000
--- a/app/notes/migrations/0003_auto_20160208_1120.py
+++ /dev/null
@@ -1,33 +0,0 @@
-# -*- coding: utf-8 -*-
-# Generated by Django 1.9 on 2016-02-08 11:20
-from __future__ import unicode_literals
-
-import django.contrib.gis.db.models.fields
-from django.db import migrations, models
-import django.db.models.deletion
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- #('locations', '__first__'),
- ('notes', '0002_auto_20160208_1107'),
- ]
-
- operations = [
- migrations.AddField(
- model_name='luxnote',
- name='location',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='locations.Location'),
- ),
- migrations.AddField(
- model_name='luxnote',
- name='point',
- field=django.contrib.gis.db.models.fields.PointField(blank=True, null=True, srid=4326),
- ),
- migrations.AlterField(
- model_name='luxnote',
- name='slug',
- field=models.SlugField(blank=True, unique_for_date='pub_date'),
- ),
- ]
diff --git a/app/notes/migrations/0004_auto_20160616_1444.py b/app/notes/migrations/0004_auto_20160616_1444.py
deleted file mode 100644
index 76b1f3a..0000000
--- a/app/notes/migrations/0004_auto_20160616_1444.py
+++ /dev/null
@@ -1,27 +0,0 @@
-# -*- coding: utf-8 -*-
-# Generated by Django 1.9 on 2016-06-16 14:44
-from __future__ import unicode_literals
-
-from django.db import migrations, models
-import django.utils.timezone
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('photos', '0010_auto_20160517_0906'),
- ('notes', '0003_auto_20160208_1120'),
- ]
-
- operations = [
- migrations.AddField(
- model_name='luxnote',
- name='images',
- field=models.ManyToManyField(to='photos.LuxImage'),
- ),
- migrations.AlterField(
- model_name='luxnote',
- name='pub_date',
- field=models.DateTimeField(default=django.utils.timezone.now),
- ),
- ]
diff --git a/app/notes/migrations/0005_auto_20160616_1445.py b/app/notes/migrations/0005_auto_20160616_1445.py
deleted file mode 100644
index 129bbc2..0000000
--- a/app/notes/migrations/0005_auto_20160616_1445.py
+++ /dev/null
@@ -1,20 +0,0 @@
-# -*- coding: utf-8 -*-
-# Generated by Django 1.9 on 2016-06-16 14:45
-from __future__ import unicode_literals
-
-from django.db import migrations, models
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('notes', '0004_auto_20160616_1444'),
- ]
-
- operations = [
- migrations.AlterField(
- model_name='luxnote',
- name='images',
- field=models.ManyToManyField(blank=True, null=True, to='photos.LuxImage'),
- ),
- ]
diff --git a/app/notes/migrations/0006_auto_20160617_2058.py b/app/notes/migrations/0006_auto_20160617_2058.py
deleted file mode 100644
index 8d32528..0000000
--- a/app/notes/migrations/0006_auto_20160617_2058.py
+++ /dev/null
@@ -1,24 +0,0 @@
-# -*- coding: utf-8 -*-
-# Generated by Django 1.9 on 2016-06-17 20:58
-from __future__ import unicode_literals
-
-from django.db import migrations, models
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('notes', '0005_auto_20160616_1445'),
- ]
-
- operations = [
- migrations.RemoveField(
- model_name='luxnote',
- name='images',
- ),
- migrations.AddField(
- model_name='luxnote',
- name='status',
- field=models.IntegerField(choices=[(0, 'Draft'), (1, 'Published')], default=0),
- ),
- ]
diff --git a/app/notes/migrations/0007_auto_20160617_2143.py b/app/notes/migrations/0007_auto_20160617_2143.py
deleted file mode 100644
index 478e324..0000000
--- a/app/notes/migrations/0007_auto_20160617_2143.py
+++ /dev/null
@@ -1,20 +0,0 @@
-# -*- coding: utf-8 -*-
-# Generated by Django 1.9 on 2016-06-17 21:43
-from __future__ import unicode_literals
-
-from django.db import migrations, models
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('notes', '0006_auto_20160617_2058'),
- ]
-
- operations = [
- migrations.AlterField(
- model_name='luxnote',
- name='status',
- field=models.IntegerField(choices=[(0, 'Draft'), (1, 'Published')], default=1),
- ),
- ]
diff --git a/app/notes/migrations/0008_remove_luxnote_date_last_updated.py b/app/notes/migrations/0008_remove_luxnote_date_last_updated.py
deleted file mode 100644
index b16b2ea..0000000
--- a/app/notes/migrations/0008_remove_luxnote_date_last_updated.py
+++ /dev/null
@@ -1,19 +0,0 @@
-# -*- coding: utf-8 -*-
-# Generated by Django 1.11.5 on 2017-12-14 22:39
-from __future__ import unicode_literals
-
-from django.db import migrations
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('notes', '0007_auto_20160617_2143'),
- ]
-
- operations = [
- migrations.RemoveField(
- model_name='luxnote',
- name='date_last_updated',
- ),
- ]