From c369364642ffd44d3f7992d9c81f96ddfe0492a5 Mon Sep 17 00:00:00 2001 From: jordi fita mas Date: Tue, 17 Jan 2023 22:30:01 +0100 Subject: [PATCH] Add the SQL for the demo --- debian/control | 11 +++++++++++ debian/numerus-demo.install | 1 + demo/demo.sql | 10 ++++++++++ 3 files changed, 22 insertions(+) create mode 100644 debian/numerus-demo.install create mode 100644 demo/demo.sql diff --git a/debian/control b/debian/control index 48a7171..474b265 100644 --- a/debian/control +++ b/debian/control @@ -46,3 +46,14 @@ Description: Simple invoicing and accounting web application contractors working in Spain. . This is the Sqitch migration package. + +Package: numerus-demo +Architecture: all +Depends: + ${misc:Depends}, + sqitch +Description: Simple invoicing and accounting web application + A simple web application to keep invoice and accouting records, intended for + contractors working in Spain. + . + This is the demo SQL script. diff --git a/debian/numerus-demo.install b/debian/numerus-demo.install new file mode 100644 index 0000000..e6330c7 --- /dev/null +++ b/debian/numerus-demo.install @@ -0,0 +1 @@ +demo/demo.sql usr/share/numerus diff --git a/demo/demo.sql b/demo/demo.sql new file mode 100644 index 0000000..8aa58b8 --- /dev/null +++ b/demo/demo.sql @@ -0,0 +1,10 @@ +begin; + +set search_path to auth, numerus, public; + +insert into auth."user" (email, name, password, role) +values ('demo@numerus', 'Demo User', 'demo', 'invoicer') + , ('admin@numerus', 'Demo Admin', 'admin', 'admin') +; + +commit;