salix/db/install/changes/17-mailUser.sql

12 lines
301 B
MySQL
Raw Normal View History

2019-03-15 11:58:26 +00:00
CREATE
ALGORITHM = UNDEFINED
DEFINER = `root`@`%`
SQL SECURITY DEFINER
VIEW `account`.`emailUser` AS
SELECT
`u`.`id` AS `userFk`,
CONCAT(`u`.`name`, '@', `mc`.`domain`) AS `email`
FROM
(`account`.`user` `u`
JOIN `account`.`mailConfig` `mc`)