aboutsummaryrefslogtreecommitdiff
path: root/apps/notes/migrations/0003_auto_20181204_0641.py
diff options
context:
space:
mode:
Diffstat (limited to 'apps/notes/migrations/0003_auto_20181204_0641.py')
-rw-r--r--apps/notes/migrations/0003_auto_20181204_0641.py59
1 files changed, 59 insertions, 0 deletions
diff --git a/apps/notes/migrations/0003_auto_20181204_0641.py b/apps/notes/migrations/0003_auto_20181204_0641.py
new file mode 100644
index 0000000..9423058
--- /dev/null
+++ b/apps/notes/migrations/0003_auto_20181204_0641.py
@@ -0,0 +1,59 @@
+# Generated by Django 2.1.2 on 2018-12-04 12:41
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('contenttypes', '0002_remove_content_type_name'),
+ ('notes', '0002_auto_20181204_0620'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='LuxTag',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('name', models.CharField(max_length=100, unique=True, verbose_name='Name')),
+ ('slug', models.SlugField(max_length=100, unique=True, verbose_name='Slug')),
+ ('color_hex', models.CharField(max_length=6)),
+ ],
+ options={
+ 'verbose_name': 'Tag',
+ 'verbose_name_plural': 'Tags',
+ },
+ ),
+ migrations.CreateModel(
+ name='TaggedNotes',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('object_id', models.IntegerField(db_index=True, verbose_name='Object id')),
+ ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='notes_taggednotes_tagged_items', to='contenttypes.ContentType', verbose_name='Content type')),
+ ('tag', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='notes_taggednotes_items', to='notes.LuxTag')),
+ ],
+ options={
+ 'abstract': False,
+ },
+ ),
+ migrations.AlterUniqueTogether(
+ name='tag',
+ unique_together=set(),
+ ),
+ migrations.RemoveField(
+ model_name='tag',
+ name='owner',
+ ),
+ migrations.RemoveField(
+ model_name='tag',
+ name='parent',
+ ),
+ migrations.RemoveField(
+ model_name='note',
+ name='tagstwo',
+ ),
+ migrations.DeleteModel(
+ name='Tag',
+ ),
+ ]