- Drop 27 unused views, create 24 new purpose-built views - New views cover: equipment, PCs, printers, notifications, applications, knowledge base, USB history, subnets, maps, and reports/charts - Migration scripts for legacy network device tables (servers, cameras, switches, accesspoints, idfs) to unified machines table - Migration scripts for legacy tables (machineoverrides, dualpathassignments, networkinterfaces) - Update displaydevice.asp and displaylocationdevice.asp to use machines table - Fix deviceserver.asp type mismatch error with HTMLEncode - Hide Applications tab for equipment in displaymachine.asp 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
21 lines
953 B
SQL
21 lines
953 B
SQL
-- ============================================================================
|
|
-- Fix Views for Production
|
|
--
|
|
-- This script has been superseded by view_consolidation.sql
|
|
--
|
|
-- Run view_consolidation.sql instead, which:
|
|
-- 1. Drops 27 unused views
|
|
-- 2. Keeps 2 actually used views (vw_network_devices, vw_warranty_status)
|
|
-- 3. Creates 11 new purpose-built views for UI pages
|
|
--
|
|
-- Also run these scripts for other pending migrations:
|
|
-- - migration_drop_network_device_tables.sql (migrates servers, drops legacy tables)
|
|
-- - migration_drop_legacy_tables.sql (drops machineoverrides, dualpathassignments, etc.)
|
|
--
|
|
-- LocationOnly machine fix (run manually):
|
|
-- UPDATE machines SET modelnumberid = 1 WHERE islocationonly = 1;
|
|
-- ============================================================================
|
|
|
|
-- Just run view_consolidation.sql
|
|
SELECT 'Please run view_consolidation.sql instead of this script' AS message;
|