-
Notifications
You must be signed in to change notification settings - Fork 25
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 #19 from tbicr/dj30
django 3.0 support
- Loading branch information
Showing
21 changed files
with
497 additions
and
367 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 |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '0.7' | ||
__version__ = '0.8' |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Empty file.
37 changes: 37 additions & 0 deletions
37
tests/apps/good_flow_app_concurrently/migrations/0001_initial.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,37 @@ | ||
# Generated by Django 3.1 on 2019-09-21 20:09 | ||
|
||
import django.contrib.postgres.search | ||
from django.db import migrations, models | ||
|
||
|
||
def insert_objects(apps, schema_editor): | ||
db_alias = schema_editor.connection.alias | ||
TestTable = apps.get_model('good_flow_app_concurrently', 'TestTable') | ||
TestTable.objects.using(db_alias).create(test_field_int=1) | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='RelatedTestTable', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
], | ||
), | ||
migrations.CreateModel( | ||
name='TestTable', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('test_field_int', models.IntegerField()), | ||
('test_field_str', models.CharField(max_length=10)), | ||
('test_field_tsv', django.contrib.postgres.search.SearchVectorField()), | ||
], | ||
), | ||
migrations.RunPython(insert_objects, migrations.RunPython.noop), | ||
] |
18 changes: 18 additions & 0 deletions
18
tests/apps/good_flow_app_concurrently/migrations/0002_auto_20191210_2147.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,18 @@ | ||
# Generated by Django 3.0a1 on 2019-12-10 21:47 | ||
from django.contrib.postgres.operations import AddIndexConcurrently | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
atomic = False | ||
dependencies = [ | ||
('good_flow_app_concurrently', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
AddIndexConcurrently( | ||
model_name='testtable', | ||
index=models.Index(fields=['test_field_int'], name='good_flow_a_test_fi_0b7e6f_idx'), | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
tests/apps/good_flow_app_concurrently/migrations/0003_auto_20191210_2148.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,18 @@ | ||
# Generated by Django 3.0a1 on 2019-12-10 21:48 | ||
from django.contrib.postgres.operations import RemoveIndexConcurrently | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
atomic = False | ||
dependencies = [ | ||
('good_flow_app_concurrently', '0002_auto_20191210_2147'), | ||
] | ||
|
||
operations = [ | ||
RemoveIndexConcurrently( | ||
model_name='testtable', | ||
name='good_flow_a_test_fi_0b7e6f_idx', | ||
), | ||
] |
Empty file.
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,12 @@ | ||
from django.contrib.postgres.search import SearchVectorField | ||
from django.db import models | ||
|
||
|
||
class TestTable(models.Model): | ||
test_field_int = models.IntegerField() | ||
test_field_str = models.CharField(max_length=10) | ||
test_field_tsv = SearchVectorField() | ||
|
||
|
||
class RelatedTestTable(models.Model): | ||
pass |
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
Oops, something went wrong.