Skip to content

Commit

Permalink
chore: db migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
rijkerd committed Oct 24, 2020
1 parent b13e751 commit ada53e0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion module/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.0.7 on 2020-09-19 13:47
# Generated by Django 3.1.2 on 2020-10-24 11:01

from django.db import migrations, models
import uuid
Expand Down
4 changes: 2 additions & 2 deletions resources/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.0.7 on 2020-09-19 13:47
# Generated by Django 3.1.2 on 2020-10-24 11:01

import core.storage_backends
from django.db import migrations, models
Expand All @@ -24,7 +24,7 @@ class Migration(migrations.Migration):
('location', models.FileField(storage=core.storage_backends.PublicMediaStorage(), upload_to='')),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(auto_now=True)),
('topic', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='resources', to='topic.Topic')),
('topic', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='resources', to='topic.topic')),
],
),
]
4 changes: 2 additions & 2 deletions topic/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.0.7 on 2020-09-19 13:47
# Generated by Django 3.1.2 on 2020-10-24 11:01

from django.db import migrations, models
import django.db.models.deletion
Expand All @@ -22,7 +22,7 @@ class Migration(migrations.Migration):
('description', models.CharField(blank=True, max_length=200)),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(auto_now=True)),
('module', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='topics', to='module.Module')),
('module', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='topics', to='module.module')),
],
),
]
8 changes: 4 additions & 4 deletions users/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.0.7 on 2020-09-19 13:47
# Generated by Django 3.1.2 on 2020-10-24 11:01

import django.contrib.auth.models
import django.contrib.auth.validators
Expand All @@ -12,18 +12,18 @@ class Migration(migrations.Migration):
initial = True

dependencies = [
('auth', '0011_update_proxy_permissions'),
('auth', '0012_alter_user_first_name_max_length'),
]

operations = [
migrations.CreateModel(
name='CustomUser',
name='User',
fields=[
('password', models.CharField(max_length=128, verbose_name='password')),
('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')),
('username', models.CharField(error_messages={'unique': 'A user with that username already exists.'}, help_text='Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[django.contrib.auth.validators.UnicodeUsernameValidator()], verbose_name='username')),
('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')),
('first_name', models.CharField(blank=True, max_length=150, verbose_name='first name')),
('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')),
('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')),
('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')),
Expand Down

0 comments on commit ada53e0

Please sign in to comment.