@@ -35,11 +35,11 @@ public function testDown()
35
35
{
36
36
$ this ->migrateGeneral ('mysql57 ' );
37
37
38
- $ this ->truncateMigration ();
38
+ $ this ->truncateMigrationsTable ();
39
39
40
40
$ this ->generateMigrations ();
41
41
42
- $ this ->rollbackMigrationsFrom ('mysql57 ' , $ this ->storageMigrations ());
42
+ $ this ->rollbackMigrationsFrom ('mysql57 ' , $ this ->getStorageMigrationsPath ());
43
43
44
44
$ tables = $ this ->getTableNames ();
45
45
$ views = $ this ->getViewNames ();
@@ -79,11 +79,11 @@ public function testSquashDown()
79
79
{
80
80
$ this ->migrateGeneral ('mysql57 ' );
81
81
82
- $ this ->truncateMigration ();
82
+ $ this ->truncateMigrationsTable ();
83
83
84
84
$ this ->generateMigrations (['--squash ' => true ]);
85
85
86
- $ this ->rollbackMigrationsFrom ('mysql57 ' , $ this ->storageMigrations ());
86
+ $ this ->rollbackMigrationsFrom ('mysql57 ' , $ this ->getStorageMigrationsPath ());
87
87
88
88
$ tables = $ this ->getTableNames ();
89
89
$ views = $ this ->getViewNames ();
@@ -97,7 +97,7 @@ public function testTables()
97
97
{
98
98
$ this ->migrateGeneral ('mysql57 ' );
99
99
100
- $ this ->truncateMigration ();
100
+ $ this ->truncateMigrationsTable ();
101
101
102
102
$ this ->generateMigrations ([
103
103
'--tables ' => implode (', ' , [
@@ -109,7 +109,7 @@ public function testTables()
109
109
110
110
$ this ->dropAllTables ();
111
111
112
- $ this ->runMigrationsFrom ('mysql57 ' , $ this ->storageMigrations ());
112
+ $ this ->runMigrationsFrom ('mysql57 ' , $ this ->getStorageMigrationsPath ());
113
113
114
114
$ tables = $ this ->getTableNames ();
115
115
$ views = $ this ->getViewNames ();
@@ -127,7 +127,7 @@ public function testIgnore()
127
127
{
128
128
$ this ->migrateGeneral ('mysql57 ' );
129
129
130
- $ this ->truncateMigration ();
130
+ $ this ->truncateMigrationsTable ();
131
131
132
132
$ allAssets = count ($ this ->getTableNames ()) + count ($ this ->getViewNames ());
133
133
@@ -148,7 +148,7 @@ public function testIgnore()
148
148
149
149
$ this ->dropAllTables ();
150
150
151
- $ this ->runMigrationsFrom ('mysql57 ' , $ this ->storageMigrations ());
151
+ $ this ->runMigrationsFrom ('mysql57 ' , $ this ->getStorageMigrationsPath ());
152
152
153
153
$ tables = $ this ->getTableNames ();
154
154
$ views = $ this ->getViewNames ();
@@ -161,7 +161,7 @@ public function testDefaultIndexNames()
161
161
{
162
162
$ this ->migrateGeneral ('mysql57 ' );
163
163
164
- $ this ->truncateMigration ();
164
+ $ this ->truncateMigrationsTable ();
165
165
166
166
$ this ->generateMigrations ([
167
167
'--tables ' => 'test_index_mysql57 ' ,
@@ -170,7 +170,7 @@ public function testDefaultIndexNames()
170
170
171
171
$ this ->dropAllTables ();
172
172
173
- $ this ->runMigrationsFrom ('mysql57 ' , $ this ->storageMigrations ());
173
+ $ this ->runMigrationsFrom ('mysql57 ' , $ this ->getStorageMigrationsPath ());
174
174
175
175
$ indexes = app (MySQLSchema::class)
176
176
->getTable ('test_index_mysql57 ' )
@@ -219,13 +219,13 @@ public function testDefaultFKNames()
219
219
{
220
220
$ this ->migrateGeneral ('mysql57 ' );
221
221
222
- $ this ->truncateMigration ();
222
+ $ this ->truncateMigrationsTable ();
223
223
224
224
$ this ->generateMigrations (['--default-fk-names ' => true ]);
225
225
226
226
$ this ->dropAllTables ();
227
227
228
- $ this ->runMigrationsFrom ('mysql57 ' , $ this ->storageMigrations ());
228
+ $ this ->runMigrationsFrom ('mysql57 ' , $ this ->getStorageMigrationsPath ());
229
229
230
230
$ foreignKeys = app (MySQLSchema::class)->getTableForeignKeys ('user_profile_mysql57 ' );
231
231
$ foreignKeyNames = $ foreignKeys ->map (function (ForeignKey $ foreignKey ) {
@@ -246,7 +246,7 @@ public function testDefaultFKNames()
246
246
$ foreignKeyNames
247
247
);
248
248
249
- $ this ->rollbackMigrationsFrom ('mysql57 ' , $ this ->storageMigrations ());
249
+ $ this ->rollbackMigrationsFrom ('mysql57 ' , $ this ->getStorageMigrationsPath ());
250
250
}
251
251
252
252
public function testDate ()
@@ -268,15 +268,15 @@ public function testTableFilenameAndViewFilename()
268
268
{
269
269
$ this ->migrateGeneral ('mysql57 ' );
270
270
271
- $ this ->truncateMigration ();
271
+ $ this ->truncateMigrationsTable ();
272
272
273
273
$ this ->generateMigrations ([
274
274
'--table-filename ' => '[datetime_prefix]_custom_[table]_table.php ' ,
275
275
'--view-filename ' => '[datetime_prefix]_custom_[table]_view.php ' ,
276
276
]);
277
277
278
278
$ migrations = [];
279
- foreach (File::files ($ this ->storageMigrations ()) as $ migration ) {
279
+ foreach (File::files ($ this ->getStorageMigrationsPath ()) as $ migration ) {
280
280
$ migrations [] = substr ($ migration ->getFilenameWithoutExtension (), 18 );
281
281
}
282
282
@@ -288,12 +288,12 @@ public function testFKFilename()
288
288
{
289
289
$ this ->migrateGeneral ('mysql57 ' );
290
290
291
- $ this ->truncateMigration ();
291
+ $ this ->truncateMigrationsTable ();
292
292
293
293
$ this ->generateMigrations (['--fk-filename ' => '[datetime_prefix]_custom_[table]_table.php ' ]);
294
294
295
295
$ migrations = [];
296
- foreach (File::files ($ this ->storageMigrations ()) as $ migration ) {
296
+ foreach (File::files ($ this ->getStorageMigrationsPath ()) as $ migration ) {
297
297
$ migrations [] = substr ($ migration ->getFilenameWithoutExtension (), 18 );
298
298
}
299
299
@@ -304,14 +304,14 @@ public function testSkipView()
304
304
{
305
305
$ this ->migrateGeneral ('mysql57 ' );
306
306
307
- $ this ->truncateMigration ();
307
+ $ this ->truncateMigrationsTable ();
308
308
309
309
$ this ->generateMigrations ([
310
310
'--skip-views ' => true ,
311
311
]);
312
312
313
313
$ migrations = [];
314
- foreach (File::files ($ this ->storageMigrations ()) as $ migration ) {
314
+ foreach (File::files ($ this ->getStorageMigrationsPath ()) as $ migration ) {
315
315
$ migrations [] = substr ($ migration ->getFilenameWithoutExtension (), 18 );
316
316
}
317
317
@@ -333,23 +333,23 @@ private function verify(callable $migrateTemplates, callable $generateMigrations
333
333
{
334
334
$ migrateTemplates ();
335
335
336
- $ this ->truncateMigration ();
337
- $ this ->dumpSchemaAs ($ this ->storageSql ('expected.sql ' ));
336
+ $ this ->truncateMigrationsTable ();
337
+ $ this ->dumpSchemaAs ($ this ->getStorageSqlPath ('expected.sql ' ));
338
338
339
339
$ generateMigrations ();
340
340
341
341
$ this ->assertMigrations ();
342
342
343
343
$ this ->dropAllTables ();
344
344
345
- $ this ->runMigrationsFrom ('mysql57 ' , $ this ->storageMigrations ());
345
+ $ this ->runMigrationsFrom ('mysql57 ' , $ this ->getStorageMigrationsPath ());
346
346
347
- $ this ->truncateMigration ();
348
- $ this ->dumpSchemaAs ($ this ->storageSql ('actual.sql ' ));
347
+ $ this ->truncateMigrationsTable ();
348
+ $ this ->dumpSchemaAs ($ this ->getStorageSqlPath ('actual.sql ' ));
349
349
350
350
$ this ->assertFileEqualsIgnoringOrder (
351
- $ this ->storageSql ('expected.sql ' ),
352
- $ this ->storageSql ('actual.sql ' )
351
+ $ this ->getStorageSqlPath ('expected.sql ' ),
352
+ $ this ->getStorageSqlPath ('actual.sql ' )
353
353
);
354
354
}
355
355
}
0 commit comments