Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Sistem Informasi Zakat
Sizakat 5.0 (Refactoring)
Sizakat Backend
Commits
daef951e
Commit
daef951e
authored
Jul 29, 2020
by
addffa
Browse files
[GREEN] update migrations file
parent
d022550d
Pipeline
#51204
failed with stage
in 9 minutes and 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
sizakat/mustahik/migrations/0001_initial.py
View file @
daef951e
# Generated by Django 3.0.7 on 2020-07-2
8 10:47
# Generated by Django 3.0.7 on 2020-07-2
9 08:26
import
django.core.validators
from
django.db
import
migrations
,
models
...
...
@@ -17,15 +17,8 @@ class Migration(migrations.Migration):
name
=
'DataSource'
,
fields
=
[
(
'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
)),
],
options
=
{
'unique_together'
:
{(
'pic_ktp'
,
'category'
)},
},
),
migrations
.
CreateModel
(
name
=
'Mustahik'
,
...
...
@@ -46,6 +39,10 @@ class Migration(migrations.Migration):
name
=
'DataSourceWarga'
,
fields
=
[
(
'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
)),
(
'regency'
,
models
.
CharField
(
max_length
=
50
)),
(
'sub_district'
,
models
.
CharField
(
max_length
=
50
)),
...
...
@@ -54,20 +51,34 @@ class Migration(migrations.Migration):
(
'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'
)),
],
options
=
{
'abstract'
:
False
,
},
),
migrations
.
CreateModel
(
name
=
'DataSourcePekerja'
,
fields
=
[
(
'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
)),
(
'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'
)),
],
options
=
{
'abstract'
:
False
,
},
),
migrations
.
CreateModel
(
name
=
'DataSourceInstitusi'
,
fields
=
[
(
'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
)),
(
'province'
,
models
.
CharField
(
max_length
=
50
)),
(
'regency'
,
models
.
CharField
(
max_length
=
50
)),
...
...
@@ -78,5 +89,8 @@ class Migration(migrations.Migration):
(
'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'
)),
],
options
=
{
'abstract'
:
False
,
},
),
]
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment