This commit is contained in:
Gilles Soulier
2026-01-05 16:08:01 +01:00
parent dcba044cd6
commit c67befc549
2215 changed files with 26743 additions and 329 deletions

View File

@@ -0,0 +1,8 @@
-- Migration 007: Add cli_yaml and cli_raw fields
-- Split CLI field into structured YAML and raw Markdown
ALTER TABLE peripherals ADD COLUMN cli_yaml TEXT;
ALTER TABLE peripherals ADD COLUMN cli_raw TEXT;
-- Optional: Migrate existing cli data to cli_raw for backward compatibility
UPDATE peripherals SET cli_raw = cli WHERE cli IS NOT NULL AND cli != '';

View File

@@ -0,0 +1,11 @@
-- Migration 008: Add specifications and notes fields
-- Date: 2025-12-31
-- Add specifications field (Markdown format - technical specs from imported .md files)
ALTER TABLE peripherals ADD COLUMN specifications TEXT;
-- Add notes field (Markdown format - free notes)
ALTER TABLE peripherals ADD COLUMN notes TEXT;
-- Optional: Migrate existing notes from other fields if needed
-- (No migration needed as this is a new field)

View File

@@ -0,0 +1,8 @@
-- Migration 009: Add thumbnail_path to peripheral_photos
-- Date: 2025-12-31
-- Add thumbnail_path field (path to thumbnail image)
ALTER TABLE peripheral_photos ADD COLUMN thumbnail_path TEXT;
-- Thumbnails will be stored in uploads/peripherals/photos/{id}/thumbnail/
-- and generated automatically on upload

View File

@@ -0,0 +1,13 @@
-- Migration 010: Add USB manufacturer and product strings
-- Date: 2025-12-31
-- Description: Add iManufacturer and iProduct fields for USB device information
-- Add iManufacturer field (USB manufacturer string from lsusb)
ALTER TABLE peripherals ADD COLUMN iManufacturer TEXT;
-- Add iProduct field (USB product string from lsusb)
ALTER TABLE peripherals ADD COLUMN iProduct TEXT;
-- Create indexes for searching
CREATE INDEX IF NOT EXISTS idx_peripherals_imanufacturer ON peripherals(iManufacturer);
CREATE INDEX IF NOT EXISTS idx_peripherals_iproduct ON peripherals(iProduct);

View File

@@ -0,0 +1,8 @@
-- Migration 011: Add fabricant and produit fields
-- Date: 2025-12-31
ALTER TABLE peripherals ADD COLUMN fabricant TEXT;
ALTER TABLE peripherals ADD COLUMN produit TEXT;
CREATE INDEX IF NOT EXISTS idx_peripherals_fabricant ON peripherals(fabricant);
CREATE INDEX IF NOT EXISTS idx_peripherals_produit ON peripherals(produit);

View File

@@ -0,0 +1,5 @@
-- Migration 012: Add usb_device_id field
-- Date: 2025-12-31
ALTER TABLE peripherals ADD COLUMN usb_device_id TEXT;
CREATE INDEX IF NOT EXISTS idx_peripherals_usb_device_id ON peripherals(usb_device_id);