The only significant changes to the smp_project table where made in:If you installed an earlier version, maybe the table primary key is still "id" rather than "id_project"?
We try to stick to cross-db compatible types in Trac: text, int, int64. TracSimpleMultiProject uses varchar, which on quick look might be compatible on all 3 supported databases, but I'm not certain.
It seems that the author of the plugin has not tested creating a
project with PostgreSQL on applying r11785.
Index: simplemultiproject/model.py
===================================================================
--- simplemultiproject/model.py (revision 18015)
+++ simplemultiproject/model.py (working copy)
@@ -137,7 +137,7 @@
""", (self.id, self.name, _to_null(self.summary),
_to_null(self.description), _to_null(self.closed),
'YES' if self.restricted else None))
- self.id = db.get_last_id(cursor, 'smp_project')
+ self.id = db.get_last_id(cursor, 'smp_project', 'id_project')
# keep internal ticket custom field data up to date
self.refresh_ticket_custom_list()
Please try the proposed patch in my mail.
If the issue is not fixed, please provide results of \ds <schema.>
using psql shell.
--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/c1536467-fb98-4ef5-9221-db1e1e1785a4n%40googlegroups.com.
Please provide list of sequence objects in your schema.
I haven't had time to look, but note the sequence in your schema is smp_project_id_project_seq and the patch seems like it should fix the issue:Line 207 in smp_model.py may need the same change:Do you get the same error with the patch?