stfc2 / UI

User Interface
http://www.stfc.it
4 stars 5 forks source link

Build multipe Ships #51

Closed Saboti closed 3 years ago

Saboti commented 3 years ago

Hi,

I have a DB error if I try to build multiple Ships in a Build Order. For example I Try to build 2 Torpedos as Kazon:

ship_query: Could not call INSERT INTO in scheduler_shipbuild
Duplicate entry '3008' for key 'PRIMARY' (1062)
INSERT INTO scheduler_shipbuild (ship_type,planet_id,line_id,start_build,finish_build,unit_1,unit_2,unit_3,unit_4) VALUES ("16","3008","0","35547","35601","2","0","0","0")

Any help how I can Fix this?

Regards Saboti

Saboti commented 3 years ago

Fixed it. Had to drop the Table and recreate it. Somehow it was wrong generated with a Primary Key.