13 lines
546 B
Plaintext
13 lines
546 B
Plaintext
CREATE MIGRATION m1zlzfafekdlqfpf7zcj4taysmccydrzclqrkxjogkermv4qcn4wia
|
|
ONTO m1xiilci36z6h4kris43l3gb6w63y7lbql3ismz7coxobr6r2yhz6a
|
|
{
|
|
CREATE REQUIRED GLOBAL default::currentConversationID -> std::str {
|
|
SET default := '';
|
|
};
|
|
ALTER GLOBAL default::currentConversation USING (std::assert_single((SELECT
|
|
default::Conversation
|
|
FILTER
|
|
((.user = GLOBAL default::currentUser) AND ((.id = <std::uuid>GLOBAL default::currentConversationID) OR ((GLOBAL default::currentConversationID = '') AND (.name = 'Default'))))
|
|
)));
|
|
};
|