-
Notifications
You must be signed in to change notification settings - Fork 288
Closed
Labels
bugSomething isn't workingSomething isn't workingpendingThis issue is pending reviewThis issue is pending review
Description
- Laravel Version: 8.x (latest)
- PHP Version: 7.4.13
- Blueprint Version: 1.19
- Platform: Mac | Windows | Linux
Issue:
When generating custom indexes the index will be printed without ''
which causes it to fail on the migrations.
Schema::disableForeignKeyConstraints();
17▕
18▕ Schema::create('cooltable', function (Blueprint $table) {
19▕ $table->id();
➜ 20▕ $table->foreignId('coolcool')->constrained()->cascadeOnDelete()->index(custom_index_coolcool);
21▕ $table->foreignId('foobar')->constrained()->cascadeOnDelete()->index(custom_index_foobar);
22▕ });
draft.yaml:
# PLEASE PASTE THE DRAFT FILE WHICH REPRODUCES THE ISSUE HERE...
Draft is not required, a custom index will fail because it misses strings, therefore php detects is as a constant which is not defined.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingpendingThis issue is pending reviewThis issue is pending review