Skip to content

Conversation

ghostwriter
Copy link
Contributor

@ghostwriter ghostwriter commented Dec 15, 2020

I used thisdraft.yml file.

models:
   cooltable:
      coolcool: id foreign:coolcool.id index:custom_index_coolcool
      foobar: id foreign:foobars.id index:custom_index_foobar

reverse-engineered from the generated code on #402

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▕         });

Closes #402

Nathan E added 2 commits December 15, 2020 15:49
# Regex: removes all leading and trailing double and single quotes from the string.
@jasonmccreary
Copy link
Collaborator

Thanks @nathane. Email me when you have a minute.

@jasonmccreary jasonmccreary merged commit e3da417 into laravel-shift:master Dec 15, 2020
@ghostwriter ghostwriter deleted the bugfix/custom-index-names branch December 15, 2020 23:17
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

Successfully merging this pull request may close these issues.

Custom indexes has no strings, php detects constant.
2 participants