Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Closed
atrauzzi opened this issue Aug 6, 2013 · 9 comments
Closed

Migrations attempting to re-create migration table when prefixed #2043

atrauzzi opened this issue Aug 6, 2013 · 9 comments

Comments

@atrauzzi
Copy link
Contributor

atrauzzi commented Aug 6, 2013

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.

@ashmenon
Copy link

ashmenon commented Aug 7, 2013

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()

@JoostK
Copy link
Contributor

JoostK commented Aug 7, 2013

That has been changed two days ago because of a recent issue someone posted (see #2031)

@hisorange
Copy link

Yup, solved the problem for me to remove the extra prefix in the Illuminate\Database\Migrations\DatabaseMigrationRepository line 140#

@johndwells
Copy link

I'm running into this one too. Amending method DatabaseMigrationRepository::repositoryExists() to not pass along the prefix works...

@taylorotwell
Copy link
Member

Fixed.

@FractalizeR
Copy link
Contributor

I think in latest Laravel version this bug comes again. At least it reproduces for me with Postgres databases.

@taylorotwell
Copy link
Member

No need to set the prefix there I don't think. If you have a prefix
configured in your database configuration settings it should carry over to
migrations.

On Wed, Jan 21, 2015 at 3:10 AM, Vladislav Rastrusny <
[email protected]> wrote:

I think in latest Laravel version this bug comes again. At least it
reproduces for me with Postgres databases.


Reply to this email directly or view it on GitHub
#2043 (comment).

@FractalizeR
Copy link
Contributor

I think not everyone stores migration table in the same schema as all other project data.

@matyunin
Copy link

@FractalizeR +1

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

8 participants