Auth seed: include name in ON CONFLICT DO UPDATE so renames take effect on restart
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
edbaeeda08
commit
42c1a33c4b
1 changed files with 1 additions and 0 deletions
|
|
@ -128,6 +128,7 @@ export async function initDb() {
|
||||||
('rates', 'Rate Scraper', 'Competitor rate monitoring', '/rates', 'Tag', '#7b4f00', 'Finance', '10.10.10.115', 3080),
|
('rates', 'Rate Scraper', 'Competitor rate monitoring', '/rates', 'Tag', '#7b4f00', 'Finance', '10.10.10.115', 3080),
|
||||||
('maintenance', 'Maintenance', 'Maintenance log book — faults, recurring tasks, assets and contractors', '/maintenance', 'Wrench', '#b45309', 'Operations', '10.10.10.121', 3080)
|
('maintenance', 'Maintenance', 'Maintenance log book — faults, recurring tasks, assets and contractors', '/maintenance', 'Wrench', '#b45309', 'Operations', '10.10.10.121', 3080)
|
||||||
ON CONFLICT (slug) DO UPDATE SET
|
ON CONFLICT (slug) DO UPDATE SET
|
||||||
|
name = EXCLUDED.name,
|
||||||
icon = EXCLUDED.icon,
|
icon = EXCLUDED.icon,
|
||||||
category = EXCLUDED.category,
|
category = EXCLUDED.category,
|
||||||
internal_host = EXCLUDED.internal_host,
|
internal_host = EXCLUDED.internal_host,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue