Php 拉威尔5.5级';条令\DBAL\Driver\PDOPgSql\Driver';找不到
我在使用postgras 9.6的laravel 5.5中工作,我设法运行所有迁移和回滚,但当我想运行迁移以重命名表中的一列时,我发现Php 拉威尔5.5级';条令\DBAL\Driver\PDOPgSql\Driver';找不到,php,migration,laravel-5.5,Php,Migration,Laravel 5.5,我在使用postgras 9.6的laravel 5.5中工作,我设法运行所有迁移和回滚,但当我想运行迁移以重命名表中的一列时,我发现类'doctor\DBAL\Driver\PDOPgSql\Driver'未找到错误,hire是迁移文件: class CreateRenameApplicantIdInBillToApplicationId extends Migration { } 任何帮助都将不胜感激。对于Linux中的PHP7,您可以通过 sudo-apt-get-install php
类'doctor\DBAL\Driver\PDOPgSql\Driver'未找到
错误,hire是迁移文件:
class CreateRenameApplicantIdInBillToApplicationId extends Migration
{
}
任何帮助都将不胜感激。对于Linux中的PHP7,您可以通过
sudo-apt-get-install php7.0-pgsql
要重命名列Laravel 5.x,需要在composer.json文件中安装doctor/dbal包
编写器需要条令/dbal
我想这对你有帮助。谢谢。[这是我使用的现有表中重命名列的参考
public function up()
{
Schema::table('bill_bills', function($table) {
$table->renameColumn('applicant_id', 'application_id');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('bill_bills', function($table) {
$table->renameColumn('applicantion_id', 'applicant_id');
});
}