.mode csv
+.import '| tail -n +2 nt_ver.csv' nt_ver
+
.import '| tail -n +2 nt/nutr_def.csv' nutr_def
.import '| tail -n +2 nt/fdgrp.csv' fdgrp
.import '| tail -n +2 nt/food_des.csv' food_des
--- /dev/null
+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
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <https://www.gnu.org/licenses/>.
+CREATE TABLE nt_ver (
+ id integer PRIMARY KEY AUTOINCREMENT,
+ version text NOT NULL,
+ created timestamp DEFAULT CURRENT_TIMESTAMP
+);
+
CREATE TABLE nutr_def (
id integer PRIMARY KEY AUTOINCREMENT,
rda float,