laravel-oci8 icon indicating copy to clipboard operation
laravel-oci8 copied to clipboard

Cannot run php artisan migrate

Open mohd-aidi opened this issue 7 years ago • 6 comments

Summary of problem or feature request

When i use command change() to change the column size or type, it return error cannot find column name.

Code snippet of problem

C:\xampp\htdocs\mbpj-elesen>php artisan migrate Migration table created successfully.

[Doctrine\DBAL\Schema\SchemaException]
There is no column with name 'saiz_meja' on table 'el_permit_sementara'.


Schema::connection($this->connection)->table('permit_sementara', function(Blueprint $table) {
            $table->string('saiz_meja', 100)->change();
        });

System details

  • Operating System = Windows 10 64bit
  • PHP Version = PHP 7.0.22 (cli) (built: Aug 1 2017 14:13:55) ( ZTS )
  • Laravel Version = 5.1.*
  • Laravel-OCI8 Version = 5.1.*

mohd-aidi avatar Nov 24 '17 10:11 mohd-aidi

did you recheck that this column exists in your table?..the error message is clearly! or are you on the wrong connection?

mstaack avatar Dec 11 '17 14:12 mstaack

what is clear? if i didnt use function change, the migration run smooth...but when i include the change() it display error..

and yes i do check the table is exist and i'm not in the wrong connection since i can do other thing very well...

mohd-aidi avatar Dec 12 '17 03:12 mohd-aidi

how about you respect the bug report and try to proof me wrong by create the migration...im not on the enemy side here...

mohd-aidi avatar Dec 12 '17 03:12 mohd-aidi

@mohd-aidi were you able to install the required doctrine package as per laravel docs?

yajra avatar Dec 13 '17 05:12 yajra

Will try to replicate this later if I can.

yajra avatar Dec 13 '17 05:12 yajra

@yajra yes all required packages is installed successfully..i can run my system without any complication only function change() cannot be run in migration.

i use mysql also in my server and it migrate the change function well.

mohd-aidi avatar Dec 13 '17 06:12 mohd-aidi

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Nov 23 '22 02:11 github-actions[bot]

This issue was closed because it has been inactive for 7 days since being marked as stale.

github-actions[bot] avatar Dec 01 '22 03:12 github-actions[bot]