You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All over, there is usage of 0 where it should be NULL (at least DB Schema wise), examples:
Usage of course_categories->parent = 0 to symol top level category
Usage of user = 0 when there is no applicable user
Usage of grouping id = 0 instead on NULL (in course_modules for examaple)
This doesn't work with foreign keys, unless there would be category 0 and user with id=0,
a simplest solution, closer to the current situation, is to use NULL's when we mean 'no value'
This patch replaces the usage of 0 by use of NULL where appropriate
All over, there is usage of 0 where it should be NULL (at least DB Schema wise), examples:
This doesn't work with foreign keys, unless there would be category 0 and user with id=0,
a simplest solution, closer to the current situation, is to use NULL's when we mean 'no value'
This patch replaces the usage of 0 by use of NULL where appropriate
Dedicated branch: MOODLE_29_FOREIGNKEY_USE_NULL_4_ZERO
The text was updated successfully, but these errors were encountered: