Adds fk_statement column for existing installations that were created before this column was added to the schema. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
9 lines
455 B
SQL
9 lines
455 B
SQL
-- Update script for BankImport module v1.7
|
|
-- Run this if upgrading from earlier versions
|
|
|
|
-- Add fk_statement column if not exists
|
|
ALTER TABLE llx_bankimport_transaction ADD COLUMN IF NOT EXISTS fk_statement INTEGER DEFAULT NULL;
|
|
|
|
-- Add index for fk_statement if not exists
|
|
-- Note: MySQL/MariaDB syntax - check before running on other DB
|
|
-- CREATE INDEX IF NOT EXISTS idx_bankimport_transaction_statement ON llx_bankimport_transaction (fk_statement);
|