mirror of
https://github.com/django/django.git
synced 2025-11-01 12:25:37 +00:00
Oracle schema backend, passes most tests and is pretty complete.
This commit is contained in:
parent
44f907dd98
commit
157604a87f
5 changed files with 247 additions and 9 deletions
|
|
@ -167,7 +167,7 @@ class SchemaTests(TransactionTestCase):
|
|||
# Ensure the field is right to begin with
|
||||
columns = self.column_classes(Author)
|
||||
self.assertEqual(columns['name'][0], "CharField")
|
||||
self.assertEqual(columns['name'][1][6], False)
|
||||
self.assertEqual(bool(columns['name'][1][6]), bool(connection.features.interprets_empty_strings_as_nulls))
|
||||
# Alter the name field to a TextField
|
||||
new_field = TextField(null=True)
|
||||
new_field.set_attributes_from_name("name")
|
||||
|
|
@ -195,7 +195,7 @@ class SchemaTests(TransactionTestCase):
|
|||
# Ensure the field is right afterwards
|
||||
columns = self.column_classes(Author)
|
||||
self.assertEqual(columns['name'][0], "TextField")
|
||||
self.assertEqual(columns['name'][1][6], False)
|
||||
self.assertEqual(columns['name'][1][6], bool(connection.features.interprets_empty_strings_as_nulls))
|
||||
|
||||
def test_rename(self):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue