690602:1245 ADR-033-233 #02
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
-- File: specs/03-Data-and-Storage/deltas/2026-06-02-add-temp-attachment-id-to-migration-review-queue.rollback.sql
|
||||
-- Change Log:
|
||||
-- - 2026-06-02: ลบคอลัมน์ temp_attachment_id ออกจากตาราง migration_review_queue
|
||||
|
||||
-- Rollback Delta: ลบคอลัมน์ temp_attachment_id ออกจากตาราง migration_review_queue
|
||||
-- Date: 2026-06-02
|
||||
-- Related ADR: ADR-028, ADR-023A
|
||||
-- Applied in: v1.9.8
|
||||
|
||||
ALTER TABLE migration_review_queue
|
||||
DROP COLUMN temp_attachment_id;
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
-- File: specs/03-Data-and-Storage/deltas/2026-06-02-add-temp-attachment-id-to-migration-review-queue.sql
|
||||
-- Change Log:
|
||||
-- - 2026-06-02: เพิ่มคอลัมน์ temp_attachment_id ในตาราง migration_review_queue เพื่อแก้บั๊ก CleanupTempFilesWorker
|
||||
|
||||
-- Delta: เพิ่มคอลัมน์ temp_attachment_id ในตาราง migration_review_queue
|
||||
-- Date: 2026-06-02
|
||||
-- Related ADR: ADR-028, ADR-023A
|
||||
-- Applied in: v1.9.8
|
||||
|
||||
-- ------------------------------------------------------------
|
||||
-- การปรับปรุงตาราง migration_review_queue (Schema changes)
|
||||
-- ------------------------------------------------------------
|
||||
|
||||
ALTER TABLE migration_review_queue
|
||||
ADD COLUMN temp_attachment_id INT NULL COMMENT 'Temporary attachment ID referencing attachments.id (ADR-028)'
|
||||
AFTER STATUS;
|
||||
@@ -1512,6 +1512,7 @@ CREATE TABLE migration_review_queue (
|
||||
confidence_score DECIMAL(5, 4) NOT NULL COMMENT 'AI confidence score 0.0000-1.0000',
|
||||
ocr_used TINYINT(1) NOT NULL DEFAULT 0 COMMENT 'ระบุว่าใช้ OCR path หรือไม่',
|
||||
STATUS ENUM('PENDING', 'APPROVED', 'IMPORTED', 'REJECTED') NOT NULL DEFAULT 'PENDING',
|
||||
temp_attachment_id INT NULL COMMENT 'Temporary attachment ID referencing attachments.id (ADR-028)',
|
||||
reviewed_by INT NULL COMMENT 'Internal users.user_id ของผู้ review',
|
||||
reviewed_at DATETIME NULL COMMENT 'เวลาที่ review record',
|
||||
rejection_reason VARCHAR(500) NULL COMMENT 'เหตุผลเมื่อ reject',
|
||||
|
||||
Reference in New Issue
Block a user