feat: sync AI compose and ChatBot features
This commit is contained in:
parent
35e5d38f4d
commit
b7269b135f
75 changed files with 5426 additions and 123 deletions
19
deploy/migrations/0047_chatbot_service_bot.down.sql
Normal file
19
deploy/migrations/0047_chatbot_service_bot.down.sql
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
DELETE FROM public.read_model_versions
|
||||
WHERE owner_user_id = 1250000007
|
||||
AND peer_type = 'user'
|
||||
AND peer_id = 1250000007
|
||||
AND model IN ('contact_account', 'channel_active_memberships');
|
||||
|
||||
DELETE FROM public.peer_usernames
|
||||
WHERE username_lower = 'chatbot'
|
||||
AND peer_type = 'user'
|
||||
AND peer_id = 1250000007;
|
||||
|
||||
DELETE FROM public.bots
|
||||
WHERE bot_user_id = 1250000007
|
||||
AND owner_user_id = 1250000007;
|
||||
|
||||
DELETE FROM public.users
|
||||
WHERE id = 1250000007
|
||||
AND username = 'ChatBot'
|
||||
AND is_bot = true;
|
||||
Loading…
Add table
Add a link
Reference in a new issue