Add users table.

This commit is contained in:
Denis Fedoseev 2017-07-22 16:04:57 +09:00
parent 769435ff3d
commit 4cd7cbef49
4 changed files with 30 additions and 0 deletions

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;