From 0512b1a47d0afac26a77cd5129c261db41b4e076 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lex=20Hermida?= Date: Tue, 18 Sep 2018 15:56:02 +0200 Subject: [PATCH] Add migrations --- .../migrations/0061_auto_20180918_1355.py | 19 +++++++++ .../settings/migrations/0001_initial.py | 40 +++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 taiga/projects/migrations/0061_auto_20180918_1355.py create mode 100644 taiga/projects/settings/migrations/0001_initial.py diff --git a/taiga/projects/migrations/0061_auto_20180918_1355.py b/taiga/projects/migrations/0061_auto_20180918_1355.py new file mode 100644 index 00000000..b25cf303 --- /dev/null +++ b/taiga/projects/migrations/0061_auto_20180918_1355.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.2 on 2018-09-18 13:55 +from __future__ import unicode_literals + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('projects', '0060_auto_20180614_1338'), + ] + + operations = [ + migrations.AlterUniqueTogether( + name='issuestatus', + unique_together=set([('project', 'name'), ('project', 'slug')]), + ), + ] diff --git a/taiga/projects/settings/migrations/0001_initial.py b/taiga/projects/settings/migrations/0001_initial.py new file mode 100644 index 00000000..0a393e0d --- /dev/null +++ b/taiga/projects/settings/migrations/0001_initial.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.2 on 2018-09-18 13:55 +from __future__ import unicode_literals + +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion +import django.utils.timezone +import taiga.projects.settings.choices + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ('projects', '0061_auto_20180918_1355'), + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ] + + operations = [ + migrations.CreateModel( + name='UserProjectSettings', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('homepage', models.SmallIntegerField(choices=[(taiga.projects.settings.choices.Section(1), 'Timeline'), (taiga.projects.settings.choices.Section(2), 'Search'), (taiga.projects.settings.choices.Section(3), 'Backlog'), (taiga.projects.settings.choices.Section(4), 'Kanban'), (taiga.projects.settings.choices.Section(5), 'Issues'), (taiga.projects.settings.choices.Section(6), 'TeamWiki'), (taiga.projects.settings.choices.Section(7), 'Team'), (taiga.projects.settings.choices.Section(8), 'Meet Up'), (taiga.projects.settings.choices.Section(9), 'Admin')], default=taiga.projects.settings.choices.Section(1))), + ('created_at', models.DateTimeField(default=django.utils.timezone.now)), + ('modified_at', models.DateTimeField()), + ('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='user_project_settings', to='projects.Project')), + ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='user_project_settings', to=settings.AUTH_USER_MODEL)), + ], + options={ + 'ordering': ['created_at'], + }, + ), + migrations.AlterUniqueTogether( + name='userprojectsettings', + unique_together=set([('project', 'user')]), + ), + ]