update README.rst
authorShane J <nutratracker@protonmail.com>
Fri, 8 Apr 2022 23:04:36 +0000 (19:04 -0400)
committerShane J <nutratracker@protonmail.com>
Fri, 8 Apr 2022 23:05:10 +0000 (19:05 -0400)
README.rst

index 9b087e966bf4c70d1ab89ef2584426c3169f8d4c..bedb9aa557bd6a2a5f5e2fce6b932512e8fa7f3c 100644 (file)
@@ -2,7 +2,10 @@
  nt-sqlite
 ***********
 
-SQL and CSV files for setting up nutra portable SQL database.
+.. image:: https://api.travis-ci.com/nutratech/nt-sqlite.svg?branch=master
+    :target: https://travis-ci.com/github/nutratech/nt-sqlite
+
+Python, SQL and CSV files for setting up portable nt-sqlite database.
 
 See CLI:    https://github.com/nutratech/cli
 
@@ -12,7 +15,19 @@ Pypi page:  https://pypi.org/project/nutra
 Building the database
 #########################
 
-1. If you are committing schema design changes, bump the version for the corresponding tablename in ``tables.sql``.
+1. If you are committing database changes, add a line to :code:`data/version.csv` (e.g. :code:`id=4` is the latest in this case),
+
++-----+----------+-------------+------------------+
+| id  | version  | created     | notes            |
++=====+==========+=============+==================+
+| 1   | 0.0.0    | 2020-09-22  | initial release  |
++-----+----------+-------------+------------------+
+| 2   | 0.0.1    | 2021-05-21  | bump version     |
++-----+----------+-------------+------------------+
+| 3   | 0.0.2    | 2021-05-24  | remove guids     |
++-----+----------+-------------+------------------+
+| 4   | 0.0.3    | 2021-05-24  | general cleanup  |
++-----+----------+-------------+------------------+
 
 2. Create the database with,
 
@@ -20,7 +35,7 @@ Building the database
 
     python sql/__init__.py
 
-3. Verify the tables (again inside the SQL shell :code:`sqlite nutra.db`),
+3. Verify the tables (again inside the SQL shell :code:`sqlite3 nutra.sqlite`),
 
 .. code-block:: sql
 
@@ -28,7 +43,7 @@ Building the database
     SELECT * FROM versions;
     .exit
 
-4. If everything looks good, commit and copy any changes in SQL over to the ``cli`` (python) and ``nt-android`` (java) repos.
+4. If everything looks good, commit and update submodules in the ``cli`` (python) and ``nt-android`` (java) repos.
 
 
 Tables (Relational Design)