fix: badge and timescaleDB changes
This commit is contained in:
1 parent
5791bdd5e7
commit
99a5aa1722
5 files changed
+10
-15
No files matched your search
@@ -3,7 +3,7 @@ import type { Pool } from "pg";
|
||||
export const addStrategyToMonitors = async (pool: Pool) => {
|
||||
await pool.query(`
|
||||
ALTER TABLE monitors
|
||||
ADD COLUMN IF NOT EXISTS strategy TEXT DEFAULT 'desktop';
|
||||
ADD COLUMN IF NOT EXISTS strategy TEXT DEFAULT NULL;
|
||||
`);
|
||||
};
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Schema, model, Types } from "mongoose";
|
||||
import type { Monitor, MonitorMatchMethod, CheckSnapshot } from "@/types/monitor.js";
|
||||
import { MonitorTypes, MonitorStatuses, PageSpeedStrategies, DefaultPageSpeedStrategy } from "@/types/monitor.js";
|
||||
import { MonitorTypes, MonitorStatuses, PageSpeedStrategies } from "@/types/monitor.js";
|
||||
import type {
|
||||
CheckAudits,
|
||||
CheckCaptureInfo,
|
||||
@@ -333,7 +333,6 @@ const MonitorSchema = new Schema<MonitorDocument>(
|
||||
strategy: {
|
||||
type: String,
|
||||
enum: PageSpeedStrategies,
|
||||
default: DefaultPageSpeedStrategy,
|
||||
},
|
||||
group: {
|
||||
type: String,
|
||||
|
||||
Reference in new issue
Block a user