Skip to content

ResourceStorage: Fix Oracle SQL issue: primary key can't be nullable - #12065

Open
lscharmer wants to merge 1 commit into
ILIAS-eLearning:trunkfrom
lscharmer:hotfix/rs-mysql-index
Open

ResourceStorage: Fix Oracle SQL issue: primary key can't be nullable#12065
lscharmer wants to merge 1 commit into
ILIAS-eLearning:trunkfrom
lscharmer:hotfix/rs-mysql-index

Conversation

@lscharmer

Copy link
Copy Markdown
Contributor

This PR fixes an Oracle MySQL error. The UpdateStep introduced in #11718 falsely included 'notnull' => false, which causes an error on Oracle MySQL databases, as primary keys cannot be nullable.

 Database update steps in ILIAS\ResourceStorage\Setup\DB\UpdateStepsV12.... [FAILED]
 [ERROR] SQLSTATE[42000]: Syntax error or access violation: 1171 All parts of a PRIMARY KEY must be NOT NULL; if you
         need NULL in a key, use UNIQUE instead

@lscharmer
lscharmer requested a review from chfsx September 14, 2026 13:39
@lscharmer lscharmer added bugfix php Pull requests that update Php code labels Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants