When executing Trigger compatibility mode, running occ maintenance repair gives error when creating the trigger
occ maintenance:repair
- WARNING: Failed to create filecache trigger (compatibility mode will be used): An exception occurred while executing a query: SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "TRIGGER"
LINE 1: CREATE OR REPLACE TRIGGER memories_fcu_trg
Postgresql Logs
nextcloud@nextcloud ERROR: syntax error at or near "TRIGGER" at character 19
nextcloud@nextcloud STATEMENT: CREATE OR REPLACE TRIGGER memories_fcu_trg
AFTER UPDATE ON oc_filecache
FOR EACH ROW
EXECUTE FUNCTION memories_fcu_fun();
When executing Trigger compatibility mode, running
occ maintenance repair
gives error when creating the triggerPostgresql Logs
This line does not account for older version of postgresql that does not support the syntax
CREATE OR REPLACE TRIGGER
but onlyCREATE TRIGGER
: https://github.com/pulsejet/memories/blob/01eb88939978cdcb0a7f74138005421b7afa18e4/lib/Db/AddMissingIndices.php#L121https://memories.gallery/troubleshooting/#trigger-compatibility-mode
Software Versions