parent
4f70147381
commit
80b2f69061
1 changed files with 4 additions and 3 deletions
|
|
@ -61,7 +61,7 @@ SQL
|
||||||
SELECT '%EMAIL%','%NAME%','%INVITATION_LINK%'
|
SELECT '%EMAIL%','%NAME%','%INVITATION_LINK%'
|
||||||
UNION
|
UNION
|
||||||
SELECT `users`.email AS '%EMAIL%',
|
SELECT `users`.email AS '%EMAIL%',
|
||||||
'Friend of Diaspora*' AS '%NAME%',
|
'friend of Diaspora*' AS '%NAME%',
|
||||||
CONCAT( 'https://joindiaspora.com/users/invitation/accept?invitation_token=', `users`.invitation_token) AS '%INVITATION_LINK%'
|
CONCAT( 'https://joindiaspora.com/users/invitation/accept?invitation_token=', `users`.invitation_token) AS '%INVITATION_LINK%'
|
||||||
#{self.output_syntax(file)}
|
#{self.output_syntax(file)}
|
||||||
FROM `users`
|
FROM `users`
|
||||||
|
|
@ -91,7 +91,7 @@ SQL
|
||||||
SELECT '%EMAIL%','%NAME%','%INVITATION_LINK%'
|
SELECT '%EMAIL%','%NAME%','%INVITATION_LINK%'
|
||||||
UNION
|
UNION
|
||||||
SELECT `users`.email AS '%EMAIL%',
|
SELECT `users`.email AS '%EMAIL%',
|
||||||
'Friend of Diaspora*' AS '%NAME%',
|
'friend of Diaspora*' AS '%NAME%',
|
||||||
CONCAT( 'https://joindiaspora.com/users/invitation/accept?invitation_token=', `users`.invitation_token) AS '%INVITATION_LINK%'
|
CONCAT( 'https://joindiaspora.com/users/invitation/accept?invitation_token=', `users`.invitation_token) AS '%INVITATION_LINK%'
|
||||||
#{self.output_syntax(file)}
|
#{self.output_syntax(file)}
|
||||||
FROM `users`
|
FROM `users`
|
||||||
|
|
@ -110,7 +110,8 @@ SQL
|
||||||
UNION
|
UNION
|
||||||
SELECT `users`.email AS '%EMAIL%',
|
SELECT `users`.email AS '%EMAIL%',
|
||||||
IF( `profiles`.full_name IS NOT NULL AND `profiles`.full_name != "",
|
IF( `profiles`.full_name IS NOT NULL AND `profiles`.full_name != "",
|
||||||
`profiles`.full_name, 'Friend of Diaspora*') AS '%NAME%',
|
`profiles`.full_name, 'friend of Diaspora*') AS '%NAME%',
|
||||||
|
IF(`users`.invitation_token, CONCAT( 'https://joindiaspora.com/users/invitation/accept?invitation_token=', `users`.invitation_token) ,NULL) AS '%INVITATION_LINK%'
|
||||||
#{self.output_syntax(file)}
|
#{self.output_syntax(file)}
|
||||||
FROM `users`
|
FROM `users`
|
||||||
JOIN `people` ON `users`.id = `people`.owner_id JOIN `profiles` ON `people`.id = `profiles`.person_id
|
JOIN `people` ON `users`.id = `people`.owner_id JOIN `profiles` ON `people`.id = `profiles`.person_id
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue