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

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
t.time AS time, AS from_acc, 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 =
LEFT JOIN money n ON t.to_acc =
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