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

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

Closed
silicahd opened this issue Jul 6, 2024 · 3 comments

Comments

@silicahd
Copy link

silicahd commented Jul 6, 2024

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

@sdebacker
Copy link
Contributor

sdebacker commented Jul 8, 2024

I've never seen this error.

@silicahd
Copy link
Author

silicahd commented Jul 9, 2024

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.

@silicahd
Copy link
Author

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.

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