Eduardo G. Posted February 6, 2019 Share Posted February 6, 2019 Hi all! I need to rename some columns when updating custom modules, but the Schema is giving me headache. I want to use renameColumn method, but can't find the way. This is what i tried: Capsule::schema()->table('custom_table', function ($table) { $table->renameColumn('field_from', 'field_to'); }); Then I get the error. Error: Class 'Doctrine\DBAL\Driver\PDOMySql\Driver' What am I missing? Is there any other way? Thanks all 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted February 9, 2019 Share Posted February 9, 2019 (edited) I suppose that that class is not included in WHMCS. From my experience there are many missing pieces like for example hasTable... that's why I refuse to use Capsule. I can't rely on such a class that lacks of many crucial methods. Edited February 9, 2019 by Kian 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.