diff --git a/tkupek_elearning/elearning/migrations/0002_setting_button_solution.py b/tkupek_elearning/elearning/migrations/0002_setting_button_solution.py new file mode 100644 index 0000000..0bb3c49 --- /dev/null +++ b/tkupek_elearning/elearning/migrations/0002_setting_button_solution.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.1 on 2016-01-31 19:22 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('elearning', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='setting', + name='button_solution', + field=models.CharField(max_length=100, null=True), + ), + ] diff --git a/tkupek_elearning/elearning/migrations/0003_auto_20160209_1801.py b/tkupek_elearning/elearning/migrations/0003_auto_20160209_1801.py new file mode 100644 index 0000000..a2d5492 --- /dev/null +++ b/tkupek_elearning/elearning/migrations/0003_auto_20160209_1801.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.1 on 2016-02-09 18:01 +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('elearning', '0002_setting_button_solution'), + ] + + operations = [ + migrations.CreateModel( + name='User', + fields=[ + ('token', models.CharField(max_length=7, primary_key=True, serialize=False)), + ('name', models.CharField(max_length=100, null=True)), + ], + ), + migrations.CreateModel( + name='UserAnswer', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('answers', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='elearning.Option')), + ('questionId', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='elearning.Question')), + ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='elearning.User')), + ], + ), + migrations.AlterUniqueTogether( + name='useranswer', + unique_together={('user', 'questionId')}, + ), + ] diff --git a/tkupek_elearning/elearning/migrations/0004_auto_20160209_1804.py b/tkupek_elearning/elearning/migrations/0004_auto_20160209_1804.py new file mode 100644 index 0000000..1e644a6 --- /dev/null +++ b/tkupek_elearning/elearning/migrations/0004_auto_20160209_1804.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.1 on 2016-02-09 18:04 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('elearning', '0003_auto_20160209_1801'), + ] + + operations = [ + migrations.AlterField( + model_name='user', + name='token', + field=models.CharField(max_length=32, primary_key=True, serialize=False), + ), + ] diff --git a/tkupek_elearning/elearning/migrations/0005_auto_20160209_1816.py b/tkupek_elearning/elearning/migrations/0005_auto_20160209_1816.py new file mode 100644 index 0000000..a950236 --- /dev/null +++ b/tkupek_elearning/elearning/migrations/0005_auto_20160209_1816.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.1 on 2016-02-09 18:16 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('elearning', '0004_auto_20160209_1804'), + ] + + operations = [ + migrations.AddField( + model_name='user', + name='id', + field=models.AutoField(auto_created=True, default=1, primary_key=True, serialize=False, verbose_name='ID'), + preserve_default=False, + ), + migrations.AlterField( + model_name='user', + name='token', + field=models.CharField(max_length=32), + ), + ] diff --git a/tkupek_elearning/elearning/migrations/0006_auto_20160209_1818.py b/tkupek_elearning/elearning/migrations/0006_auto_20160209_1818.py new file mode 100644 index 0000000..300c57b --- /dev/null +++ b/tkupek_elearning/elearning/migrations/0006_auto_20160209_1818.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.1 on 2016-02-09 18:18 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('elearning', '0005_auto_20160209_1816'), + ] + + operations = [ + migrations.AlterField( + model_name='user', + name='token', + field=models.CharField(max_length=32, null=True), + ), + ] diff --git a/tkupek_elearning/elearning/migrations/0007_auto_20160209_1819.py b/tkupek_elearning/elearning/migrations/0007_auto_20160209_1819.py new file mode 100644 index 0000000..52e8a6e --- /dev/null +++ b/tkupek_elearning/elearning/migrations/0007_auto_20160209_1819.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.1 on 2016-02-09 18:19 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('elearning', '0006_auto_20160209_1818'), + ] + + operations = [ + migrations.AlterField( + model_name='user', + name='name', + field=models.CharField(default='test', max_length=100), + preserve_default=False, + ), + ] diff --git a/tkupek_elearning/elearning/migrations/0008_auto_20160209_1858.py b/tkupek_elearning/elearning/migrations/0008_auto_20160209_1858.py new file mode 100644 index 0000000..d7b0594 --- /dev/null +++ b/tkupek_elearning/elearning/migrations/0008_auto_20160209_1858.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.1 on 2016-02-09 18:58 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('elearning', '0007_auto_20160209_1819'), + ] + + operations = [ + migrations.AlterField( + model_name='useranswer', + name='answers', + field=models.CharField(max_length=100, null=True), + ), + ] diff --git a/tkupek_elearning/elearning/migrations/0009_auto_20160209_2040.py b/tkupek_elearning/elearning/migrations/0009_auto_20160209_2040.py new file mode 100644 index 0000000..877767c --- /dev/null +++ b/tkupek_elearning/elearning/migrations/0009_auto_20160209_2040.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.1 on 2016-02-09 20:40 +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('elearning', '0008_auto_20160209_1858'), + ] + + operations = [ + migrations.RenameField( + model_name='useranswer', + old_name='questionId', + new_name='question', + ), + migrations.AddField( + model_name='user', + name='userAnswer', + field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='elearning.UserAnswer'), + ), + migrations.AlterUniqueTogether( + name='useranswer', + unique_together=set([]), + ), + migrations.RemoveField( + model_name='useranswer', + name='user', + ), + ] diff --git a/tkupek_elearning/elearning/migrations/0010_auto_20160209_2042.py b/tkupek_elearning/elearning/migrations/0010_auto_20160209_2042.py new file mode 100644 index 0000000..9d1b9e0 --- /dev/null +++ b/tkupek_elearning/elearning/migrations/0010_auto_20160209_2042.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.1 on 2016-02-09 20:42 +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('elearning', '0009_auto_20160209_2040'), + ] + + operations = [ + migrations.RemoveField( + model_name='user', + name='userAnswer', + ), + migrations.AddField( + model_name='useranswer', + name='user', + field=models.ForeignKey(default=0, on_delete=django.db.models.deletion.CASCADE, to='elearning.User'), + preserve_default=False, + ), + migrations.AlterUniqueTogether( + name='useranswer', + unique_together={('user', 'question')}, + ), + ] diff --git a/tkupek_elearning/elearning/migrations/0011_setting_logo.py b/tkupek_elearning/elearning/migrations/0011_setting_logo.py new file mode 100644 index 0000000..11d491a --- /dev/null +++ b/tkupek_elearning/elearning/migrations/0011_setting_logo.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.1 on 2016-02-09 20:48 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('elearning', '0010_auto_20160209_2042'), + ] + + operations = [ + migrations.AddField( + model_name='setting', + name='logo', + field=models.CharField(max_length=256, null=True), + ), + ] diff --git a/tkupek_elearning/elearning/migrations/0012_auto_20160214_1222.py b/tkupek_elearning/elearning/migrations/0012_auto_20160214_1222.py new file mode 100644 index 0000000..87e8d6d --- /dev/null +++ b/tkupek_elearning/elearning/migrations/0012_auto_20160214_1222.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.1 on 2016-02-14 12:22 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('elearning', '0011_setting_logo'), + ] + + operations = [ + migrations.RenameField( + model_name='setting', + old_name='message', + new_name='message_access_denied', + ), + migrations.AddField( + model_name='setting', + name='message_welcome_user', + field=models.TextField(null=True), + ), + ] diff --git a/tkupek_elearning/elearning/migrations/0013_auto_20160214_1247.py b/tkupek_elearning/elearning/migrations/0013_auto_20160214_1247.py new file mode 100644 index 0000000..ec62a78 --- /dev/null +++ b/tkupek_elearning/elearning/migrations/0013_auto_20160214_1247.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.1 on 2016-02-14 12:47 +from __future__ import unicode_literals + +from django.db import migrations, models +import tkupek_elearning.elearning.models + + +class Migration(migrations.Migration): + + dependencies = [ + ('elearning', '0012_auto_20160214_1222'), + ] + + operations = [ + migrations.AlterField( + model_name='user', + name='token', + field=models.CharField(default=tkupek_elearning.elearning.models.gen_token, max_length=32, null=True), + ), + ] diff --git a/tkupek_elearning/elearning/migrations/0014_auto_20160214_1249.py b/tkupek_elearning/elearning/migrations/0014_auto_20160214_1249.py new file mode 100644 index 0000000..26782e3 --- /dev/null +++ b/tkupek_elearning/elearning/migrations/0014_auto_20160214_1249.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.1 on 2016-02-14 12:49 +from __future__ import unicode_literals + +from django.db import migrations, models +import tkupek_elearning.elearning.models + + +class Migration(migrations.Migration): + + dependencies = [ + ('elearning', '0013_auto_20160214_1247'), + ] + + operations = [ + migrations.AlterField( + model_name='user', + name='token', + field=models.CharField(default=tkupek_elearning.elearning.models.gen_token, max_length=40, null=True), + ), + ] diff --git a/tkupek_elearning/elearning/migrations/0015_setting_message_already_answered.py b/tkupek_elearning/elearning/migrations/0015_setting_message_already_answered.py new file mode 100644 index 0000000..7f0d474 --- /dev/null +++ b/tkupek_elearning/elearning/migrations/0015_setting_message_already_answered.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.1 on 2016-02-14 13:24 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('elearning', '0014_auto_20160214_1249'), + ] + + operations = [ + migrations.AddField( + model_name='setting', + name='message_already_answered', + field=models.TextField(null=True), + ), + ] diff --git a/tkupek_elearning/elearning/migrations/0016_user_last_seen.py b/tkupek_elearning/elearning/migrations/0016_user_last_seen.py new file mode 100644 index 0000000..afc6873 --- /dev/null +++ b/tkupek_elearning/elearning/migrations/0016_user_last_seen.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.1 on 2016-02-14 14:20 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('elearning', '0015_setting_message_already_answered'), + ] + + operations = [ + migrations.AddField( + model_name='user', + name='last_seen', + field=models.DateTimeField(null=True), + ), + ] diff --git a/tkupek_elearning/elearning/migrations/0017_auto_20160214_1534.py b/tkupek_elearning/elearning/migrations/0017_auto_20160214_1534.py new file mode 100644 index 0000000..c928f36 --- /dev/null +++ b/tkupek_elearning/elearning/migrations/0017_auto_20160214_1534.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.1 on 2016-02-14 15:34 +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('elearning', '0016_user_last_seen'), + ] + + operations = [ + migrations.CreateModel( + name='UserAnswerOptions', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('option', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='elearning.Option')), + ], + ), + migrations.RemoveField( + model_name='useranswer', + name='answers', + ), + migrations.AddField( + model_name='useransweroptions', + name='user_answer', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='elearning.UserAnswer'), + ), + migrations.AlterUniqueTogether( + name='useransweroptions', + unique_together=set([('user_answer', 'option')]), + ), + ]