TypiCMS/Base

Method Illuminate\Database\Schema\MySqlBuilder::getAllTables does not exist.

Closed this issue · 3 comments

When trying to install i keep getting this, Any ideas what is causing this.

I am trying to install it using mysql.

getalltables is not a laravel 11 function

https://laravel.com/api/10.x/Illuminate/Database/Schema/Builder.html#method_getAllTables

image

I've never seen this error.

i found the issue. Laravel 11 no longer has this function.

The issue is Line 113
https://github.com/TypiCMS/Core/blob/master/src/Commands/Database.php

// Migrate DB if (count(Schema::getAllTables()) !== 0) { error('The database ' . $dbName . ' is not empty, no migration and seed were done.'); } else { $this->callSilently('migrate'); $this->callSilently('db:seed'); info('The database ' . $dbName . ' was migrated and seeded.'); }

The getAllTables has to be changed since laravel 11 no longer supports this function. In my case I just removed it but should be fixed.

Not sure why but if you clone the repo it will do this however if you use the instructions to create a new application this is not an issue. So make sure not to just clone the repo.