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

Problem changing table when run tests using in memory sqlite after upgrade on v2.10.3. #4244

Closed
DarkPrinceWW opened this issue Sep 2, 2020 · 4 comments

Comments

@DarkPrinceWW
Copy link

DarkPrinceWW commented Sep 2, 2020

Bug Report

Laravel migration broken after upgrade.

Q A
BC Break yes
Version 2.10.3

Summary

Laravel migration on sqlite

Schema::table('table_two', function (Blueprint $table) {
    $table->string('name')->change();
});

SQLSTATE[HY000]: General error: 1 no such index: IDX_E234CAE293411876 (SQL: DROP INDEX IDX_E234CAE293411876)

How to reproduce

Schema::create('table_one', function (Blueprint $table) {
    $table->bigIncrements('id');
    $table->string('name');
});

Schema::create('table_two', function (Blueprint $table) {
    $table->bigIncrements('id');
    $table->string('name');
    $table->unsignedInteger('reference_id');

    $table->foreign('reference_id')
        ->references('id')
        ->on('table_one')
        ->onDelete('cascade');
});

Schema::table('table_two', function (Blueprint $table) {
    $table->string('name')->change();
});

Source of the problem

#3762
85a983c#diff-3fa09ba089913d40a1fbeb10b8cb8536R773

@mfn
Copy link

mfn commented Sep 2, 2020

Seems to be a duplicate of #4243 , can you check?

@MyIgel
Copy link
Contributor

MyIgel commented Sep 2, 2020

Its the same problem, yes

@greg0ire
Copy link
Member

greg0ire commented Sep 2, 2020

Duplicate of #4243

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants