fix: test table name

This commit is contained in:
Chareice 2023-02-15 12:13:32 +08:00
parent 05243d03ca
commit d232a7bb50

View File

@ -148,7 +148,7 @@ $$`);
await db.sequelize.query(`
CREATE TRIGGER last_name_changes
BEFORE UPDATE
ON ${app.db.getCollection('users').model.tableName}
ON ${app.db.getCollection('users').quotedTableName()}
FOR EACH ROW
EXECUTE PROCEDURE trigger_function();
`);