Thinner check lines; second signature line toggle
- Halve all check line thicknesses (line_thick * 0.5) - Add second_signature column to account table with runtime migration - Account settings toggle: enables a second signature line drawn 0.25" above the primary signature line, matching its width and thickness
This commit is contained in:
@@ -93,6 +93,12 @@ if (!lfInfo.some(c => c.name === 'account_id')) {
|
||||
`);
|
||||
}
|
||||
|
||||
// Migration: add second_signature column to account
|
||||
const acctInfo = db.prepare('PRAGMA table_info(account)').all();
|
||||
if (!acctInfo.some(c => c.name === 'second_signature')) {
|
||||
db.exec('ALTER TABLE account ADD COLUMN second_signature INTEGER NOT NULL DEFAULT 0');
|
||||
}
|
||||
|
||||
// Create account_id indexes unconditionally (safe after migrations have run)
|
||||
db.exec(`
|
||||
CREATE INDEX IF NOT EXISTS idx_checks_account ON checks(account_id);
|
||||
|
||||
Reference in New Issue
Block a user