update readme
authorShane Jaroch <nutratracker@protonmail.com>
Thu, 6 Aug 2020 13:32:00 +0000 (09:32 -0400)
committerShane Jaroch <nutratracker@protonmail.com>
Thu, 6 Aug 2020 13:34:55 +0000 (09:34 -0400)
README.rst

index 90e23d570f02a8da9f6189c9d1f7a9a045c4e17e..b2aaef47146220bc889976ee460fac20af7d29d3 100644 (file)
@@ -22,23 +22,47 @@ Building the database
     bash setup.sh
     python3 process.py
 
-3. Create the database with
+3. If you are committing changes, add a line to :code:`nt_ver.csv``, e.g. :code:`id=3` is new
+
++-----+----------+-----------------------------------+
+| id  | version  | created                           |
++=====+==========+===================================+
+| 1   | 0.0.0    | Wed 05 Aug 2020 07:09:35 PM EDT   |
++-----+----------+-----------------------------------+
+| 2   | 0.0.1    | Wed 05 Aug 2020 08:14:52 PM EDT   |
++-----+----------+-----------------------------------+
+| 3   | 0.0.2    | Thu 06 Aug 2020 09:21:39 AM EDT   |
++-----+----------+-----------------------------------+
+
+4. Create the database with
 
 .. code-block:: bash
 
     cd ../sql
     sqlite3 nutra.db
 
-NOTE: FOLLOW STEP 4 FROM INSIDE THE SQL SHELL
+NOTE: FOLLOW STEP 5 FROM INSIDE THE SQL SHELL
 
-4. Create the tables, import the data, and save:
+5. Create the tables, import the data, and save:
 
-.. code-block:: bash
+.. code-block:: sql
 
     .read tables.sql
     .read import.sql
     .exit
 
+6. Verify the tables, again inside :code:`sqlite nutra.db`,
+
+.. code-block:: sql
+
+    .tables
+    SELECT * FROM nutr_def WHERE id=328;
+    SELECT long_desc FROM food_des WHERE id=9050;
+    SELECT * FROM nt_ver;
+    .exit
+
+7. If everything looks good, compress into :code:`nutra-X.X.X.db.tar.xz` and upload to binary host.
+
 Tables (Relational Design)
 ##########################