aboutsummaryrefslogtreecommitdiffstats
path: root/client/migrations
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2020-06-20 00:28:16 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2020-06-20 00:28:16 +0200
commitffb9b4111a891fda9e9e1ddf19de936bdbd664f8 (patch)
treecbd563acbfb97d2cad4f7da425de412aad00e5dd /client/migrations
parentMore data for users (diff)
downloadscout-subs-ffb9b4111a891fda9e9e1ddf19de936bdbd664f8.tar.gz
scout-subs-ffb9b4111a891fda9e9e1ddf19de936bdbd664f8.zip
Document support
Diffstat (limited to 'client/migrations')
-rw-r--r--client/migrations/0007_auto_20200619_1508.py26
-rw-r--r--client/migrations/0008_auto_20200619_1538.py74
-rw-r--r--client/migrations/0009_auto_20200619_1546.py32
-rw-r--r--client/migrations/0010_documenttype_enabled.py18
-rw-r--r--client/migrations/0011_keys.py22
-rw-r--r--client/migrations/0012_document_group.py20
6 files changed, 192 insertions, 0 deletions
diff --git a/client/migrations/0007_auto_20200619_1508.py b/client/migrations/0007_auto_20200619_1508.py
new file mode 100644
index 0000000..a5f2669
--- /dev/null
+++ b/client/migrations/0007_auto_20200619_1508.py
@@ -0,0 +1,26 @@
+# Generated by Django 3.0.7 on 2020-06-19 13:08
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('client', '0006_auto_20200619_1049'),
+ ]
+
+ operations = [
+ migrations.RemoveField(
+ model_name='yearsubscription',
+ name='group',
+ ),
+ migrations.RemoveField(
+ model_name='yearsubscription',
+ name='school',
+ ),
+ migrations.AlterField(
+ model_name='yearsubscription',
+ name='year',
+ field=models.CharField(default='', max_length=250),
+ ),
+ ]
diff --git a/client/migrations/0008_auto_20200619_1538.py b/client/migrations/0008_auto_20200619_1538.py
new file mode 100644
index 0000000..c890cd1
--- /dev/null
+++ b/client/migrations/0008_auto_20200619_1538.py
@@ -0,0 +1,74 @@
+# Generated by Django 3.0.7 on 2020-06-19 13:38
+
+import datetime
+from django.conf import settings
+from django.db import migrations, models
+import django.db.models.deletion
+import django.utils.timezone
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ migrations.swappable_dependency(settings.AUTH_USER_MODEL),
+ ('client', '0007_auto_20200619_1508'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='KeyVal',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('key', models.CharField(db_index=True, max_length=240)),
+ ('value', models.CharField(db_index=True, max_length=240)),
+ ],
+ ),
+ migrations.CreateModel(
+ name='PersonalData',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('parent_name', models.CharField(default='', max_length=250)),
+ ('via', models.CharField(default='', max_length=250)),
+ ('cap', models.CharField(default='', max_length=250)),
+ ('country', models.CharField(default='', max_length=250)),
+ ('nationality', models.CharField(default='', max_length=250)),
+ ('born_date', models.DateField(default=datetime.datetime(1970, 1, 1, 1, 0), null=True)),
+ ('home_phone', models.CharField(default='', max_length=250)),
+ ('phone', models.CharField(default='', max_length=250)),
+ ],
+ ),
+ migrations.AddField(
+ model_name='document',
+ name='compilation_date',
+ field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now),
+ preserve_default=False,
+ ),
+ migrations.AddField(
+ model_name='document',
+ name='document_type',
+ field=models.CharField(default='', max_length=50),
+ ),
+ migrations.AddField(
+ model_name='document',
+ name='status',
+ field=models.CharField(default='', max_length=50),
+ ),
+ migrations.AddField(
+ model_name='document',
+ name='user',
+ field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.DeleteModel(
+ name='YearSubscription',
+ ),
+ migrations.AddField(
+ model_name='keyval',
+ name='container',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='client.Document'),
+ ),
+ migrations.AddField(
+ model_name='document',
+ name='personal_data',
+ field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.PROTECT, to='client.PersonalData'),
+ ),
+ ]
diff --git a/client/migrations/0009_auto_20200619_1546.py b/client/migrations/0009_auto_20200619_1546.py
new file mode 100644
index 0000000..88961d2
--- /dev/null
+++ b/client/migrations/0009_auto_20200619_1546.py
@@ -0,0 +1,32 @@
+# Generated by Django 3.0.7 on 2020-06-19 13:46
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('auth', '0011_update_proxy_permissions'),
+ ('client', '0008_auto_20200619_1538'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='DocumentType',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('group_private', models.BooleanField(default=False)),
+ ('personal_data', models.BooleanField(default=False)),
+ ('medical_data', models.BooleanField(default=False)),
+ ('custom_data', models.BooleanField(default=False)),
+ ('name', models.CharField(default='', max_length=250)),
+ ('group', models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='auth.Group')),
+ ],
+ ),
+ migrations.AlterField(
+ model_name='document',
+ name='document_type',
+ field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.PROTECT, to='client.DocumentType'),
+ ),
+ ]
diff --git a/client/migrations/0010_documenttype_enabled.py b/client/migrations/0010_documenttype_enabled.py
new file mode 100644
index 0000000..24928b0
--- /dev/null
+++ b/client/migrations/0010_documenttype_enabled.py
@@ -0,0 +1,18 @@
+# Generated by Django 3.0.7 on 2020-06-19 16:41
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('client', '0009_auto_20200619_1546'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='documenttype',
+ name='enabled',
+ field=models.BooleanField(default=False),
+ ),
+ ]
diff --git a/client/migrations/0011_keys.py b/client/migrations/0011_keys.py
new file mode 100644
index 0000000..8739908
--- /dev/null
+++ b/client/migrations/0011_keys.py
@@ -0,0 +1,22 @@
+# Generated by Django 3.0.7 on 2020-06-19 20:36
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('client', '0010_documenttype_enabled'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='Keys',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('key', models.CharField(db_index=True, max_length=240)),
+ ('container', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='client.DocumentType')),
+ ],
+ ),
+ ]
diff --git a/client/migrations/0012_document_group.py b/client/migrations/0012_document_group.py
new file mode 100644
index 0000000..a1fbabc
--- /dev/null
+++ b/client/migrations/0012_document_group.py
@@ -0,0 +1,20 @@
+# Generated by Django 3.0.7 on 2020-06-19 21:05
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('auth', '0011_update_proxy_permissions'),
+ ('client', '0011_keys'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='document',
+ name='group',
+ field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='auth.Group'),
+ ),
+ ]