Commits

Andrew Godwin committed dbd03b0

Exclude the implicit primary key test from everything bar SQLite.

Comments (0)

Files changed (2)

south/db/generic.py

         else:
             sqls.append(('ALTER COLUMN %s DROP DEFAULT' % (self.quote_name(name),), []))
 
-
         # Next, nullity
         if field.null:
             sqls.append((self.alter_string_set_null % params, []))

south/tests/db.py

         """
         Tests changing primary key implicitly.
         """
+        
+        # This is ONLY important for SQLite. It's not a feature we support, but
+        # not implementing it means SQLite fails (due to the table-copying weirdness).
+        if db.backend_name != "sqlite3":
+            return
+        
         db.create_table("test_pki", [
             ('id', models.IntegerField(primary_key=True)),
             ('new_pkey', models.IntegerField()),