forked from FrederikBaerentsen/BrickTracker
More cleanup of unquoted or misquoted SQL identifiers
This commit is contained in:
parent
9029f6d423
commit
da2746d2a0
31
.env.sample
31
.env.sample
@ -4,13 +4,13 @@
|
||||
# see the schema and the column names. Some fields are compound and not visible
|
||||
# directly from the schema (joins). You can check the query in the */list.sql files
|
||||
# in the source to see all column names.
|
||||
# The usual syntax for those variables is <table>.<column> [ASC|DESC].
|
||||
# The usual syntax for those variables is "<table>"."<column>" [ASC|DESC].
|
||||
# For composite fields (CASE, SUM, COUNT) the syntax is <field>, there is no <table> name.
|
||||
# For instance:
|
||||
# - table.name (by table.name, default order)
|
||||
# - table.name ASC (by table.name, ascending)
|
||||
# - table.name DESC (by table.name, descending)
|
||||
# - field (by field, default order)
|
||||
# - "table"."name" (by "table"."name", default order)
|
||||
# - "table"."name" ASC (by "table"."name", ascending)
|
||||
# - "table"."name" DESC (by "table"."name", descending)
|
||||
# - "field" (by "field", default order)
|
||||
# - ...
|
||||
# You can combine the ordering options.
|
||||
# You can use the special column name 'rowid' to order by insertion order.
|
||||
@ -117,10 +117,10 @@
|
||||
|
||||
# Optional: Change the default order of minifigures. By default ordered by insertion order.
|
||||
# Useful column names for this option are:
|
||||
# - minifigures.fig_num: minifigure ID (fig-xxxxx)
|
||||
# - minifigures.name: minifigure name
|
||||
# Default: minifigures.name ASC
|
||||
# BK_MINIFIGURES_DEFAULT_ORDER=minifigures.name ASC
|
||||
# - "minifigures"."fig_num": minifigure ID (fig-xxxxx)
|
||||
# - "minifigures"."name": minifigure name
|
||||
# Default: "minifigures"."name" ASC
|
||||
# BK_MINIFIGURES_DEFAULT_ORDER="minifigures"."name" ASC
|
||||
|
||||
# Optional: Folder where to store the minifigures images, relative to the '/app/static/' folder
|
||||
# Default: minifigs
|
||||
@ -134,12 +134,13 @@
|
||||
|
||||
# Optional: Change the default order of parts. By default ordered by insertion order.
|
||||
# Useful column names for this option are:
|
||||
# - inventory.part_num: part number
|
||||
# - inventory.name: part name
|
||||
# - inventory.color_name: par color name
|
||||
# - total_missing: number of missing parts
|
||||
# Default: inventory.name ASC, inventory.color_name ASC, is_spare ASC
|
||||
# BK_PARTS_DEFAULT_ORDER=total_missing DESC, inventory.name ASC
|
||||
# - "inventory"."part_num": part number
|
||||
# - "inventory"."name": part name
|
||||
# - "inventory"."color_name": part color name
|
||||
# - "inventory"."is_spare": par is a spare part
|
||||
# - "total_missing": number of missing parts
|
||||
# Default: "inventory"."name" ASC, "inventory"."color_name" ASC, "inventory"."is_spare" ASC
|
||||
# BK_PARTS_DEFAULT_ORDER="total_missing" DESC, "inventory"."name" ASC
|
||||
|
||||
# Optional: Folder where to store the parts images, relative to the '/app/static/' folder
|
||||
# Default: parts
|
||||
|
@ -4,7 +4,7 @@
|
||||
SUM(IFNULL("missing_join"."total", 0)) AS "total_missing",
|
||||
{% endblock %}
|
||||
|
||||
{% block "total_quantity" %}
|
||||
{% block total_quantity %}
|
||||
SUM(IFNULL("minifigures"."quantity", 0)) AS "total_quantity",
|
||||
{% endblock %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user