Compare commits

..

No commits in common. "dc269f13ee74f2b73a98cb59ac2c4ae508ee47a5" and "9e2a0914a012a44602a18c0fb3e6c7f639d6612e" have entirely different histories.

View file

@ -286,9 +286,8 @@ export async function initDb() {
SELECT a.id, c.slug, c.name, c.description, c.sort_order SELECT a.id, c.slug, c.name, c.description, c.sort_order
FROM apps a FROM apps a
CROSS JOIN (VALUES CROSS JOIN (VALUES
('view', 'View & Run Reports', 'Browse and run all custom reports', 1), ('view', 'View & Run Reports', 'Browse and run all custom reports', 1),
('export', 'Export to CSV', 'Download report results as a CSV file', 2), ('export', 'Export to CSV', 'Download report results as a CSV file', 2)
('edit', 'Edit Directors Forecast', 'Edit pickup/dry/wet overrides and save forecast snapshots', 3)
) AS c(slug, name, description, sort_order) ) AS c(slug, name, description, sort_order)
WHERE a.slug = 'reports' WHERE a.slug = 'reports'
ON CONFLICT (app_id, slug) DO UPDATE SET ON CONFLICT (app_id, slug) DO UPDATE SET