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(` await db.sequelize.query(`
CREATE TRIGGER last_name_changes CREATE TRIGGER last_name_changes
BEFORE UPDATE BEFORE UPDATE
ON ${app.db.getCollection('users').model.tableName} ON ${app.db.getCollection('users').quotedTableName()}
FOR EACH ROW FOR EACH ROW
EXECUTE PROCEDURE trigger_function(); EXECUTE PROCEDURE trigger_function();
`); `);