create table LogTipove ( "Tip" smallint not null, "Ime" char(30) not null, "Opisanie" varchar(60), primary key ("Tip") ) GO if not exists(select * from LogTipove where Tip = 0) then insert into "LogTipove" ("Tip", "Ime", "Opisanie") values(0, '-', 'Произволен текст'); end if; GO if not exists(select * from LogTipove where Tip = 1) then insert into "LogTipove" ("Tip", "Ime", "Opisanie") values(1, 'Акт. на потр. група', 'Активиране на потребителска група'); end if; GO if not exists(select * from LogTipove where Tip = 2) then insert into "LogTipove" ("Tip", "Ime", "Opisanie") values(2, 'Деакт. на потр. група', 'Деактивиране на потребителска група'); end if; GO if not exists(select * from LogTipove where Tip = 3) then insert into "LogTipove" ("Tip", "Ime", "Opisanie") values(3, 'Акт. на потребител', 'Активиране на потребител'); end if; GO if not exists(select * from LogTipove where Tip = 4) then insert into "LogTipove" ("Tip", "Ime", "Opisanie") values(4, 'Деакт. на потребител', 'Деактивиране на потребител'); end if; GO if not exists(select * from LogTipove where Tip = 5) then insert into "LogTipove" ("Tip", "Ime", "Opisanie") values(5, 'Смяна на парола на потребител', 'Смяна на парола на потребител'); end if; GO if not exists(select * from LogTipove where Tip = 6) then insert into "LogTipove" ("Tip", "Ime", "Opisanie") values(6, 'Смяна кратко име на потребител', 'Смяна кратко име на потребител'); end if; GO if not exists(select * from LogTipove where Tip = 7) then insert into "LogTipove" ("Tip", "Ime", "Opisanie") values(7, 'Смяна пълно име на потребител', 'Смяна пълно име на потребител'); end if; GO if not exists(select * from LogTipove where Tip = 8) then insert into "LogTipove" ("Tip", "Ime", "Opisanie") values(8, 'Добавяне на потребител', 'Добавяне на потребител'); end if; GO if not exists(select * from LogTipove where Tip = 9) then insert into "LogTipove" ("Tip", "Ime", "Opisanie") values(9, 'Изтриване на потребител', 'Изтриване на потребител'); end if; GO if not exists(select * from LogTipove where Tip = 10) then insert into "LogTipove" ("Tip", "Ime", "Opisanie") values(10, 'Добавяне на потр. група', 'Добавяне на потребителска група'); end if; GO if not exists(select * from LogTipove where Tip = 11) then insert into "LogTipove" ("Tip", "Ime", "Opisanie") values(11, 'Итриване на потр. група', 'Изтриване на потребителска група'); end if; GO if not exists(select * from LogTipove where Tip = 12) then insert into "LogTipove" ("Tip", "Ime", "Opisanie") values(12, 'Смяна на FP_SALE_NOM', 'Смяна на брояч за УНП'); end if; GO if not exists(select * from LogTipove where Tip = 13) then insert into "LogTipove" ("Tip", "Ime", "Opisanie") values(13, 'Преместване', 'Преместване на гост'); end if; GO if not exists(select * from LogTipove where Tip = 14) then insert into "LogTipove" ("Tip", "Ime", "Opisanie") values(14, 'Промяна престой', 'Промяна престой на гост'); end if; GO if not exists(select * from LogTipove where Tip = 15) then insert into "LogTipove" ("Tip", "Ime", "Opisanie") values(15, 'Промяна цена/ценоразпис', 'Промяна цена/ценоразпис на гост'); end if; GO