File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
src/Illuminate/Database/Schema/Grammars
tests/Integration/Database Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ public function compileTables($database)
88
88
return sprintf (
89
89
'select table_name as `name`, (data_length + index_length) as `size`, '
90
90
.'table_comment as `comment`, engine as `engine`, table_collation as `collation` '
91
- ."from information_schema.tables where table_schema = %s and table_type = 'BASE TABLE' "
91
+ ."from information_schema.tables where table_schema = %s and table_type in ( 'BASE TABLE', 'SYSTEM VERSIONED') "
92
92
.'order by table_name ' ,
93
93
$ this ->quoteString ($ database )
94
94
);
Original file line number Diff line number Diff line change @@ -367,4 +367,21 @@ public function testGetCompoundForeignKeys()
367
367
&& $ foreign ['foreign_columns ' ] === ['b ' , 'a ' ]
368
368
));
369
369
}
370
+
371
+ public function testSystemVersionedTables ()
372
+ {
373
+ if ($ this ->driver !== 'mysql ' || ! $ this ->getConnection ()->isMaria ()) {
374
+ $ this ->markTestSkipped ('Test requires a MariaDB connection. ' );
375
+ }
376
+
377
+ DB ::statement ('create table `test` (`foo` int) WITH system versioning; ' );
378
+
379
+ $ this ->assertTrue (Schema::hasTable ('test ' ));
380
+
381
+ Schema::dropAllTables ();
382
+
383
+ $ this ->artisan ('migrate:install ' );
384
+
385
+ DB ::statement ('create table `test` (`foo` int) WITH system versioning; ' );
386
+ }
370
387
}
You can’t perform that action at this time.
0 commit comments