Fakultas Ilmu Komputer UI

Commit daef951e authored by addffa's avatar addffa
Browse files

[GREEN] update migrations file

parent d022550d
Pipeline #51204 failed with stage
in 9 minutes and 10 seconds
# Generated by Django 3.0.7 on 2020-07-28 10:47 # Generated by Django 3.0.7 on 2020-07-29 08:26
import django.core.validators import django.core.validators
from django.db import migrations, models from django.db import migrations, models
...@@ -17,15 +17,8 @@ class Migration(migrations.Migration): ...@@ -17,15 +17,8 @@ class Migration(migrations.Migration):
name='DataSource', name='DataSource',
fields=[ fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('pic_name', models.CharField(max_length=150)),
('pic_ktp', models.CharField(max_length=32, validators=[django.core.validators.RegexValidator('^[0-9]*$', 'Numeric character only.')])),
('pic_phone', models.CharField(max_length=32, validators=[django.core.validators.RegexValidator('^[0-9]*$', 'Numeric character only.')])),
('pic_position', models.CharField(max_length=50)),
('category', models.CharField(choices=[('WARGA', 'Warga'), ('INSTITUSI', 'Institusi'), ('PEKERJA', 'Pekerja')], max_length=32)), ('category', models.CharField(choices=[('WARGA', 'Warga'), ('INSTITUSI', 'Institusi'), ('PEKERJA', 'Pekerja')], max_length=32)),
], ],
options={
'unique_together': {('pic_ktp', 'category')},
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='Mustahik', name='Mustahik',
...@@ -46,6 +39,10 @@ class Migration(migrations.Migration): ...@@ -46,6 +39,10 @@ class Migration(migrations.Migration):
name='DataSourceWarga', name='DataSourceWarga',
fields=[ fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('pic_name', models.CharField(max_length=150)),
('pic_ktp', models.CharField(max_length=32, validators=[django.core.validators.RegexValidator('^[0-9]*$', 'Numeric character only.')])),
('pic_phone', models.CharField(max_length=32, validators=[django.core.validators.RegexValidator('^[0-9]*$', 'Numeric character only.')])),
('pic_position', models.CharField(max_length=50)),
('province', models.CharField(max_length=50)), ('province', models.CharField(max_length=50)),
('regency', models.CharField(max_length=50)), ('regency', models.CharField(max_length=50)),
('sub_district', models.CharField(max_length=50)), ('sub_district', models.CharField(max_length=50)),
...@@ -54,20 +51,34 @@ class Migration(migrations.Migration): ...@@ -54,20 +51,34 @@ class Migration(migrations.Migration):
('rw', models.CharField(max_length=3, validators=[django.core.validators.RegexValidator('^[0-9]*$', 'Numeric character only.')])), ('rw', models.CharField(max_length=3, validators=[django.core.validators.RegexValidator('^[0-9]*$', 'Numeric character only.')])),
('data_source', models.OneToOneField(limit_choices_to={'category': 'WARGA'}, on_delete=django.db.models.deletion.CASCADE, to='mustahik.DataSource')), ('data_source', models.OneToOneField(limit_choices_to={'category': 'WARGA'}, on_delete=django.db.models.deletion.CASCADE, to='mustahik.DataSource')),
], ],
options={
'abstract': False,
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='DataSourcePekerja', name='DataSourcePekerja',
fields=[ fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('pic_name', models.CharField(max_length=150)),
('pic_ktp', models.CharField(max_length=32, validators=[django.core.validators.RegexValidator('^[0-9]*$', 'Numeric character only.')])),
('pic_phone', models.CharField(max_length=32, validators=[django.core.validators.RegexValidator('^[0-9]*$', 'Numeric character only.')])),
('pic_position', models.CharField(max_length=50)),
('profession', models.CharField(max_length=50)), ('profession', models.CharField(max_length=50)),
('location', models.CharField(max_length=50)), ('location', models.CharField(max_length=50)),
('data_source', models.OneToOneField(limit_choices_to={'category': 'PEKERJA'}, on_delete=django.db.models.deletion.CASCADE, to='mustahik.DataSource')), ('data_source', models.OneToOneField(limit_choices_to={'category': 'PEKERJA'}, on_delete=django.db.models.deletion.CASCADE, to='mustahik.DataSource')),
], ],
options={
'abstract': False,
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='DataSourceInstitusi', name='DataSourceInstitusi',
fields=[ fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('pic_name', models.CharField(max_length=150)),
('pic_ktp', models.CharField(max_length=32, validators=[django.core.validators.RegexValidator('^[0-9]*$', 'Numeric character only.')])),
('pic_phone', models.CharField(max_length=32, validators=[django.core.validators.RegexValidator('^[0-9]*$', 'Numeric character only.')])),
('pic_position', models.CharField(max_length=50)),
('name', models.CharField(max_length=150)), ('name', models.CharField(max_length=150)),
('province', models.CharField(max_length=50)), ('province', models.CharField(max_length=50)),
('regency', models.CharField(max_length=50)), ('regency', models.CharField(max_length=50)),
...@@ -78,5 +89,8 @@ class Migration(migrations.Migration): ...@@ -78,5 +89,8 @@ class Migration(migrations.Migration):
('address', models.CharField(max_length=255)), ('address', models.CharField(max_length=255)),
('data_source', models.OneToOneField(limit_choices_to={'category': 'INSTITUSI'}, on_delete=django.db.models.deletion.CASCADE, to='mustahik.DataSource')), ('data_source', models.OneToOneField(limit_choices_to={'category': 'INSTITUSI'}, on_delete=django.db.models.deletion.CASCADE, to='mustahik.DataSource')),
], ],
options={
'abstract': False,
},
), ),
] ]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment