mirror of
https://github.com/moodle/moodle.git
synced 2025-05-03 23:07:27 +02:00
Don't CREATE OR REPLACE TRIGGER but just CREATE it
(so we'll be able to detect duplicate name with an error instead of getting false success)
This commit is contained in:
parent
e88ecd1b08
commit
1d5071a57e
@ -145,7 +145,7 @@ class XMLDBoci8po extends XMLDBgenerator {
|
||||
|
||||
$trigger_name = $this->getNameForObject($xmldb_table->getName(), $xmldb_field->getName(), 'trg');
|
||||
|
||||
$trigger = "CREATE OR REPLACE TRIGGER " . $trigger_name;
|
||||
$trigger = "CREATE TRIGGER " . $trigger_name;
|
||||
$trigger.= "\n BEFORE INSERT";
|
||||
$trigger.= "\nON " . $this->getEncQuoted($this->prefix . $xmldb_table->getName());
|
||||
$trigger.= "\n FOR EACH ROW";
|
||||
|
Loading…
x
Reference in New Issue
Block a user