Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config/default.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ module.exports = {
websocketServer: {
pingInterval: 3000,
pingTimeout: 3000,
minProbeVersion: '0.39.0',
},
redis: {
standalonePersistent: {
Expand Down
10 changes: 8 additions & 2 deletions migrations/dashboard/create-tables.js.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ CREATE TABLE IF NOT EXISTS directus_users (
user_type VARCHAR(255) NOT NULL DEFAULT 'member',
public_probes BOOLEAN DEFAULT 0,
adoption_token VARCHAR(255) NOT NULL,
default_prefix VARCHAR(255) NOT NULL
default_prefix VARCHAR(255) NOT NULL,
notification_preferences longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL CHECK (notification_preferences IS NULL OR json_valid(`notification_preferences`))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

CREATE TABLE IF NOT EXISTS gp_probes (
Expand Down Expand Up @@ -47,6 +48,11 @@ CREATE TABLE IF NOT EXISTS gp_probes (
searchIndex VARCHAR(4090) NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

CREATE TABLE IF NOT EXISTS directus_settings (
id INT PRIMARY KEY,
low_credits_default_threshold INT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
Comment thread
alexey-yarmosh marked this conversation as resolved.

CREATE TABLE IF NOT EXISTS directus_notifications (
id CHAR(10),
recipient CHAR(36),
Expand Down Expand Up @@ -136,7 +142,7 @@ CREATE TABLE IF NOT EXISTS gp_schedule_configuration (

CONSTRAINT gp_schedule_configuration_type_check CHECK (`measurement_type` IN ('http','dns','ping','traceroute','mtr')),

CONSTRAINT gp_schedule_configuration_schedule_fk
CONSTRAINT gp_schedule_configuration_schedule_id_foreign
FOREIGN KEY (schedule_id) REFERENCES gp_schedule(id)
ON DELETE CASCADE ON UPDATE RESTRICT,

Expand Down
Loading
Loading