Skip to content

Fatal Error Upgrading #14

Closed Answered by NB-Core
ironmangary asked this question in Q&A
Sep 22, 2023 · 4 comments · 1 reply
Discussion options

You must be logged in to vote

For #1 yeah, it's a reserved function, defined in all_tables.php Line 1089
'function'=>array(
'name'=>'function', 'type'=>'varchar(50)'
),

It does it with ticks, not backticks. Maybe that helps. I think above should work.

This worked (testing server) for me, I did add 5 chars to it:
ALTER TABLE module_hooks CHANGE function function VARCHAR(55) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL;

For #2,

My bad, the key is set to "mfunction". I think I have renamed it in the key column.
Try renaming it to "function" in all_tables lines 1098ff:
'key-PRIMARY'=>array(
'name'=>'PRIMARY',
'type'=>'primary key',
'unique'=>'1',
'columns'=>'modulename,location,mfunction'
),

They key is defin…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ironmangary
Comment options

Answer selected by ironmangary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants