Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ extended_capitalisation_policy = 'lower'
[tool.sqlfluff.rules.capitalisation.keywords]
capitalisation_policy = 'upper'

[tool.sqlfluff.rules.capitalisation.literals]
capitalisation_policy = 'upper'

[tool.sqlfluff.rules.convention.terminator]
multiline_newline = true
require_final_semicolon = true
Expand Down
8 changes: 4 additions & 4 deletions sqlite_export_for_ynab/ddl/create-relations.sql
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,12 @@ SELECT
, COALESCE(st.amount, t.amount) / -1000.0 AS amount_major
, CASE
WHEN
COALESCE(st.transfer_account_id, t.transfer_account_id) IS null
COALESCE(st.transfer_account_id, t.transfer_account_id) IS NULL
THEN COALESCE(st.category_id, t.category_id)
END AS category_id
, CASE
WHEN
COALESCE(st.transfer_account_id, t.transfer_account_id) IS null
COALESCE(st.transfer_account_id, t.transfer_account_id) IS NULL
THEN COALESCE(st.category_name, t.category_name)
END AS category_name
, COALESCE(st.deleted, t.deleted) AS deleted
Expand Down Expand Up @@ -253,12 +253,12 @@ SELECT
, COALESCE(st.amount, t.amount) / -1000.0 AS amount_major
, CASE
WHEN
COALESCE(st.transfer_account_id, t.transfer_account_id) IS null
COALESCE(st.transfer_account_id, t.transfer_account_id) IS NULL
THEN COALESCE(st.category_id, t.category_id)
END AS category_id
, CASE
WHEN
COALESCE(st.transfer_account_id, t.transfer_account_id) IS null
COALESCE(st.transfer_account_id, t.transfer_account_id) IS NULL
THEN COALESCE(st.category_name, t.category_name)
END AS category_name
, COALESCE(st.deleted, t.deleted) AS deleted
Expand Down