Add users table.
This commit is contained in:
parent
769435ff3d
commit
4cd7cbef49
4 changed files with 30 additions and 0 deletions
13
deploy/users.sql
Normal file
13
deploy/users.sql
Normal 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
7
revert/users.sql
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
-- Revert fotostore:users from sqlite
|
||||||
|
|
||||||
|
BEGIN;
|
||||||
|
|
||||||
|
DROP TABLE users;
|
||||||
|
|
||||||
|
COMMIT;
|
|
@ -2,3 +2,4 @@
|
||||||
%project=fotostore
|
%project=fotostore
|
||||||
%uri=https://rsscp.ru/
|
%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
9
verify/users.sql
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
-- Verify fotostore:users on sqlite
|
||||||
|
|
||||||
|
BEGIN;
|
||||||
|
|
||||||
|
SELECT nickname, password, fullname, twitter
|
||||||
|
FROM users
|
||||||
|
WHERE 0;
|
||||||
|
|
||||||
|
ROLLBACK;
|
Loading…
Reference in a new issue