b7a0f46685
This tool is used for storing large collect files when reporting bugs via Launchpad. Simply use the tool to upload a file and then add its URL location into the Launchpad bug. You no longer need to split up large collect files and attach multiple files to your bugs. This tool is designed using Flask Web Framework, meanwhile docker is used for easy deployment. The directory /app holds the Flask application, /db contains the script for database initialization. Bash file start.sh includes the commands used for the first time docker deployment. The file update.sh let developers push their changes to the docker repository. Change the repository's name and tag accordingly, in this case it is nchen1windriver/collect and demo. A config file was added for security purpose in this commit. Change-Id: I192c3fca541f99773e0395418a9f11e01c27a5a7 Signed-off-by: Nathan Chen <nathan.chen@windriver.com>
7 lines
588 B
SQL
7 lines
588 B
SQL
CREATE DATABASE collect;
|
|
USE collect;
|
|
CREATE TABLE openid_users(id INT not null AUTO_INCREMENT, name VARCHAR(60), email VARCHAR(200), openid VARCHAR(200), PRIMARY KEY (id));
|
|
CREATE TABLE launchpads(id INT not null, title VARCHAR(200), PRIMARY KEY (id));
|
|
CREATE TABLE files(id INT not null AUTO_INCREMENT, name VARCHAR(60), user_id INT not null, launchpad_id INT not null, modified_date TIMESTAMP, PRIMARY KEY (id), file_size FLOAT NOT NULL,
|
|
FOREIGN KEY (user_id) REFERENCES openid_users(id) ON DELETE CASCADE,
|
|
FOREIGN KEY (launchpad_id) REFERENCES launchpads(id) ON DELETE CASCADE); |