DB Forge Can't DROP 'table_name'; check that column/key exists - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: Issues (https://forum.codeigniter.com/forumdisplay.php?fid=19) +--- Thread: DB Forge Can't DROP 'table_name'; check that column/key exists (/showthread.php?tid=64924) |
DB Forge Can't DROP 'table_name'; check that column/key exists - Human Fly - 04-11-2016 I'm up against a weird issue here in version 3.0.6 that I still can't figure out despite hacking away at the DB_forge class trying to make sense of what's wrong. Decided to implement migrations and have had mixed results. Stumped with this right now: Created a new migration class: Code: <?php defined('BASEPATH') OR exit('No direct script access allowed'); When the migration runs I get this: A Database Error Occurred Error Number: 1091 Can't DROP 'caption'; check that column/key exists ALTER TABLE `paragraph_image` DROP COLUMN `caption` Filename: migrations/20160412120700_paragraph_image.php Line Number: 11 The field is actually removed from the table as hoped so the query itself is sound, but the error is thrown regardless and is the same for any field name and table. The query itself is executed on line 615 of system/database/DB_forge.php. Anyone come across this one and more importantly know how to fix it? Thank you. |