Commit 00979544 authored by Hugo Hörnquist's avatar Hugo Hörnquist

Add patch file for db

parent a14ca471
CREATE VIEW money_simple AS
SELECT name,
printf("%.2f", amount / 100.0) AS amount
FROM money WHERE id != 0;
CREATE VIEW money_transfers_simple AS
SELECT
t.time AS time,
m.name AS from_acc,
n.name AS to_acc,
printf("%.2f", t.change / 100.0) AS amount,
t.note AS note
FROM money_transfers t
LEFT JOIN money m ON t.from_acc = m.id
LEFT JOIN money n ON t.to_acc = n.id
ORDER by time DESC;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment