Files
fpdb/pyfpdb
Mika Bostrom 6f536d29e7 Fix import on PostgreSQL
Database.py : fillDefaultData()

Remove manual 'id' from INSERT command. In database schema,
TourneyTypes.id is a primary key and thus autoincrement. In postgres,
autoincrements are implemented as sequences - inserting a value
"manually" bypasses the sequence generation, which resulted in a
remarkably weird error.

Namely, upon the first hand to import, the insert fails due to primary
key violation. The default value from an unused sequence is 1, but a
row with such an id already exists.

The solution is to create the single row of default data values with
unspecified TourneyTypes.id, hence allowing postgres to generate the
correct id from the sequence. This way the import works again.
2009-09-24 07:08:32 +03:00
..
2009-09-24 07:08:32 +03:00
2009-09-23 23:44:57 +03:00
2009-09-15 22:04:37 -05:00
2009-09-09 21:04:38 -05:00
2009-08-28 18:24:51 +01:00
2009-08-12 11:18:42 +04:00
2009-09-03 02:46:22 -05:00
2009-08-21 00:48:26 -05:00
2009-08-21 00:48:26 -05:00
2009-09-04 02:01:41 +02:00