Database support #1

Merged
alpha6 merged 8 commits from database_support into master 2017-07-31 10:19:57 +03:00
4 changed files with 30 additions and 0 deletions
Showing only changes of commit 4cd7cbef49 - Show all commits

13
deploy/users.sql Normal file
View file

@ -0,0 +1,13 @@
-- Deploy fotostore:users to sqlite
BEGIN;
CREATE TABLE users (
nickname TEXT PRIMARY KEY,
password TEXT NOT NULL,
fullname TEXT NOT NULL,
twitter TEXT NOT NULL,
timestamp DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
);
COMMIT;

7
revert/users.sql Normal file
View file

@ -0,0 +1,7 @@
-- Revert fotostore:users from sqlite
BEGIN;
DROP TABLE users;
COMMIT;

View file

@ -2,3 +2,4 @@
%project=fotostore
%uri=https://rsscp.ru/
users 2017-07-22T06:53:03Z Denis Fedoseev <denis.fedoseev@gmail.com> # Creates table to track our users.

9
verify/users.sql Normal file
View file

@ -0,0 +1,9 @@
-- Verify fotostore:users on sqlite
BEGIN;
SELECT nickname, password, fullname, twitter
FROM users
WHERE 0;
ROLLBACK;