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

DB Inconsistencies #27

Open
nearwood opened this issue Oct 31, 2019 · 0 comments
Open

DB Inconsistencies #27

nearwood opened this issue Oct 31, 2019 · 0 comments

Comments

@nearwood
Copy link
Owner

Uploaded files were throwing errors about nullable columns. Prod doesn't seem to have this issue but a contributor did and I did upon starting up the project on my local.

$st = $this->db->prepare("INSERT INTO metadata (url,msq,engine,fileFormat,signature,uploadDate) VALUES (:url, :id, :engine, '4.0', 'unknown', :uploaded)");

The insert statement does not insert all metadata fields, but this works in prod somehow. Some DB update probably changed default behavior. Solution may be to just make the columns nullable. Yeah, that's real easy than trying to track this down.

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

1 participant