chatbot/Chatbot.Api.Domain.Data/Scripts/02.Insert into MessageSourc...

13 lines
417 B
Transact-SQL

if not exists (select top 1 1 from MessageSource where MessageSourceCode like 'BOT')
begin
insert into MessageSource (MessageSourceId, MessageSourceCode, MessageSourceName)
values (1, 'BOT', 'Bot')
end
go
if not exists (select top 1 1 from MessageSource where MessageSourceCode like 'USER')
begin
insert into MessageSource (MessageSourceId, MessageSourceCode, MessageSourceName)
values (2, 'USER', 'User')
end
go