* Update minitwit & improve testing for examples * Related to #1945 * Re-works minitwit to be installed and run as: pip install --editable . export FLASK_APP=minitwit.minitwit export FLASK_DEBUG=1 flask initdb flask run * added flaskr and minitwit to norecursedirs * tests not properly run when using pytest standards * see: http://stackoverflow.com/questions/38313171/configuring-pytest-with-installable-examples-in-a-project * Both flaskr and minitwit now follow pytest standards. * Tests can for them as `py.test` or `python setup.py test` * Update minitwit readme * updates the instructions for running * Fixes for updating the minitwit example - This reverts the changes to the *docs/* (I will file separate PR). - Running the app is now: `export FLASK_APP=minitwit` & `flask run` (After installing the app) * Remove unnecessary comma from flaskr/setup.py
21 lines
439 B
SQL
21 lines
439 B
SQL
drop table if exists user;
|
|
create table user (
|
|
user_id integer primary key autoincrement,
|
|
username text not null,
|
|
email text not null,
|
|
pw_hash text not null
|
|
);
|
|
|
|
drop table if exists follower;
|
|
create table follower (
|
|
who_id integer,
|
|
whom_id integer
|
|
);
|
|
|
|
drop table if exists message;
|
|
create table message (
|
|
message_id integer primary key autoincrement,
|
|
author_id integer not null,
|
|
text text not null,
|
|
pub_date integer
|
|
);
|