Error
SQL query: Copy
-- Patch 31 — Members belong to a single fund via members.fund_id
-- Run this in phpMyAdmin (import) or MySQL CLI.
-- 1) Add column (nullable initially)
ALTER TABLE `members` ADD COLUMN `fund_id` INT NULL AFTER `email`;
MySQL said:
#1060 - Duplicate column name 'fund_id'
";s:11:"go_back_url";s:57:"index.php?route=/database/import&db=pulsehostuk9_teafund1";}is_multi_query|b:0;sql_history|a:7:{i:0;a:3:{s:2:"db";s:21:"pulsehostuk9_teafund1";s:5:"table";s:0:"";s:8:"sqlquery";s:268:"-- 3) Enforce NOT NULL & add FK + index
ALTER TABLE `members`
MODIFY `fund_id` INT NOT NULL,
ADD INDEX `idx_members_fund` (`fund_id`),
ADD CONSTRAINT `fk_members_fund`
FOREIGN KEY (`fund_id`) REFERENCES `funds`(`id`)
ON DELETE RESTRICT ON UPDATE CASCADE;";}i:1;a:3:{s:2:"db";s:18:"information_schema";s:5:"table";s:7:"columns";s:8:"sqlquery";s:172:"SELECT COLUMN_NAME, COLUMN_TYPE, IS_NULLABLE, COLUMN_KEY
FROM information_schema.columns
WHERE table_schema = DATABASE() AND table_name='members' AND column_name='fund_id';";}i:2;a:3:{s:2:"db";s:18:"information_schema";s:5:"table";s:7:"columns";s:8:"sqlquery";s:174:"SELECT COLUMN_NAME, COLUMN_TYPE, IS_NULLABLE, COLUMN_KEY
FROM information_schema.columns
WHERE table_schema = DATABASE() AND table_name='members' AND column_name='fund_id';";}i:3;a:3:{s:2:"db";s:21:"pulsehostuk9_teafund1";s:5:"table";s:0:"";s:8:"sqlquery";s:222:"-- Patch 31 — Members belong to a single fund via members.fund_id
-- Run this in phpMyAdmin (import) or MySQL CLI.
-- 1) Add column (nullable initially)
ALTER TABLE `members` ADD COLUMN `fund_id` INT NULL AFTER `email`;";}i:4;a:3:{s:2:"db";s:21:"pulsehostuk9_teafund1";s:5:"table";s:0:"";s:8:"sqlquery";s:222:"-- Patch 31 — Members belong to a single fund via members.fund_id
-- Run this in phpMyAdmin (import) or MySQL CLI.
-- 1) Add column (nullable initially)
ALTER TABLE `members` ADD COLUMN `fund_id` INT NULL AFTER `email`;";}i:5;a:3:{s:2:"db";s:21:"pulsehostuk9_teafund1";s:5:"table";s:7:"members";s:8:"sqlquery";s:23:"SELECT * FROM `members`";}i:6;a:3:{s:2:"db";s:21:"pulsehostuk9_teafund1";s:5:"table";s:5:"funds";s:8:"sqlquery";s:21:"SELECT * FROM `funds`";}}errors|a:0:{}