Skip to content

Commit

Permalink
Update to Django 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
timgraham committed Feb 1, 2024
1 parent 662de07 commit c9fe797
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: 'timgraham/django'
ref: 'snowflake-5.0.x'
ref: 'snowflake-5.1.x'
path: 'django_repo'
- name: Install system packages for Django's Python test dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion django_snowflake/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '5.0'
__version__ = '5.1a1'

# Check Django compatibility before other imports which may fail if the
# wrong version of Django is installed.
Expand Down
5 changes: 0 additions & 5 deletions django_snowflake/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,21 +185,16 @@ class DatabaseFeatures(BaseDatabaseFeatures):
'introspection.tests.IntrospectionTests.test_get_constraints_index_types',
'migrations.test_operations.OperationTests.test_add_index',
'migrations.test_operations.OperationTests.test_alter_field_with_index',
'migrations.test_operations.OperationTests.test_alter_index_together',
'migrations.test_operations.OperationTests.test_remove_index',
'migrations.test_operations.OperationTests.test_rename_index',
'migrations.test_operations.OperationTests.test_rename_index_unnamed_index',
'schema.tests.SchemaTests.test_add_remove_index',
'schema.tests.SchemaTests.test_alter_field_add_index_to_integerfield',
'schema.tests.SchemaTests.test_create_index_together',
'schema.tests.SchemaTests.test_index_together',
'schema.tests.SchemaTests.test_index_together_with_fk',
'schema.tests.SchemaTests.test_indexes',
'schema.tests.SchemaTests.test_order_index',
'schema.tests.SchemaTests.test_remove_constraints_capital_letters',
'schema.tests.SchemaTests.test_remove_db_index_doesnt_remove_custom_indexes',
'schema.tests.SchemaTests.test_remove_field_unique_does_not_remove_meta_constraints',
'schema.tests.SchemaTests.test_remove_index_together_does_not_remove_meta_indexes',
'schema.tests.SchemaTests.test_remove_unique_together_does_not_remove_meta_constraints',
'schema.tests.SchemaTests.test_text_field_with_db_index',
},
Expand Down
4 changes: 3 additions & 1 deletion django_snowflake/introspection.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ def get_table_description(self, cursor, table_name):
)
for (
name, data_type, kind, null, default, pk, unique_key, check,
expression, comment, policy_name,
# *_ ignores policy_name, privacy_domain and any future
# additions to columns in DESCRIBE TABLE output.
expression, comment, *_
) in table_info
]

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ long_description_content_type = text/markdown
classifiers =
Development Status :: 5 - Production/Stable
Framework :: Django
Framework :: Django :: 5.0
Framework :: Django :: 5.1
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Programming Language :: Python
Expand Down

0 comments on commit c9fe797

Please sign in to comment.