diff options
Diffstat (limited to 'app/classes/migrations')
-rw-r--r-- | app/classes/migrations/0001_initial.py | 57 | ||||
-rw-r--r-- | app/classes/migrations/0002_alter_class_requires.py | 18 | ||||
-rw-r--r-- | app/classes/migrations/0003_auto_20220109_2043.py | 25 | ||||
-rw-r--r-- | app/classes/migrations/0004_rename_name_class_title.py | 18 | ||||
-rw-r--r-- | app/classes/migrations/0005_auto_20220109_2100.py | 23 | ||||
-rw-r--r-- | app/classes/migrations/0006_auto_20220109_2104.py | 28 | ||||
-rw-r--r-- | app/classes/migrations/0007_session_status.py | 18 | ||||
-rw-r--r-- | app/classes/migrations/0008_class_subtitle.py | 19 | ||||
-rw-r--r-- | app/classes/migrations/__init__.py | 0 |
9 files changed, 206 insertions, 0 deletions
diff --git a/app/classes/migrations/0001_initial.py b/app/classes/migrations/0001_initial.py new file mode 100644 index 0000000..b533aaf --- /dev/null +++ b/app/classes/migrations/0001_initial.py @@ -0,0 +1,57 @@ +# Generated by Django 3.2.8 on 2022-01-09 19:25 + +import classes.models +import datetime +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='ClassMedia', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name', models.CharField(max_length=200)), + ('date_created', models.DateTimeField(default=datetime.datetime.now)), + ('file', models.FileField(blank=True, null=True, upload_to=classes.models.get_upload_path)), + ], + ), + migrations.CreateModel( + name='Session', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name', models.CharField(max_length=200)), + ('date_start', models.DateField(verbose_name='Start Date')), + ('date_end', models.DateField(verbose_name='End Date')), + ('slug', models.SlugField()), + ], + options={ + 'ordering': ('-date_start',), + 'get_latest_by': 'date_start', + }, + ), + migrations.CreateModel( + name='Class', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name', models.CharField(max_length=200)), + ('description', models.TextField()), + ('requires', models.TextField(verbose_name='If previous classwork is required, list prerequisites here')), + ('slug', models.SlugField()), + ('date_created', models.DateTimeField(default=datetime.datetime.now)), + ('session', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='classes.session')), + ('uploads', models.ManyToManyField(blank=True, to='classes.ClassMedia')), + ], + options={ + 'ordering': ('-date_created',), + 'get_latest_by': 'date_created', + }, + ), + ] diff --git a/app/classes/migrations/0002_alter_class_requires.py b/app/classes/migrations/0002_alter_class_requires.py new file mode 100644 index 0000000..8febb99 --- /dev/null +++ b/app/classes/migrations/0002_alter_class_requires.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.8 on 2022-01-09 19:32 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('classes', '0001_initial'), + ] + + operations = [ + migrations.AlterField( + model_name='class', + name='requires', + field=models.TextField(blank=True, null=True, verbose_name='If previous classwork is required, list prerequisites here'), + ), + ] diff --git a/app/classes/migrations/0003_auto_20220109_2043.py b/app/classes/migrations/0003_auto_20220109_2043.py new file mode 100644 index 0000000..cd25dcd --- /dev/null +++ b/app/classes/migrations/0003_auto_20220109_2043.py @@ -0,0 +1,25 @@ +# Generated by Django 3.2.8 on 2022-01-09 20:43 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('classes', '0002_alter_class_requires'), + ] + + operations = [ + migrations.AddField( + model_name='class', + name='number_of_classes', + field=models.IntegerField(default=8), + preserve_default=False, + ), + migrations.AddField( + model_name='class', + name='price', + field=models.FloatField(default=225), + preserve_default=False, + ), + ] diff --git a/app/classes/migrations/0004_rename_name_class_title.py b/app/classes/migrations/0004_rename_name_class_title.py new file mode 100644 index 0000000..00ac456 --- /dev/null +++ b/app/classes/migrations/0004_rename_name_class_title.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.8 on 2022-01-09 20:49 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('classes', '0003_auto_20220109_2043'), + ] + + operations = [ + migrations.RenameField( + model_name='class', + old_name='name', + new_name='title', + ), + ] diff --git a/app/classes/migrations/0005_auto_20220109_2100.py b/app/classes/migrations/0005_auto_20220109_2100.py new file mode 100644 index 0000000..b5bd825 --- /dev/null +++ b/app/classes/migrations/0005_auto_20220109_2100.py @@ -0,0 +1,23 @@ +# Generated by Django 3.2.8 on 2022-01-09 21:00 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('classes', '0004_rename_name_class_title'), + ] + + operations = [ + migrations.RenameField( + model_name='classmedia', + old_name='name', + new_name='title', + ), + migrations.RenameField( + model_name='session', + old_name='name', + new_name='title', + ), + ] diff --git a/app/classes/migrations/0006_auto_20220109_2104.py b/app/classes/migrations/0006_auto_20220109_2104.py new file mode 100644 index 0000000..d25ead2 --- /dev/null +++ b/app/classes/migrations/0006_auto_20220109_2104.py @@ -0,0 +1,28 @@ +# Generated by Django 3.2.8 on 2022-01-09 21:04 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('classes', '0005_auto_20220109_2100'), + ] + + operations = [ + migrations.AddField( + model_name='class', + name='class_days', + field=models.IntegerField(choices=[(0, 'Mon/Wed'), (1, 'Tue/Thur')], default=0), + ), + migrations.AddField( + model_name='session', + name='length', + field=models.PositiveIntegerField(blank=True, null=True), + ), + migrations.AlterField( + model_name='class', + name='number_of_classes', + field=models.IntegerField(blank=True, null=True), + ), + ] diff --git a/app/classes/migrations/0007_session_status.py b/app/classes/migrations/0007_session_status.py new file mode 100644 index 0000000..d01d944 --- /dev/null +++ b/app/classes/migrations/0007_session_status.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.8 on 2022-01-09 21:17 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('classes', '0006_auto_20220109_2104'), + ] + + operations = [ + migrations.AddField( + model_name='session', + name='status', + field=models.IntegerField(choices=[(0, 'Open'), (1, 'Closed')], default=0), + ), + ] diff --git a/app/classes/migrations/0008_class_subtitle.py b/app/classes/migrations/0008_class_subtitle.py new file mode 100644 index 0000000..1d572b0 --- /dev/null +++ b/app/classes/migrations/0008_class_subtitle.py @@ -0,0 +1,19 @@ +# Generated by Django 3.2.8 on 2022-01-09 22:10 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('classes', '0007_session_status'), + ] + + operations = [ + migrations.AddField( + model_name='class', + name='subtitle', + field=models.CharField(default='some text', max_length=200), + preserve_default=False, + ), + ] diff --git a/app/classes/migrations/__init__.py b/app/classes/migrations/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/app/classes/migrations/__init__.py |