Created
September 11, 2013 16:43
-
-
Save errzey/6526383 to your computer and use it in GitHub Desktop.
Never miss a deleted message in Skype
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In OSX: cd ~/Library/Application\ Support/Skype/<yourusername> | |
sqlite3 main.db | |
CREATE TABLE ILOGURDELETEDMESSAGES (AUTHOR TEXT, MESSAGE TEXT); | |
CREATE TRIGGER LOLILOGB4UREMOVE AFTER UPDATE On Messages | |
FOR EACH ROW | |
WHEN (NEW.body_xml ="") | |
BEGIN | |
INSERT INTO ILOGURDELETEDMESSAGES (AUTHOR, MESSAGE) VALUES (NEW.author, OLD.body_xml); | |
END; | |
Profit. |
Hi guys, I do the following:
Add the trigger(whatever which) the trigger is present and all is ok. But when the skype is started, and then shut down. I open the main.db again and there is no triggers, please advise what I am doing wrong?
Just in case, steps to reproduce:
- Add trigger, write changes
- Re-open main.db, make sure the trigger is here.
- Open skype app
- Close skype app
- Open main.db, the trigger is gone.
Might be it's related to newer version of skype, I don't know, what you think, please share your experience.
Never mind, for sucessful applying the skype should be online.
Now Skype drops all triggers on each start. Any other smart ideas? :)
Haha I can't believe I never saw these comments.
I would have to look at skype again to find further workarounds.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Skype now appear to remove unknown tables from time to time. Here is my solution:
CREATE TRIGGER LOLICU AFTER UPDATE ON Messages
FOR EACH ROW
WHEN (NEW.body_xml ="")
BEGIN
UPDATE Messages SET body_xml = 'Deleted: ' || OLD.body_xml where id = NEW.id;
END;