DB error: 1364 Field 'path' doesn't have a default value #47
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: friendica/friendica-directory#47
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I had a look at the log of my directory instance and found a lot of DB errors because the field 'path' doesn't have a default value.
Directory 2.3.1 (but showing 2.3.0 at the page footer)
PHP 7.3
MariaDB 10.3
Database schema migrated to version 5
After a bit of grepping and trying to figure out if/when/how/why there should be data in the path column, I've removed the column. That's got me on to the next issue, I think. I will likely have to file a bug for the next bit.
I have the feeling something's off with the db schema presently?
It's entirely possible, what's the bug you are talking about?
Oh, heh! Perhaps I should have followed up on this one. The other issue is #48 - and I'm not sure that one has anything to do with the schema at all.
The solution is to add a default value to the field. I'm preparing a new database migration version that drops this field and it will fail if the field doesn't exist anymore.