-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DE-1824: step 1 of 4 in renaming 'exists' field in ThirdPartyTranscri…
…ptCredentialsState to 'has_creds' (#191) * DE-1824: Add has_creds field to replace exists in ThirdPartyTranscriptCredentialsState, to eventually replace the 'exists' column. * Update version number. * Leave the API method signature unchanged. The 'exists' column name in ThirdPartyTranscriptCredentialsState is a reserved keyword in SQL, so this PR starts the process of renaming the field to 'has_creds' in its place. This is step 1, to add the field to replace it. Step 2 will be to use a migration to copy the contents of existing 'exists' to 'has_creds'. Step 3 will be to remove the logic that relies on 'exists', and step 4 will be to add a migration to remove the 'exists' column from the database. This will also require bumping the version of edx-val, and updating the other repo that use edx-val, i.e. edx-platform.
- Loading branch information
Showing
6 changed files
with
34 additions
and
6 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
20 changes: 20 additions & 0 deletions
20
edxval/migrations/0012_thirdpartytranscriptcredentialsstate_has_creds.py
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,20 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.25 on 2019-12-03 05:48 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('edxval', '0011_data__add_audio_mp3_profile'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='thirdpartytranscriptcredentialsstate', | ||
name='has_creds', | ||
field=models.BooleanField(default=False, help_text='Transcript credentials state'), | ||
), | ||
] |
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
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