-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reinstate migrations for upgrading from 1.x to 2.0
- Loading branch information
Showing
5 changed files
with
91 additions
and
30 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
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,15 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import models, migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("django_dbq", "0001_initial"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions(name="job", options={"ordering": ["created"]},), | ||
] |
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,23 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11 on 2018-07-13 10:00 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("django_dbq", "0002_auto_20151016_1027"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name="job", options={"ordering": ["-priority", "created"]}, | ||
), | ||
migrations.AddField( | ||
model_name="job", | ||
name="priority", | ||
field=models.SmallIntegerField(db_index=True, default=0), | ||
), | ||
] |
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,32 @@ | ||
# Generated by Django 3.2rc1 on 2021-08-18 02:47 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("django_dbq", "0003_auto_20180713_1000"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="job", | ||
name="state", | ||
field=models.CharField( | ||
choices=[ | ||
("NEW", "New"), | ||
("READY", "Ready"), | ||
("PROCESSING", "Processing"), | ||
("FAILED", "Failed"), | ||
("COMPLETE", "Complete"), | ||
], | ||
db_index=True, | ||
default="NEW", | ||
max_length=20, | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="job", name="workspace", field=models.JSONField(null=True), | ||
), | ||
] |