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
Create a new M2O field, make sure "Allow NULL value" is unchecked.
Inspect newly created M2O field, notice the checkbox is checked even though you have unchecked it before.
Uncheck it and save again. Results in an error.
Errors Shown
[INTERNAL_SERVER_ERROR] alter table mytable modify test int not null - ER_FK_COLUMN_CANNOT_CHANGE: Cannot change column 'test': used in a foreign key constraint 'mytable_test_foreign'
What version of Directus are you using?
9.5.1
What version of Node.js are you using?
16.14.0
What database are you using?
MariaDB 10.3.32
What browser are you using?
Chrome latest
What operating system are you using?
Windows 10
How are you deploying Directus?
Ubuntu Server 20.04, npm installation with a systemd service running it
The text was updated successfully, but these errors were encountered:
Preflight Checklist
Describe the Bug
After creating a new M2O field the "Allow NULL value" gets checked and cannot be unchecked.
Might be related to #11604 and #11510
To Reproduce
Errors Shown
[INTERNAL_SERVER_ERROR] alter table
mytable
modifytest
int not null - ER_FK_COLUMN_CANNOT_CHANGE: Cannot change column 'test': used in a foreign key constraint 'mytable_test_foreign'What version of Directus are you using?
9.5.1
What version of Node.js are you using?
16.14.0
What database are you using?
MariaDB 10.3.32
What browser are you using?
Chrome latest
What operating system are you using?
Windows 10
How are you deploying Directus?
Ubuntu Server 20.04, npm installation with a systemd service running it
The text was updated successfully, but these errors were encountered: