Karaage-Cluster/karaage — Issue #156: error running tests
Author: brianmay
Created: 2012-02-23 23:58:45+00:00
State: open

No idea what is happening here:

```
Failed to install custom SQL for machines.MachineCategory model: PRIMARY KEY must be unique
```

Work around:

```diff
diff --git a/karaage/machines/sql/machinecategory.sql b/karaage/machines/sql/machinecategory.sql
index 5ea8340..3fb970d 100644
--- a/karaage/machines/sql/machinecategory.sql
+++ b/karaage/machines/sql/machinecategory.sql
@@ -1 +1 @@
-INSERT INTO machine_category (id, name, datastore) VALUES (1, 'Default', 'karaage.datastores.openldap_datastore');
+INSERT INTO machine_category (id, name, datastore) VALUES (2, 'Default', 'karaage.datastores.openldap_datastore');
```

With this change, there are no errors. So something else must be populating the database somewhere.