-
Notifications
You must be signed in to change notification settings - Fork 11.4k
Migrations attempting to re-create migration table when prefixed #2043
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
Comments
I have found the issue. In Illuminate\Database\Schema\MySqlBuilder::hasTable(), the $table variable already comes with the prefix, but another prefix is being appended within the function. This might be the result of a fix done for this issue: #3, as I'm noticing the first prefix was appended in Illuminate\Database\Migrations\DatabaseMigrationRepository::repositoryExists() |
That has been changed two days ago because of a recent issue someone posted (see #2031) |
Yup, solved the problem for me to remove the extra prefix in the Illuminate\Database\Migrations\DatabaseMigrationRepository line 140# |
I'm running into this one too. Amending method DatabaseMigrationRepository::repositoryExists() to not pass along the prefix works... |
Fixed. |
I think in latest Laravel version this bug comes again. At least it reproduces for me with Postgres databases. |
No need to set the prefix there I don't think. If you have a prefix On Wed, Jan 21, 2015 at 3:10 AM, Vladislav Rastrusny <
|
I think not everyone stores migration table in the same schema as all other project data. |
@FractalizeR +1 |
See issue #47, which is similar to what I'm encountering. Any time I try to run a migration for a package, L4 seems to be wanting to re-create the migrations table.
The text was updated successfully, but these errors were encountered: