diff --git a/scripts/create-dev.sql b/scripts/create-dev.sql new file mode 100755 index 0000000000000000000000000000000000000000..f549a126b35b39b695f82d723a77f1119ad01268 --- /dev/null +++ b/scripts/create-dev.sql @@ -0,0 +1,12 @@ +DROP TABLE IF EXISTS items; + +CREATE TABLE items ( + ref INTEGER PRIMARY KEY, + name TEXT NOT NULL, + price REAL NOT NULL, + subscriberPrice REAL NOT NULL +); + +INSERT INTO items (ref, name, price, subscriberPrice) + VALUES (1, "Jus d'orange", 1.00, 0.50), + (2, "Coca-Cola", 1.50, 1.00); diff --git a/scripts/generate-dev.sh b/scripts/generate-dev.sh new file mode 100755 index 0000000000000000000000000000000000000000..8f7bbbfafd02c049289d4c8f7e16ea98f8b59042 --- /dev/null +++ b/scripts/generate-dev.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +sqlite3 dev.db '.read ./scripts/create-dev.sql'