-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: Add missing Django Experiment Phase migrations (#1164)
* chore: Add missing Django Experiment Phase migrations and rename 'order' to 'index' * fix(test): Fix tests after renaming column
- Loading branch information
1 parent
3fe7373
commit 79282db
Showing
6 changed files
with
47 additions
and
16 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
31 changes: 31 additions & 0 deletions
31
...experiment/migrations/0040_alter_phase_options_remove_phase_order_phase_index_and_more.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,31 @@ | ||
# Generated by Django 4.2.11 on 2024-07-02 08:35 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('experiment', '0039_auto_20240625_1055'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='phase', | ||
options={'ordering': ['index']}, | ||
), | ||
migrations.RemoveField( | ||
model_name='phase', | ||
name='order', | ||
), | ||
migrations.AddField( | ||
model_name='phase', | ||
name='index', | ||
field=models.IntegerField(default=0, help_text='Index of the phase in the series. Lower numbers come first.'), | ||
), | ||
migrations.AlterField( | ||
model_name='phase', | ||
name='randomize', | ||
field=models.BooleanField(default=False, help_text='Randomize the order of the experiments in this phase.'), | ||
), | ||
] |
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
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