Trigger.
This commit is contained in:
parent
3f8a2602f5
commit
74d74fec90
@ -199,11 +199,11 @@ def get_db():
|
||||
)
|
||||
db.query("DROP VIEW IF EXISTS rants_of_user")
|
||||
db.query(
|
||||
"CREATE VIEW rants_of_user as SELECT user_username as username, GROUP_CONCAT(text) as text FROM rants"
|
||||
"CREATE VIEW rants_of_user as SELECT user_username as username, GROUP_CONCAT(text) as text FROM rants GROUP BY username"
|
||||
)
|
||||
db.query("DROP VIEW IF EXISTS posts_of_user")
|
||||
db.query(
|
||||
"CREATE VIEW posts_of_user AS SELECT user_username as username, GROUP_CONCAT(body) as text FROM comments"
|
||||
"CREATE VIEW posts_of_user AS SELECT user_username as username, GROUP_CONCAT(body) as text FROM comments GROUP BY username"
|
||||
)
|
||||
db.query("DROP VIEW IF EXISTS contributions_extended_ranked")
|
||||
db.query(
|
||||
|
Loading…
Reference in New Issue
Block a user