|
4 | 4 |
|
5 | 5 | /* |
6 | 6 | |-------------------------------------------------------------------------- |
7 | | - | Migration Repository Table |
| 7 | + | Entity Manager Migrations Configuration |
8 | 8 | |-------------------------------------------------------------------------- |
9 | 9 | | |
10 | | - | This table keeps track of all the migrations that have already run for |
11 | | - | your application. Using this information, we can determine which of |
12 | | - | the migrations on disk haven't actually been run in the database. |
| 10 | + | Each entity manager can have a custom migration configuration. Provide |
| 11 | + | the name of the entity manager as the key, then duplicate the settings. |
| 12 | + | This will allow generating custom migrations per EM instance and not have |
| 13 | + | collisions when executing them. |
13 | 14 | | |
14 | 15 | */ |
15 | | - 'table' => 'migrations', |
16 | | - /* |
17 | | - |-------------------------------------------------------------------------- |
18 | | - | Migration Directory |
19 | | - |-------------------------------------------------------------------------- |
20 | | - | |
21 | | - | This directory is where all migrations will be stored |
22 | | - | |
23 | | - */ |
24 | | - 'directory' => database_path('migrations'), |
25 | | - /* |
26 | | - |-------------------------------------------------------------------------- |
27 | | - | Migration Namespace |
28 | | - |-------------------------------------------------------------------------- |
29 | | - | |
30 | | - | This namespace will be used on all migrations |
31 | | - | |
32 | | - */ |
33 | | - 'namespace' => 'Database\\Migrations', |
34 | | - /* |
35 | | - |-------------------------------------------------------------------------- |
36 | | - | Migration Repository Table |
37 | | - |-------------------------------------------------------------------------- |
38 | | - | |
39 | | - | Tables which are filtered by Regular Expression. You optionally |
40 | | - | exclude or limit to certain tables. The default will |
41 | | - | filter all tables. |
42 | | - | |
43 | | - */ |
44 | | - 'schema' => [ |
45 | | - 'filter' => '/^(?).*$/' |
46 | | - ] |
| 16 | + 'default' => [ |
| 17 | + /* |
| 18 | + |-------------------------------------------------------------------------- |
| 19 | + | Migration Repository Table |
| 20 | + |-------------------------------------------------------------------------- |
| 21 | + | |
| 22 | + | This table keeps track of all the migrations that have already run for |
| 23 | + | your application. Using this information, we can determine which of |
| 24 | + | the migrations on disk haven't actually been run in the database. |
| 25 | + | |
| 26 | + */ |
| 27 | + 'table' => 'migrations', |
| 28 | + /* |
| 29 | + |-------------------------------------------------------------------------- |
| 30 | + | Migration Directory |
| 31 | + |-------------------------------------------------------------------------- |
| 32 | + | |
| 33 | + | This directory is where all migrations will be stored for this entity |
| 34 | + | manager. User different directories for each entity manager. |
| 35 | + | |
| 36 | + */ |
| 37 | + 'directory' => database_path('migrations'), |
| 38 | + /* |
| 39 | + |-------------------------------------------------------------------------- |
| 40 | + | Migration Namespace |
| 41 | + |-------------------------------------------------------------------------- |
| 42 | + | |
| 43 | + | This namespace will be used on all migrations. To prevent collisions, add |
| 44 | + | the entity manager name (connection name). |
| 45 | + | |
| 46 | + */ |
| 47 | + 'namespace' => 'Database\\Migrations', |
| 48 | + /* |
| 49 | + |-------------------------------------------------------------------------- |
| 50 | + | Migration Repository Table |
| 51 | + |-------------------------------------------------------------------------- |
| 52 | + | |
| 53 | + | Tables which are filtered by Regular Expression. You optionally |
| 54 | + | exclude or limit to certain tables. The default will |
| 55 | + | filter all tables. |
| 56 | + | |
| 57 | + */ |
| 58 | + 'schema' => [ |
| 59 | + 'filter' => '/^(?!password_resets|failed_jobs).*$/' |
| 60 | + ] |
| 61 | + ], |
47 | 62 | ]; |
0 commit comments