the-marenga / sf-server

A Shakes & Fidget server in the very early stages of developement
3 stars 1 forks source link

AccountCreate fails at character insertion into DB #4

Closed GutZuFusss closed 2 days ago

GutZuFusss commented 3 days ago

Also habe a fix for this, equipment can't be null:

Maybe I am getting something wrong myself tho :o

Error inserting character: Database(PgDatabaseError { severity: Error, code: "23502", message: "null value in column \"equipment\" of relation \"character\" violates not-null constraint", detail: Some("Failing row contains (4, Schlucker55, 8, 4, 1, 1, 0, 300, 100, 30, 4, 7, 8, 15, 4, 4, 4, null, , 0, null, 0, null)."), hint: None, position: None, where: None, schema: Some("public"), table: Some("character"), column: Some("equipment"), data_type: None, constraint: None, file: Some("execMain.c"), line: Some(1987), routine: Some("ExecConstraints") })
the-marenga commented 2 days ago

Fixed, server now uses sqlite and an adjusted db schema