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

13 lines
417 B
MySQL
Raw Permalink Normal View History

2020-06-06 18:29:20 +03:00
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