From: Shane Jaroch Date: Wed, 12 Aug 2020 02:28:34 +0000 (-0400) Subject: update build.sh, diagram X-Git-Tag: 0.0.4~1 X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=22b5cde9ed038e3b666a2dc2c79b9772a23c7d24;p=nutratech%2Fusda-sqlite.git update build.sh, diagram --- diff --git a/docs/nutra.svg b/docs/nutra.svg index 9d45777..306ea19 100644 --- a/docs/nutra.svg +++ b/docs/nutra.svg @@ -10,11 +10,11 @@ undefined nutra.db - + -nt_ver +version -nt_ver +version id* integer diff --git a/sql/build.sh b/sql/build.sh index e2f721e..0668d30 100755 --- a/sql/build.sh +++ b/sql/build.sh @@ -28,8 +28,8 @@ printf "\\n\e[1;31m${tar_cmd}\e[0m\\n" $tar_cmd # Clean up -printf "\\n\e[1;31m${rm_cmd}\e[0m\\n" -$rm_cmd +# printf "\\n\e[1;31m${rm_cmd}\e[0m\\n" +# $rm_cmd mv_cmd="mv nutra-$VERSION.db.tar.xz dist" printf "\\n\e[1;31m${mv_cmd}\e[0m\\n\n" diff --git a/sql/tables.sql b/sql/tables.sql index 503bcc5..c5d1b38 100644 --- a/sql/tables.sql +++ b/sql/tables.sql @@ -14,10 +14,7 @@ -- You should have received a copy of the GNU General Public License -- along with this program. If not, see . -CREATE TABLE version ( - id integer PRIMARY KEY AUTOINCREMENT, - version text NOT NULL, - created timestamp DEFAULT CURRENT_TIMESTAMP +CREATE TABLE version( id integer PRIMARY KEY AUTOINCREMENT, version text NOT NULL, created timestamp DEFAULT CURRENT_TIMESTAMP ); CREATE TABLE nutr_def (