Extremely close to alpha release

This commit is contained in:
Simon Brooke 2018-07-05 11:16:48 +01:00
parent ff5c78d030
commit fc2bd86cff
43 changed files with 2375 additions and 719 deletions

View file

@ -1,7 +1,7 @@
------------------------------------------------------------------------
-- File queries.sql
--
-- autogenerated by adl.to-hugsql-queries at 2018-07-03T23:08:18.480Z
-- autogenerated by adl.to-hugsql-queries at 2018-07-05T10:14:16.954Z
--
-- See [Application Description
-- Language](https://github.com/simon-brooke/adl).
@ -753,7 +753,7 @@ ORDER BY lv_visits.address_id,
lv_visits.date,
lv_visits.id
-- :name search-strings-address :? :1
-- :name search-strings-addresses :? :1
-- :doc selects existing address records having any string field matching the parameter of the same name by substring match
SELECT DISTINCT * FROM lv_addresses
WHERE false
@ -771,7 +771,7 @@ ORDER BY lv_addresses.address,
--~ (if (:offset params) "OFFSET :offset ")
--~ (if (:limit params) "LIMIT :limit" "LIMIT 100")
-- :name search-strings-authority :? :1
-- :name search-strings-authorities :? :1
-- :doc selects existing authority records having any string field matching the parameter of the same name by substring match
SELECT DISTINCT * FROM lv_authorities
WHERE false
@ -784,7 +784,7 @@ WHERE false
--~ (if (:offset params) "OFFSET :offset ")
--~ (if (:limit params) "LIMIT :limit" "LIMIT 100")
-- :name search-strings-canvasser :? :1
-- :name search-strings-canvassers :? :1
-- :doc selects existing canvasser records having any string field matching the parameter of the same name by substring match
SELECT DISTINCT * FROM lv_canvassers
WHERE false
@ -806,7 +806,7 @@ ORDER BY lv_canvassers.username,
--~ (if (:offset params) "OFFSET :offset ")
--~ (if (:limit params) "LIMIT :limit" "LIMIT 100")
-- :name search-strings-district :? :1
-- :name search-strings-districts :? :1
-- :doc selects existing district records having any string field matching the parameter of the same name by substring match
SELECT DISTINCT * FROM lv_districts
WHERE false
@ -817,7 +817,7 @@ ORDER BY lv_districts.name,
--~ (if (:offset params) "OFFSET :offset ")
--~ (if (:limit params) "LIMIT :limit" "LIMIT 100")
-- :name search-strings-dwelling :? :1
-- :name search-strings-dwellings :? :1
-- :doc selects existing dwelling records having any string field matching the parameter of the same name by substring match
SELECT DISTINCT * FROM lv_dwellings
WHERE false
@ -830,7 +830,7 @@ ORDER BY lv_dwellings.address_id,
--~ (if (:offset params) "OFFSET :offset ")
--~ (if (:limit params) "LIMIT :limit" "LIMIT 100")
-- :name search-strings-elector :? :1
-- :name search-strings-electors :? :1
-- :doc selects existing elector records having any string field matching the parameter of the same name by substring match
SELECT DISTINCT * FROM lv_electors
WHERE false
@ -848,7 +848,7 @@ ORDER BY lv_electors.name,
--~ (if (:offset params) "OFFSET :offset ")
--~ (if (:limit params) "LIMIT :limit" "LIMIT 100")
-- :name search-strings-followupaction :? :1
-- :name search-strings-followupactions :? :1
-- :doc selects existing followupaction records having any string field matching the parameter of the same name by substring match
SELECT DISTINCT * FROM lv_followupactions
WHERE false
@ -864,7 +864,7 @@ ORDER BY lv_followupactions.date,
--~ (if (:offset params) "OFFSET :offset ")
--~ (if (:limit params) "LIMIT :limit" "LIMIT 100")
-- :name search-strings-followupmethod :? :1
-- :name search-strings-followupmethods :? :1
-- :doc selects existing followupmethod records having any string field matching the parameter of the same name by substring match
SELECT DISTINCT * FROM lv_followupmethods
WHERE false
@ -872,7 +872,7 @@ WHERE false
--~ (if (:offset params) "OFFSET :offset ")
--~ (if (:limit params) "LIMIT :limit" "LIMIT 100")
-- :name search-strings-followuprequest :? :1
-- :name search-strings-followuprequests :? :1
-- :doc selects existing followuprequest records having any string field matching the parameter of the same name by substring match
SELECT DISTINCT * FROM lv_followuprequests
WHERE false
@ -888,7 +888,7 @@ ORDER BY lv_followuprequests.elector_id,
--~ (if (:offset params) "OFFSET :offset ")
--~ (if (:limit params) "LIMIT :limit" "LIMIT 100")
-- :name search-strings-gender :? :1
-- :name search-strings-genders :? :1
-- :doc selects existing gender records having any string field matching the parameter of the same name by substring match
SELECT DISTINCT * FROM lv_genders
WHERE false
@ -896,7 +896,7 @@ WHERE false
--~ (if (:offset params) "OFFSET :offset ")
--~ (if (:limit params) "LIMIT :limit" "LIMIT 100")
-- :name search-strings-intention :? :1
-- :name search-strings-intentions :? :1
-- :doc selects existing intention records having any string field matching the parameter of the same name by substring match
SELECT DISTINCT * FROM lv_intentions
WHERE false
@ -908,7 +908,7 @@ WHERE false
--~ (if (:offset params) "OFFSET :offset ")
--~ (if (:limit params) "LIMIT :limit" "LIMIT 100")
-- :name search-strings-issue :? :1
-- :name search-strings-issues :? :1
-- :doc selects existing issue records having any string field matching the parameter of the same name by substring match
SELECT DISTINCT * FROM lv_issues
WHERE false
@ -919,7 +919,7 @@ WHERE false
--~ (if (:offset params) "OFFSET :offset ")
--~ (if (:limit params) "LIMIT :limit" "LIMIT 100")
-- :name search-strings-option :? :1
-- :name search-strings-options :? :1
-- :doc selects existing option records having any string field matching the parameter of the same name by substring match
SELECT DISTINCT * FROM lv_options
WHERE false
@ -927,7 +927,7 @@ WHERE false
--~ (if (:offset params) "OFFSET :offset ")
--~ (if (:limit params) "LIMIT :limit" "LIMIT 100")
-- :name search-strings-role :? :1
-- :name search-strings-roles :? :1
-- :doc selects existing role records having any string field matching the parameter of the same name by substring match
SELECT DISTINCT * FROM lv_roles
WHERE false
@ -938,7 +938,7 @@ ORDER BY lv_roles.name,
--~ (if (:offset params) "OFFSET :offset ")
--~ (if (:limit params) "LIMIT :limit" "LIMIT 100")
-- :name search-strings-team :? :1
-- :name search-strings-teams :? :1
-- :doc selects existing team records having any string field matching the parameter of the same name by substring match
SELECT DISTINCT * FROM lv_teams
WHERE false
@ -952,7 +952,7 @@ ORDER BY lv_teams.name,
--~ (if (:offset params) "OFFSET :offset ")
--~ (if (:limit params) "LIMIT :limit" "LIMIT 100")
-- :name search-strings-visit :? :1
-- :name search-strings-visits :? :1
-- :doc selects existing visit records having any string field matching the parameter of the same name by substring match
SELECT DISTINCT * FROM lv_visits
WHERE false
@ -1035,6 +1035,12 @@ SET request_id = :request_id,
closed = :closed
WHERE followupactions.id = :id
-- :name update-followupmethod! :! :n
-- :doc updates an existing followupmethod record
UPDATE followupmethods
SET id = :id
WHERE followupmethods.id = :id
-- :name update-followuprequest! :! :n
-- :doc updates an existing followuprequest record
UPDATE followuprequests
@ -1044,6 +1050,12 @@ SET elector_id = :elector_id,
method_id = :method_id
WHERE followuprequests.id = :id
-- :name update-gender! :! :n
-- :doc updates an existing gender record
UPDATE genders
SET id = :id
WHERE genders.id = :id
-- :name update-intention! :! :n
-- :doc updates an existing intention record
UPDATE intentions
@ -1062,6 +1074,12 @@ SET url = :url,
id = :id
WHERE issues.id = :id
-- :name update-option! :! :n
-- :doc updates an existing option record
UPDATE options
SET id = :id
WHERE options.id = :id
-- :name update-role! :! :n
-- :doc updates an existing role record
UPDATE roles

View file

@ -5,7 +5,7 @@
--
-- auto-generated by [Application Description Language framework]
--
-- (https://github.com/simon-brooke/adl) at 20180703T230819.494Z
-- (https://github.com/simon-brooke/adl) at 20180705T101417.868Z
--
--
-- A web-app intended to be used by canvassers campaigning for a