@@ -41,10 +41,10 @@ |
||
41 | 41 | $name = $directive->name->value; |
42 | 42 | |
43 | 43 | switch ($name) { |
44 | - case 'belongToMany': |
|
45 | - case 'morphedByMany': |
|
46 | - throw new DirectiveException("Foreign keys cannot be used with many-to-many-relationships. Check field: " . $field->name); |
|
47 | - break; |
|
44 | + case 'belongToMany': |
|
45 | + case 'morphedByMany': |
|
46 | + throw new DirectiveException("Foreign keys cannot be used with many-to-many-relationships. Check field: " . $field->name); |
|
47 | + break; |
|
48 | 48 | } |
49 | 49 | } |
50 | 50 |
@@ -24,7 +24,7 @@ |
||
24 | 24 | } |
25 | 25 | $generator->postCreateCode[] = |
26 | 26 | "if (env('APP_ENV') !== 'testing') { |
27 | - DB::statement('ALTER TABLE " . $generator->getTableName() . |
|
27 | + DB::statement('ALTER TABLE " . $generator->getTableName() . |
|
28 | 28 | " ADD FULLTEXT fulltext_index (`" . implode('`, `', $indexFields) . "`)'); |
29 | 29 | }"; |
30 | 30 | } |