Skip to content

Commit

Permalink
Updated migration to use boolean values
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Thornton-Harvard committed Mar 5, 2018
1 parent 0c58121 commit 96d3d81
Showing 1 changed file with 63 additions and 63 deletions.
126 changes: 63 additions & 63 deletions manage_people/migrations/0002_mp_school_allowed_roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,69 +4,69 @@
from django.db import migrations, models,transaction

SCHOOL_ALOWED_ROLE_DATA = [
('gse', 9, 'N'),
('gse', 10, 'Y'),
('gse', 11, 'N'),
('gse', 12, 'N'),
('gse', 15, 'Y'),
('colgsas', 9, 'N'),
('colgsas', 5, 'N'),
('colgsas', 7, 'N'),
('colgsas', 10, 'Y'),
('colgsas', 11, 'N'),
('gsd', 5, 'N'),
('gsd', 11, 'N'),
('gsd', 12, 'N'),
('gsd', 10, 'Y'),
('hds', 9, 'N'),
('hds', 5, 'N'),
('hds', 7, 'N'),
('hds', 10, 'Y'),
('hds', 11, 'N'),
('hds', 12, 'N'),
('ext', 9, 'N'),
('ext', 5, 'N'),
('ext', 7, 'N'),
('ext', 10, 'Y'),
('ext', 11, 'N'),
('sum', 9, 'N'),
('sum', 5, 'N'),
('sum', 7, 'N'),
('sum', 10, 'Y'),
('sum', 11, 'N'),
('hks', 5, 'N'),
('hks', 10, 'Y'),
('hls', 5, 'N'),
('hls', 7, 'N'),
('hls', 10, 'Y'),
('hls', 11, 'N'),
('hls', 12, 'N'),
('hlsexeced', 5, 'N'),
('hlsexeced', 7, 'N'),
('hlsexeced', 9, 'N'),
('hlsexeced', 10, 'Y'),
('hlsexeced', 11, 'N'),
('hlsexeced', 12, 'N'),
('hlsexeced', 0, 'N'),
('hms', 9, 'N'),
('hms', 5, 'N'),
('hms', 7, 'N'),
('hms', 10, 'Y'),
('hsdm', 9, 'N'),
('hsdm', 5, 'N'),
('hsdm', 7, 'N'),
('hsdm', 10, 'Y'),
('hsph', 9, 'N'),
('hsph', 5, 'N'),
('hsph', 7, 'N'),
('hsph', 10, 'Y'),
('hsph', 11, 'Y'),
('hsph', 12, 'Y'),
('hsph', 15, 'Y'),
('hilr', 9, 'N'),
('hilr', 5, 'N'),
('hilr', 7, 'N'),
('hilr', 10, 'Y')
('gse', 9, False),
('gse', 10, True),
('gse', 11, False),
('gse', 12, False),
('gse', 15, True),
('colgsas', 9, False),
('colgsas', 5, False),
('colgsas', 7, False),
('colgsas', 10, True),
('colgsas', 11, False),
('gsd', 5, False),
('gsd', 11, False),
('gsd', 12, False),
('gsd', 10, True),
('hds', 9, False),
('hds', 5, False),
('hds', 7, False),
('hds', 10, True),
('hds', 11, False),
('hds', 12, False),
('ext', 9, False),
('ext', 5, False),
('ext', 7, False),
('ext', 10, True),
('ext', 11, False),
('sum', 9, False),
('sum', 5, False),
('sum', 7, False),
('sum', 10, True),
('sum', 11, False),
('hks', 5, False),
('hks', 10, True),
('hls', 5, False),
('hls', 7, False),
('hls', 10, True),
('hls', 11, False),
('hls', 12, False),
('hlsexeced', 5, False),
('hlsexeced', 7, False),
('hlsexeced', 9, False),
('hlsexeced', 10, True),
('hlsexeced', 11, False),
('hlsexeced', 12, False),
('hlsexeced', 0, False),
('hms', 9, False),
('hms', 5, False),
('hms', 7, False),
('hms', 10, True),
('hsdm', 9, False),
('hsdm', 5, False),
('hsdm', 7, False),
('hsdm', 10, True),
('hsph', 9, False),
('hsph', 5, False),
('hsph', 7, False),
('hsph', 10, True),
('hsph', 11, True),
('hsph', 12, True),
('hsph', 15, True),
('hilr', 9, False),
('hilr', 5, False),
('hilr', 7, False),
('hilr', 10, True)
]

def populate_school_allowed_role(apps, schema_editor):
Expand Down

0 comments on commit 96d3d81

Please sign in to comment.