Add missing udcclmfiles table to UDC schema
The file tracking table was missing from udctables.sql but existed in the database. Required for clmparser.py incremental imports. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -211,6 +211,23 @@ CREATE TABLE IF NOT EXISTS udcviolations (
|
|||||||
INDEX idx_eventtime (eventtime)
|
INDEX idx_eventtime (eventtime)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||||
|
|
||||||
|
-- CLM file tracking table - tracks imported JSON files (for incremental imports)
|
||||||
|
CREATE TABLE IF NOT EXISTS udcclmfiles (
|
||||||
|
fileid INT AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
filename VARCHAR(180) NOT NULL,
|
||||||
|
machinenumber VARCHAR(10),
|
||||||
|
filehash VARCHAR(32),
|
||||||
|
filemodtime DATETIME,
|
||||||
|
partrunid INT,
|
||||||
|
sessionid INT,
|
||||||
|
recordcount INT DEFAULT 0,
|
||||||
|
importdate DATETIME DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
UNIQUE INDEX uk_filename (filename),
|
||||||
|
UNIQUE INDEX uk_filehash (filehash),
|
||||||
|
INDEX idx_machine (machinenumber),
|
||||||
|
INDEX idx_importdate (importdate)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Useful Views for Reporting
|
-- Useful Views for Reporting
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user