Converting date function from MySQL to SQLite syntax
This commit is contained in:
parent
763d8b3833
commit
caf6370727
1 changed files with 1 additions and 1 deletions
|
|
@ -254,7 +254,7 @@ export class Reservation {
|
|||
`
|
||||
SELECT *
|
||||
FROM reservations
|
||||
WHERE DATE_FORMAT(DATE_SUB(date_range_start, INTERVAL 7 DAY), '%Y-%m-%d) = ?
|
||||
WHERE DATE(?, '-7 day') = ?
|
||||
ORDER BY date_range_start DESC
|
||||
LIMIT ?;
|
||||
`,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue