Remove duplicate order by
This commit is contained in:
parent
4844889e0b
commit
bd686e0c00
@ -29,14 +29,12 @@ WHERE id = $1;
|
|||||||
-- name: GetAllTransactionsForBudget :many
|
-- name: GetAllTransactionsForBudget :many
|
||||||
SELECT t.*
|
SELECT t.*
|
||||||
FROM display_transactions AS t
|
FROM display_transactions AS t
|
||||||
WHERE t.budget_id = $1
|
WHERE t.budget_id = $1;
|
||||||
ORDER BY transactions.date DESC;
|
|
||||||
|
|
||||||
-- name: GetTransactionsForAccount :many
|
-- name: GetTransactionsForAccount :many
|
||||||
SELECT t.*
|
SELECT t.*
|
||||||
FROM display_transactions AS t
|
FROM display_transactions AS t
|
||||||
WHERE t.account_id = $1
|
WHERE t.account_id = $1
|
||||||
ORDER BY transactions.date DESC
|
|
||||||
LIMIT 200;
|
LIMIT 200;
|
||||||
|
|
||||||
-- name: DeleteAllTransactions :execrows
|
-- name: DeleteAllTransactions :execrows
|
||||||
|
@ -84,7 +84,6 @@ const getAllTransactionsForBudget = `-- name: GetAllTransactionsForBudget :many
|
|||||||
SELECT t.id, t.date, t.memo, t.amount, t.group_id, t.status, t.account, t.payee_id, t.category_id, t.payee, t.category_group, t.category, t.transfer_account, t.budget_id, t.account_id
|
SELECT t.id, t.date, t.memo, t.amount, t.group_id, t.status, t.account, t.payee_id, t.category_id, t.payee, t.category_group, t.category, t.transfer_account, t.budget_id, t.account_id
|
||||||
FROM display_transactions AS t
|
FROM display_transactions AS t
|
||||||
WHERE t.budget_id = $1
|
WHERE t.budget_id = $1
|
||||||
ORDER BY transactions.date DESC
|
|
||||||
`
|
`
|
||||||
|
|
||||||
func (q *Queries) GetAllTransactionsForBudget(ctx context.Context, budgetID uuid.UUID) ([]DisplayTransaction, error) {
|
func (q *Queries) GetAllTransactionsForBudget(ctx context.Context, budgetID uuid.UUID) ([]DisplayTransaction, error) {
|
||||||
@ -192,7 +191,6 @@ const getTransactionsForAccount = `-- name: GetTransactionsForAccount :many
|
|||||||
SELECT t.id, t.date, t.memo, t.amount, t.group_id, t.status, t.account, t.payee_id, t.category_id, t.payee, t.category_group, t.category, t.transfer_account, t.budget_id, t.account_id
|
SELECT t.id, t.date, t.memo, t.amount, t.group_id, t.status, t.account, t.payee_id, t.category_id, t.payee, t.category_group, t.category, t.transfer_account, t.budget_id, t.account_id
|
||||||
FROM display_transactions AS t
|
FROM display_transactions AS t
|
||||||
WHERE t.account_id = $1
|
WHERE t.account_id = $1
|
||||||
ORDER BY transactions.date DESC
|
|
||||||
LIMIT 200
|
LIMIT 200
|
||||||
`
|
`
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user