Skip to content

Open-source status page, incident response and uptime monitoring

Merge branch 'main' into feat/add-maintenance-resource-to-API

Maximilian Kaske6046176cadd2
diff --cc packages/db/src/seed.mts
index fa9b7f347,194f795a5..7bbd7d9a2
--- a/packages/db/src/seed.mts
+++ b/packages/db/src/seed.mts
@@@ -185,39 -197,23 +199,46 @@@ async function main()
message: "Message",
date: new Date(),
})
+ .onConflictDoNothing()
.run();
+ await db
+ .insert(maintenance)
+ .values({
+ id: 1,
+ workspaceId: 1,
+ title: "Test Maintenance",
+ message: "Test message",
+ from: new Date(),
+ to: new Date(Date.now() + 1000),
+ pageId: 1,
+ })
++ .onConflictDoNothing()
+ .run();
+
+ await db
+ .insert(maintenancesToMonitors)
+ .values({
+ maintenanceId: 1,
+ monitorId: 1,
+ })
++ .onConflictDoNothing()
+ .run();
+
- await db.insert(monitorsToStatusReport).values([
- {
- monitorId: 1,
- statusReportId: 2,
- },
- {
- monitorId: 2,
- statusReportId: 2,
- },
- ]);
+ await db
+ .insert(monitorsToStatusReport)
+ .values([
+ {
+ monitorId: 1,
+ statusReportId: 2,
+ },
+ {
+ monitorId: 2,
+ statusReportId: 2,
+ },
+ ])
+ .onConflictDoNothing()
+ .run();
await db
.insert(incidentTable)