Погледнах, не виждам нищо необичайно. Ето това са тригерите в базата в момента:
CREATE TRIGGER ThreadsAI after insert on Threads begin update Counters set val = val + 1 where id = 'threads'; end
CREATE TRIGGER ThreadsAU after update of Slug, Caption, UserID, Pinned on Threads begin insert or ignore into ThreadsHistory(threadid, Slug, Caption, LastChanged, Pinned) values ( old.id, old.Slug, old.Caption, old.LastChanged, old.Pinned ); end
CREATE TRIGGER ThreadsAD after delete on Threads begin insert or ignore into ThreadsHistory(threadid, Slug, Caption, LastChanged, Pinned) values ( old.id, old.Slug, old.Caption, old.LastChanged, old.Pinned ); update Counters set val = val - 1 where id = 'threads'; end
CREATE TRIGGER PostsAU AFTER UPDATE OF Content, editTime, editUserID, threadID, format ON Posts BEGIN update PostFTS set rowid = new.id, Content = new.Content, Caption = (select Caption from Threads where id=new.threadid), slug = (select slug from Threads where id = new.threadid), user = ifnull((select nick from users where id = new.userid), new.anon), tags = (select group_concat(TT.Tag, ", ") from ThreadTags TT where TT.threadID = new.threadid) where rowid = old.id; insert or ignore into PostsHistory(postID, threadID, userID, anon, postTime, editUserID, editTime, format, Content) values ( old.id, old.threadID, old.userID, old.anon, old.postTime, old.editUserID, old.editTime, old.format, old.Content ); update Threads set PostCount = PostCount - 1 where id = old.threadID; update Threads set PostCount = PostCount + 1 where id = new.threadID; update Tags set PostCnt = PostCnt - 1 where tags.tag in (select tag from threadtags where threadid = old.threadid); update Tags set PostCnt = PostCnt + 1 where tags.tag in (select tag from threadtags where threadid = new.threadid); END
CREATE TRIGGER LimitedAccessThreadsAI after insert on LimitedAccessThreads begin update LimitedAccessThreads set LastChanged = (select LastChanged from threads where id = new.threadid); end
CREATE TRIGGER ThreadTagsAI AFTER INSERT ON ThreadTags BEGIN update Tags set ThreadCnt = ThreadCnt + 1 where tag = new.tag; END
CREATE TRIGGER ThreadTagsAD AFTER DELETE ON ThreadTags BEGIN update Tags set ThreadCnt = ThreadCnt - 1 where tag = old.tag; END
CREATE TRIGGER ThreadTagsAU AFTER UPDATE OF Tag, Limited ON ThreadTags BEGIN update Tags set ThreadCnt = ThreadCnt - 1 where tag = old.tag; update Tags set ThreadCnt = ThreadCnt + 1 where tag = new.tag; END
CREATE TRIGGER ThreadsAUtt AFTER UPDATE OF LastChanged, Pinned, Limited ON Threads BEGIN update threadtags set LastChanged = new.LastChanged, Pinned = new.Pinned, Limited = new.Limited where threadid = new.id; update LimitedAccessThreads set LastChanged = new.LastChanged where threadid = new.id; END
CREATE TRIGGER AttachmentsAI after insert on Attachments begin insert into AttachCnt(fileid, count) VALUES (new.id, 0); end
CREATE TRIGGER ThreadVotersAU after update on ThreadVoters begin
update Threads set Rating = Rating - old.Vote + new.Vote where id = new.threadID;
end
CREATE TRIGGER ThreadVotersAD after delete on ThreadVoters begin
update Threads set Rating = Rating - old.Vote where id = old.threadID;
end
CREATE TRIGGER ThreadVotersAI after insert on ThreadVoters begin
update Threads set Rating = Rating + new.Vote where id = new.threadID;
end
CREATE TRIGGER PostsAI AFTER INSERT ON Posts BEGIN
insert into PostFTS(rowid, Content, Caption, slug, user, tags) VALUES (
new.id,
new.Content,
(select Caption from Threads where id=new.threadid),
(select slug from Threads where id = new.threadid),
ifnull((select nick from users where id = new.userid), new.anon),
(select group_concat(TT.Tag, ", ") from ThreadTags TT where TT.threadID = new.threadid)
);
insert into PostCNT(postid,count) VALUES (new.id, 0);
insert or ignore into ThreadPosters(firstPost, threadID, userID) values (new.id, new.threadID, new.userID);
update Users set PostCount = PostCount + 1, LastPostTime = strftime('%s', 'now'), PostInterval = max(0, PostInterval + PostIntervalInc) where Users.id = new.UserID;
update Threads set PostCount = PostCount + 1 where id = new.threadID;
update Counters set val = val + 1 where id = 'posts';
update Tags set PostCnt = PostCnt + 1 where Tags.tag in (select tag from ThreadTags where ThreadID = new.ThreadID);
END
CREATE TRIGGER PostsAD AFTER DELETE ON Posts BEGIN
delete from PostFTS where rowid = old.id;
delete from ThreadPosters where threadid = old.threadid and userid = old.userid;
insert or ignore into ThreadPosters(firstPost, threadID, userID) select min(id), threadid, userid from posts where threadid = old.threadid and userid = old.userid;
update Users set PostCount = PostCount - 1 where Users.id = old.UserID;
update Threads set PostCount = PostCount - 1, LastChanged = (select max(P.postTime) from posts as P where P.threadID = old.threadID) where id = old.threadID;
update Counters set val = val - 1 where id = 'posts';
update Tags set PostCnt = PostCnt - 1 where Tags.tag in (select tag from threadtags where threadid = old.threadid);
insert or ignore into PostsHistory(postID, threadID, userID, anon, postTime, editUserID, editTime, format, Content) values (
old.id,
old.threadID,
old.userID,
old.anon,
old.postTime,
old.editUserID,
old.editTime,
old.format,
old.Content
);
END
Rabin
Създадено на 08.07.2024, видяно: 239 пъти. #110595
Демокрация, всеки вярва в квото го влече. Единствената борба на лайното емигрантско е да превърне тука в кочина, какъвто е той самия, на външен вид и по душа. Няма как да има съвест да се оттегли, след като направи всички възможни мизерии.
Rabin
Създадено на 08.07.2024, видяно: 230 пъти. #110597
Първо огледай за нови тригери, може от това да го помислих за бъг. За Лавров няма нещо прекалено мерзко, осра всичко което е възможно.
Погледнах, не виждам нищо необичайно. Ето това са тригерите в базата в момента:
CREATE TRIGGER ThreadsAI after insert on Threads begin update Counters set val = val + 1 where id = 'threads'; end
CREATE TRIGGER ThreadsAU after update of Slug, Caption, UserID, Pinned on Threads begin insert or ignore into ThreadsHistory(threadid, Slug, Caption, LastChanged, Pinned) values ( old.id, old.Slug, old.Caption, old.LastChanged, old.Pinned ); end
CREATE TRIGGER ThreadsAD after delete on Threads begin insert or ignore into ThreadsHistory(threadid, Slug, Caption, LastChanged, Pinned) values ( old.id, old.Slug, old.Caption, old.LastChanged, old.Pinned ); update Counters set val = val - 1 where id = 'threads'; end
CREATE TRIGGER PostsAU AFTER UPDATE OF Content, editTime, editUserID, threadID, format ON Posts BEGIN update PostFTS set rowid = new.id, Content = new.Content, Caption = (select Caption from Threads where id=new.threadid), slug = (select slug from Threads where id = new.threadid), user = ifnull((select nick from users where id = new.userid), new.anon), tags = (select group_concat(TT.Tag, ", ") from ThreadTags TT where TT.threadID = new.threadid) where rowid = old.id; insert or ignore into PostsHistory(postID, threadID, userID, anon, postTime, editUserID, editTime, format, Content) values ( old.id, old.threadID, old.userID, old.anon, old.postTime, old.editUserID, old.editTime, old.format, old.Content ); update Threads set PostCount = PostCount - 1 where id = old.threadID; update Threads set PostCount = PostCount + 1 where id = new.threadID; update Tags set PostCnt = PostCnt - 1 where tags.tag in (select tag from threadtags where threadid = old.threadid); update Tags set PostCnt = PostCnt + 1 where tags.tag in (select tag from threadtags where threadid = new.threadid); END
CREATE TRIGGER LimitedAccessThreadsAI after insert on LimitedAccessThreads begin update LimitedAccessThreads set LastChanged = (select LastChanged from threads where id = new.threadid); end
CREATE TRIGGER ThreadTagsAI AFTER INSERT ON ThreadTags BEGIN update Tags set ThreadCnt = ThreadCnt + 1 where tag = new.tag; END
CREATE TRIGGER ThreadTagsAD AFTER DELETE ON ThreadTags BEGIN update Tags set ThreadCnt = ThreadCnt - 1 where tag = old.tag; END
CREATE TRIGGER ThreadTagsAU AFTER UPDATE OF Tag, Limited ON ThreadTags BEGIN update Tags set ThreadCnt = ThreadCnt - 1 where tag = old.tag; update Tags set ThreadCnt = ThreadCnt + 1 where tag = new.tag; END
CREATE TRIGGER ThreadsAUtt AFTER UPDATE OF LastChanged, Pinned, Limited ON Threads BEGIN update threadtags set LastChanged = new.LastChanged, Pinned = new.Pinned, Limited = new.Limited where threadid = new.id; update LimitedAccessThreads set LastChanged = new.LastChanged where threadid = new.id; END
CREATE TRIGGER AttachmentsAI after insert on Attachments begin insert into AttachCnt(fileid, count) VALUES (new.id, 0); end
CREATE TRIGGER ThreadVotersAU after update on ThreadVoters begin
update Threads set Rating = Rating - old.Vote + new.Vote where id = new.threadID;
end
CREATE TRIGGER ThreadVotersAD after delete on ThreadVoters begin
update Threads set Rating = Rating - old.Vote where id = old.threadID;
end
CREATE TRIGGER ThreadVotersAI after insert on ThreadVoters begin
update Threads set Rating = Rating + new.Vote where id = new.threadID;
end
CREATE TRIGGER PostsAI AFTER INSERT ON Posts BEGIN
insert into PostFTS(rowid, Content, Caption, slug, user, tags) VALUES (
new.id,
new.Content,
(select Caption from Threads where id=new.threadid),
(select slug from Threads where id = new.threadid),
ifnull((select nick from users where id = new.userid), new.anon),
(select group_concat(TT.Tag, ", ") from ThreadTags TT where TT.threadID = new.threadid)
);
insert into PostCNT(postid,count) VALUES (new.id, 0);
insert or ignore into ThreadPosters(firstPost, threadID, userID) values (new.id, new.threadID, new.userID);
update Users set PostCount = PostCount + 1, LastPostTime = strftime('%s', 'now'), PostInterval = max(0, PostInterval + PostIntervalInc) where Users.id = new.UserID;
update Threads set PostCount = PostCount + 1 where id = new.threadID;
update Counters set val = val + 1 where id = 'posts';
update Tags set PostCnt = PostCnt + 1 where Tags.tag in (select tag from ThreadTags where ThreadID = new.ThreadID);
END
CREATE TRIGGER PostsAD AFTER DELETE ON Posts BEGIN
delete from PostFTS where rowid = old.id;
delete from ThreadPosters where threadid = old.threadid and userid = old.userid;
insert or ignore into ThreadPosters(firstPost, threadID, userID) select min(id), threadid, userid from posts where threadid = old.threadid and userid = old.userid;
update Users set PostCount = PostCount - 1 where Users.id = old.UserID;
update Threads set PostCount = PostCount - 1, LastChanged = (select max(P.postTime) from posts as P where P.threadID = old.threadID) where id = old.threadID;
update Counters set val = val - 1 where id = 'posts';
update Tags set PostCnt = PostCnt - 1 where Tags.tag in (select tag from threadtags where threadid = old.threadid);
insert or ignore into PostsHistory(postID, threadID, userID, anon, postTime, editUserID, editTime, format, Content) values (
old.id,
old.threadID,
old.userID,
old.anon,
old.postTime,
old.editUserID,
old.editTime,
old.format,
old.Content
);
END
Демокрация, всеки вярва в квото го влече. Единствената борба на лайното емигрантско е да превърне тука в кочина, какъвто е той самия, на външен вид и по душа. Няма как да има съвест да се оттегли, след като направи всички възможни мизерии.
Кой започна война срещу всички чрез псувни и закани към майките им, като тия които отговаряха бяха наказвани с бан за определено време. По-скоро се ояде с власт и прекали. Някой трябваше да те свали от небесата.
Rabin
Последно редактирано на 08.07.2024 от Rabin, видяно: 221 пъти. #110600
Кой започна война срещу всички чрез псувни и закани към майките им, като тия които отговаряха бяха наказвани с бан за определено време. По-скоро се ояде с власт и прекали. Някой трябваше да те свали от небесата.
Псувам за кози, да. Много добре знаеш, че и мишките съм изтребил в нас.
Като стане всяко мнение само за това, на един и същи юзер - БАН за 24 часа.
Що съм ви толкоз крив бе, щот не подскачам по СКУМ и не се блъскам в трафика секи ден? Тебе лично не се сещам кво може да те дразня. Туй ли ти е смисъла на живота, да лееш содомия пред чужда порта? Милиард години еволюция, и накрая това!
Лавровото колко и да го псуеш му е малко. Ваксината му проми акъла, иде да ни мисионерства, от сърцето на урсулника.
Кви небеса, луд ли си, всеки случайник да може да злоупотреби как си иска. Единствения контрол си има който държи базата, в случая Жони, другото е твои си фетиши.
Още не съм му казал за бъгнята, не държа ако не иска.
ДонРеба
Създадено на 08.07.2024, видяно: 215 пъти. #110601
Ребата го бил загубил като сменял апарат
не е така, джонката някога ми се е обаждал на същия тоя апарат, но не мога да го изровя погребан в години история.
Rabin
Последно редактирано на 08.07.2024 от Rabin, видяно: 207 пъти. #110602
Жони, сори ако досаждам, ама тряя да идеш по-честичко. По едно време бяха почнали да гаврят разни БГ манекенки, да ги правят на кози и каквото там. Пазя го ако те интересува. В твоя форум. Не успях да ги спра.
Чей, не ми е до твоите кози. Почнах нов курс за Azure, дето а дано не е depricate-нат, а и Baj_boeb ме дразни... родил се е най-нисшата форма на живот - МРЪСЕН БЪЛГАРИН, а смее да се подиграва с БОЖИЯ НАРОД...