diff --git a/.gitignore b/.gitignore index 8ee6227..549f2d4 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,7 @@ # Database files, csv, intermediates *.db *.sqlite +*.sqlite3 *.csv tmp/ diff --git a/README.rst b/README.rst index e9ec5eb..2c24a6b 100644 --- a/README.rst +++ b/README.rst @@ -58,7 +58,7 @@ Building the database ./build.sh X.X.X # e.g. 0.0.8 -5. Verify the tables (again inside the SQL shell :code:`sqlite3 usda.sqlite`), +5. Verify the tables (again inside the SQL shell :code:`sqlite3 usda.sqlite3`), .. code-block:: sql diff --git a/TODO b/TODO new file mode 100644 index 0000000..1aebcea --- /dev/null +++ b/TODO @@ -0,0 +1 @@ +automatically publish GH release if version is incremented diff --git a/docs/sqleton.sh b/docs/sqleton.sh index fba29e0..44280f3 100755 --- a/docs/sqleton.sh +++ b/docs/sqleton.sh @@ -4,4 +4,4 @@ cd "$(dirname "$0")" cd ../sql -sqleton -o ../docs/usda.svg usda.sqlite +sqleton -o ../docs/usda.svg usda.sqlite3 diff --git a/docs/usda.svg b/docs/usda.svg index cf688fc..1e8f994 100644 --- a/docs/usda.svg +++ b/docs/usda.svg @@ -9,7 +9,7 @@ undefined -usda.sqlite +usda.sqlite3 version diff --git a/sql/build.sh b/sql/build.sh index 295e16f..0e57a89 100755 --- a/sql/build.sh +++ b/sql/build.sh @@ -11,18 +11,18 @@ cd "$(dirname "$0")" # lives in sql/ # Remove existing -rm -f usda.sqlite +rm -f usda.sqlite3 -printf "\\n\\x1b[32m%s\x1b[0m\n\n" "==> Pack usda.sqlite v$VERSION" +printf "\\n\\x1b[32m%s\x1b[0m\n\n" "==> Pack usda.sqlite3 v$VERSION" -# Create sqlite db -sqlite3 usda.sqlite ".read init.sql" +# Create sqlite3 DB +sqlite3 usda.sqlite3 ".read init.sql" # Compress xzip -tar cJf usda.sqlite-$VERSION.tar.xz usda.sqlite +tar cJf usda.sqlite3-$VERSION.tar.xz usda.sqlite3 # Clean up # rm ??? # overwrite existing? mkdir -p dist -mv usda.sqlite-$VERSION.tar.xz dist +mv usda.sqlite3-$VERSION.tar.xz dist diff --git a/sql/version.csv b/sql/version.csv index a930619..9eef7dd 100644 --- a/sql/version.csv +++ b/sql/version.csv @@ -9,3 +9,4 @@ id,version,created,notes 8,0.0.7,Wed 30 Sep 2020 02:03:41 AM EDT,fixing (some) missing FK constraints 9,0.0.8,Sat Mar 6 11:33:05 2021 -0500,"speed up nutrients avg, with overview" 10,0.0.9,Sat Feb 24 12:06:24 PM EST 2024,"add Vit E value, std_dev on nutrients_overview" +11,0.0.10,Sat Mar 2 11:13:12 AM EST 2024,update DB version to 0.0.10 (sqlite3 extension)