Add Part Marker machinetypeid and update editpc.asp filtering
sql/add_genspect_partmarker_machinetypes.sql: - Add Genspect (machinetypeid 45) and Part Marker (machinetypeid 46) editpc.asp: - Add pctypeid 10 (Part Marker) -> machinetypeid 46 filter - Fix comment for Genspect to show machinetypeid 45 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
-- Add Genspect/EAS1000 equipment type
|
||||
-- Run on production database
|
||||
-- Date: 2025-12-09
|
||||
|
||||
-- Check if Genspect machinetype already exists
|
||||
SET @genspect_exists = (SELECT COUNT(*) FROM machinetypes WHERE machinetype = 'Genspect');
|
||||
|
||||
-- Insert only if it doesn't exist
|
||||
INSERT INTO machinetypes (machinetype, isactive)
|
||||
SELECT 'Genspect', 1
|
||||
FROM dual
|
||||
WHERE @genspect_exists = 0;
|
||||
|
||||
-- Show result
|
||||
SELECT machinetypeid, machinetype FROM machinetypes WHERE machinetype = 'Genspect';
|
||||
28
sql/add_genspect_partmarker_machinetypes.sql
Normal file
28
sql/add_genspect_partmarker_machinetypes.sql
Normal file
@@ -0,0 +1,28 @@
|
||||
-- Add Genspect/EAS1000 and Part Marker equipment types
|
||||
-- Run on production database
|
||||
-- Date: 2025-12-09
|
||||
|
||||
-- ============================================================================
|
||||
-- Add Genspect machinetypeid
|
||||
-- ============================================================================
|
||||
SET @genspect_exists = (SELECT COUNT(*) FROM machinetypes WHERE machinetype = 'Genspect');
|
||||
|
||||
INSERT INTO machinetypes (machinetype, isactive)
|
||||
SELECT 'Genspect', 1
|
||||
FROM dual
|
||||
WHERE @genspect_exists = 0;
|
||||
|
||||
-- ============================================================================
|
||||
-- Add Part Marker machinetypeid
|
||||
-- ============================================================================
|
||||
SET @partmarker_exists = (SELECT COUNT(*) FROM machinetypes WHERE machinetype = 'Part Marker');
|
||||
|
||||
INSERT INTO machinetypes (machinetype, isactive)
|
||||
SELECT 'Part Marker', 1
|
||||
FROM dual
|
||||
WHERE @partmarker_exists = 0;
|
||||
|
||||
-- ============================================================================
|
||||
-- Show results
|
||||
-- ============================================================================
|
||||
SELECT machinetypeid, machinetype FROM machinetypes WHERE machinetype IN ('Genspect', 'Part Marker');
|
||||
Reference in New Issue
Block a user