HomePhabricator

Add manage_storage script for quickstart

Authored by chris on Jul 21 2019, 2:49 PM.

Description

Add manage_storage script for quickstart

Summary: Depends on D11. This adds a quickstart script for bootstrapping database tables.

Test Plan:
Ran shell script with

python3 ./simplex/scripts/sql/manage_storage.py \
  --hostname localhost \
  --port 3306 \
  --username root \
  --password ***** \
  --namespace simplex

which produced:

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| simplex            |
+--------------------+

mysql> use simplex;
mysql> show tables;
+--------------------------------+
| Tables_in_simplex              |
+--------------------------------+
| auth_password                  |
| auth_passwordtransaction       |
| auth_providerconfig            |
| auth_providerconfigtransaction |
| auth_temporarytoken            |
| user                           |
| user_email                     |
| user_log                       |
| user_preferences               |
| user_profile                   |
| user_session                   |
+--------------------------------+

Reviewers: brooke

Reviewed By: brooke

Differential Revision: https://phabricator.tbmh.org/D12

Details

Committed
chrisJul 21 2019, 4:57 PM
Pushed
chrisJul 21 2019, 4:57 PM
Reviewer
brooke
Differential Revision
D12: Add manage_storage script for quickstart
Parents
rSIM43bbabb32783: Storage management workflow
Branches
Unknown
Tags
Unknown