Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yabs migration error on dropping multiple columns #59

Closed
Gamerboy59 opened this issue Jul 23, 2022 · 2 comments
Closed

yabs migration error on dropping multiple columns #59

Gamerboy59 opened this issue Jul 23, 2022 · 2 comments

Comments

@Gamerboy59
Copy link
Contributor

This is another error of the recent database migrations which appears when using sqlite.

BadMethodCallException

  SQLite doesn't support multiple calls to dropColumn / renameColumn in a single modification.

  at vendor/laravel/framework/src/Illuminate/Database/Schema/Blueprint.php:156
    152▕     protected function ensureCommandsAreValid(Connection $connection)
    153▕     {
    154▕         if ($connection instanceof SQLiteConnection) {
    155▕             if ($this->commandsNamed(['dropColumn', 'renameColumn'])->count() > 1) {
  ➜ 156▕                 throw new BadMethodCallException(
    157▕                     "SQLite doesn't support multiple calls to dropColumn / renameColumn in a single modification."
    158▕                 );
    159▕             }
    160▕

      +5 vendor frames
  6   database/migrations/2022_07_20_011250_add_columns_to_yabs_table.php:29
      Illuminate\Support\Facades\Facade::__callStatic()

      +38 vendor frames
  45  artisan:37
      Illuminate\Foundation\Console\Kernel::handle()
@cp6
Copy link
Owner

cp6 commented Jul 25, 2022

Please see if 3b9ff1ab85ccfe1e7a2240881ad491447e75703c fixed it.

@Gamerboy59
Copy link
Contributor Author

Thanks for the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants