version 1.1.2.3, 2011/11/28 15:22:25
|
version 1.2, 2012/01/27 15:05:38
|
Line 9 Stamp timestamp);
|
Line 9 Stamp timestamp);
|
CREATE UNIQUE INDEX IF NOT EXISTS User on Users (UserName); |
CREATE UNIQUE INDEX IF NOT EXISTS User on Users (UserName); |
CREATE TRIGGER IF NOT EXISTS Users_update_t AFTER UPDATE ON Users |
CREATE TRIGGER IF NOT EXISTS Users_update_t AFTER UPDATE ON Users |
BEGIN |
BEGIN |
UPDATE Users SET Stamp = strftime("%s", "now") WHERE Username = old.Username; | UPDATE Users SET Stamp = strftime('%s', 'now') WHERE Username = old.Username; |
END; |
END; |
CREATE TRIGGER IF NOT EXISTS Users_insert_t AFTER INSERT ON Users |
CREATE TRIGGER IF NOT EXISTS Users_insert_t AFTER INSERT ON Users |
BEGIN |
BEGIN |
UPDATE Users SET Stamp = strftime("%s", "now") WHERE Username = new.Username; | UPDATE Users SET Stamp = strftime('%s', 'now') WHERE Username = new.Username; |
END; |
END; |
COMMIT; |
COMMIT; |