Skip to content
Snippets Groups Projects
Commit 6da4899c authored by Frank Poetzsch-Heffter's avatar Frank Poetzsch-Heffter
Browse files

clean migrations

parent 90a3a592
No related branches found
No related tags found
1 merge request!86Merge school-apps
# Generated by Django 2.0 on 2018-03-22 17:07
# Generated by Django 2.0.4 on 2018-04-10 11:02
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='Class',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=10)),
('text1', models.CharField(max_length=200)),
('text2', models.CharField(max_length=200)),
],
),
migrations.CreateModel(
name='Room',
name='Aub',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('shortcode', models.CharField(max_length=10)),
('name', models.CharField(max_length=100)),
('from_dt', models.DateTimeField(default=django.utils.timezone.now)),
('to_dt', models.DateTimeField(default=django.utils.timezone.now)),
('description', models.TextField()),
('created_at', models.DateTimeField(default=django.utils.timezone.now)),
('created_by', models.ForeignKey(default=1, on_delete=models.SET(1), related_name='aubs', to=settings.AUTH_USER_MODEL)),
],
options={
'permissions': (('apply_for_aub', 'Apply for a AUB'), ('allow_aub', 'Allow a AUB'), ('check_aub', 'Check a AUB')),
},
),
migrations.CreateModel(
name='Teacher',
name='Status',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('shortcode', models.CharField(max_length=10)),
('first_name', models.CharField(max_length=100)),
('name', models.CharField(max_length=100)),
('style_classes', models.CharField(max_length=200)),
],
),
migrations.AddField(
model_name='class',
name='room',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='timetable.Room'),
),
]
# Generated by Django 2.0.4 on 2018-04-10 11:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('aub', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='aub',
name='status',
field=models.ForeignKey(default=1, on_delete=models.SET(1), related_name='aubs', to='aub.Status'),
),
]
# Generated by Django 2.0.4 on 2018-04-10 10:55
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='Activity',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=200)),
('description', models.TextField(max_length=500)),
('app', models.CharField(max_length=100)),
('created_at', models.DateTimeField(default=django.utils.timezone.now)),
('user', models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
migrations.CreateModel(
name='Notification',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=200)),
('description', models.TextField(max_length=500)),
('app', models.CharField(max_length=100)),
('created_at', models.DateTimeField(default=django.utils.timezone.now)),
('to', models.ManyToManyField(related_name='notifications', to=settings.AUTH_USER_MODEL)),
],
),
]
......@@ -20,30 +20,30 @@ from django.conf.urls.static import static
from django.conf import settings
urlpatterns = [
#############
# Dashboard #
#############
path('', include('dashboard.urls')),
# #############
# # Dashboard #
# #############
# path('', include('dashboard.urls')),
########
# Auth #
########
path('accounts/', include('django.contrib.auth.urls')),
# ########
# # Auth #
# ########
# path('accounts/', include('django.contrib.auth.urls')),
#######
# AUB #
#######
path('aub/', include('aub.urls')),
# #######
# # AUB #
# #######
# path('aub/', include('aub.urls')),
#################
# UNTIS CONNECT #
#################
path('untis/', include('untisconnect.urls')),
# #################
# # UNTIS CONNECT #
# #################
# path('untis/', include('untisconnect.urls')),
#############
# TIMETABLE #
#############
path('timetable/', include('timetable.urls')),
# #############
# # TIMETABLE #
# #############
# path('timetable/', include('timetable.urls')),
#########
# Admin #
......
# Generated by Django 2.0.3 on 2018-04-10 09:00
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('timetable', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='class',
name='room',
),
migrations.DeleteModel(
name='Teacher',
),
migrations.DeleteModel(
name='Class',
),
migrations.DeleteModel(
name='Room',
),
]
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment