- Added multiple test cases for the sag module to ensure proper functionality and data handling. - Created new templates for knowledge detail and knowledge index pages to display articles and solutions. - Introduced migrations to enhance the internet connections schema, including new columns for manual sharing and SLA subscriptions. - Added a script to reconcile known internet connections with verified data. - Planned the implementation of a new website content administration module for managing customer references and operational status.
20 lines
661 B
SQL
20 lines
661 B
SQL
ALTER TABLE internet_connections_connections
|
|
ADD COLUMN IF NOT EXISTS is_manual_shared BOOLEAN NOT NULL DEFAULT FALSE;
|
|
|
|
UPDATE internet_connections_connections parent
|
|
SET is_manual_shared = TRUE
|
|
WHERE parent.deleted_at IS NULL
|
|
AND parent.parent_id IS NULL
|
|
AND parent.allocation_model = 'shared'
|
|
AND parent.value_type = 'delefiber'
|
|
AND NOT EXISTS (
|
|
SELECT 1
|
|
FROM internet_connections_connections child
|
|
WHERE child.parent_id = parent.id
|
|
AND child.deleted_at IS NULL
|
|
AND (
|
|
child.value_type = 'subscription'
|
|
OR LOWER(COALESCE(child.value_label, '')) IN ('bmcnet', 'bmc networks')
|
|
)
|
|
);
|