dolibarr.bankimport/sql/update_1.7.sql
data 2f0f438ec4 Add update SQL script for v1.7 migrations
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>
2026-02-20 09:15:32 +01:00

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);