Showing
3 changed files
with
40 additions
and
0 deletions
| ... | @@ -81,6 +81,9 @@ DATABASES = { | ... | @@ -81,6 +81,9 @@ DATABASES = { |
| 81 | 'PASSWORD': '8f13dd391805db193227d3544b570b69', | 81 | 'PASSWORD': '8f13dd391805db193227d3544b570b69', |
| 82 | 'HOST': 'khubox.cogff6stbbkv.ap-northeast-2.rds.amazonaws.com', | 82 | 'HOST': 'khubox.cogff6stbbkv.ap-northeast-2.rds.amazonaws.com', |
| 83 | 'PORT': '3306', | 83 | 'PORT': '3306', |
| 84 | + 'OPTIONS': { | ||
| 85 | + 'init_command': "SET sql_mode='STRICT_TRANS_TABLES'" | ||
| 86 | + } | ||
| 84 | } | 87 | } |
| 85 | } | 88 | } |
| 86 | 89 | ... | ... |
khubox-api/user/migrations/0001_initial.py
0 → 100644
| 1 | +# -*- coding: utf-8 -*- | ||
| 2 | +# Generated by Django 1.11.29 on 2020-06-08 16:22 | ||
| 3 | +from __future__ import unicode_literals | ||
| 4 | + | ||
| 5 | +import datetime | ||
| 6 | +from django.db import migrations, models | ||
| 7 | +import user.models | ||
| 8 | + | ||
| 9 | + | ||
| 10 | +class Migration(migrations.Migration): | ||
| 11 | + | ||
| 12 | + initial = True | ||
| 13 | + | ||
| 14 | + dependencies = [ | ||
| 15 | + ] | ||
| 16 | + | ||
| 17 | + operations = [ | ||
| 18 | + migrations.CreateModel( | ||
| 19 | + name='User', | ||
| 20 | + fields=[ | ||
| 21 | + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
| 22 | + ('password', models.CharField(max_length=128, verbose_name='password')), | ||
| 23 | + ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), | ||
| 24 | + ('email', models.EmailField(max_length=254, unique=True)), | ||
| 25 | + ('name', models.CharField(max_length=100)), | ||
| 26 | + ('date_of_birth', models.DateField(default=datetime.date.today)), | ||
| 27 | + ('storage_usage', models.FloatField(default=0)), | ||
| 28 | + ('is_admin', models.BooleanField(default=False)), | ||
| 29 | + ], | ||
| 30 | + options={ | ||
| 31 | + 'abstract': False, | ||
| 32 | + }, | ||
| 33 | + managers=[ | ||
| 34 | + ('objects', user.models.UserManager()), | ||
| 35 | + ], | ||
| 36 | + ), | ||
| 37 | + ] |
khubox-api/user/migrations/__init__.py
0 → 100644
File mode changed
-
Please register or login to post a comment