Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to generate players #58

Open
rfc5141 opened this issue Aug 30, 2018 · 6 comments
Open

Unable to generate players #58

rfc5141 opened this issue Aug 30, 2018 · 6 comments

Comments

@rfc5141
Copy link

rfc5141 commented Aug 30, 2018

When I try to generate players for a league I get this error
Database Query Error: Field 'vertrag_torpraemie' doesn't have a default value

If I try to add individual players to a club I get
Database Query Error: Field 'vertrag_gehalt' doesn't have a default value

I eventually found those files in the DB and tried other default values but nothing worked. Any advice please?

@dannyx93
Copy link

Reinstall

@Elessair
Copy link

hi. I have exact same issue, but no luck trying to solve. any advice?

@Elessair
Copy link

i read some documentatin and it is related to SQL Strict mode, already explained in these forums.
anyhow if there is an alternative solution would be nice.

@Elessair
Copy link

try this alternative solution:

in SQL... execute this: (under table _spieler)

ALTER TABLE _spieler MODIFY vertrag_torpraemie smallint(5) NOT NULL DEFAULT '0'

@nafbanap
Copy link
Contributor

nafbanap commented Apr 10, 2020

If you want to use the strict mode,you will probably have to do this for all lines of install/ws3_ddl_full.sql, where 'NOT NULL' is indicated and a default value as well as a auto increment command are missing.
After that, (re)install it.

@Elessair
Copy link

thanks for the explanation, is more clear and I think is better to reinstall
unfortunately i cannot change the strict mode because i'm not admin of the server where sql is running

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants