-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #315 from IFB-ElixirFr/coordinating-platform-to-unit
rename also in db "Coordinating platform" -> "Coordinating unit"
- Loading branch information
Showing
3 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Generated by Django 3.2.12 on 2022-06-01 11:30 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
def migrate(apps, schema_editor): | ||
apps.get_model("ifbcat_api", "Team").objects.filter(ifbMembership='Coordinating platform').update( | ||
ifbMembership='Coordinating unit' | ||
) | ||
|
||
|
||
def migrate_back(apps, schema_editor): | ||
apps.get_model("ifbcat_api", "Team").objects.filter(ifbMembership='Coordinating unit').update( | ||
ifbMembership='Coordinating platform' | ||
) | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('ifbcat_api', '0194_alter_event_maintainers_alter_training_maintainers'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='team', | ||
name='ifbMembership', | ||
field=models.CharField( | ||
choices=[ | ||
('Associated Team', 'Associated Team'), | ||
('Contributing platform', 'Contributing platform'), | ||
('Coordinating unit', 'Coordinating unit'), | ||
('Member platform', 'Member platform'), | ||
('None', 'None'), | ||
], | ||
default='None', | ||
help_text='Type of membership the bioinformatics team has to IFB.', | ||
max_length=255, | ||
), | ||
), | ||
migrations.RunPython(code=migrate, reverse_code=migrate_back), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters