1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

First stab at MySQL support

This commit is contained in:
Andrew Godwin
2012-08-18 12:29:31 +01:00
parent 60873ea2ad
commit cab044c66c
5 changed files with 62 additions and 4 deletions

View File

@@ -167,7 +167,6 @@ class SchemaTests(TestCase):
# Ensure the field is right to begin with
columns = self.column_classes(Author)
self.assertEqual(columns['name'][0], "CharField")
self.assertEqual(columns['name'][1][3], 255)
self.assertEqual(columns['name'][1][6], False)
# Alter the name field to a TextField
new_field = TextField(null=True)
@@ -197,7 +196,6 @@ class SchemaTests(TestCase):
# Ensure the field is right to begin with
columns = self.column_classes(Author)
self.assertEqual(columns['name'][0], "CharField")
self.assertEqual(columns['name'][1][3], 255)
self.assertNotIn("display_name", columns)
# Alter the name field's name
new_field = CharField(max_length=254)
@@ -213,7 +211,6 @@ class SchemaTests(TestCase):
# Ensure the field is right afterwards
columns = self.column_classes(Author)
self.assertEqual(columns['display_name'][0], "CharField")
self.assertEqual(columns['display_name'][1][3], 254)
self.assertNotIn("name", columns)
def test_m2m(self):