bmc_hub/migrations/023_subscriptions_lock.sql
Christian 38fa3b6c0a feat: Add subscriptions lock feature to customers
- Added a new column `subscriptions_locked` to the `customers` table to manage subscription access.
- Implemented a script to create new modules from a template, including updates to various files (module.json, README.md, router.py, views.py, and migration SQL).
- Developed a script to import BMC Office subscriptions from an Excel file into the database, including error handling and statistics reporting.
- Created a script to lookup and update missing CVR numbers using the CVR.dk API.
- Implemented a script to relink Hub customers to e-conomic customer numbers based on name matching.
- Developed scripts to sync CVR numbers from Simply-CRM and vTiger to the local customers database.
2025-12-13 12:06:28 +01:00

8 lines
351 B
SQL

-- Migration 023: Add subscriptions lock feature to customers
-- Allows locking subscription management for specific customers
ALTER TABLE customers
ADD COLUMN IF NOT EXISTS subscriptions_locked BOOLEAN DEFAULT FALSE;
COMMENT ON COLUMN customers.subscriptions_locked IS 'When true, subscription management is locked (read-only) for this customer';