Skip to content

Commit 5e83ff1

Browse files
committed
Adding schema::create for travis
1 parent ac7eae7 commit 5e83ff1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/models/MysqlUser.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ public static function executeSchema()
4242
{
4343
$schema = Schema::connection('mysql');
4444

45+
if (!$schema->hasTable('users'))
46+
{
47+
Schema::connection('mysql')->create('users');
48+
}
49+
4550
if (!$schema->hasColumn('users', 'id'))
4651
{
4752
Schema::connection('mysql')->table('users', function($table)

0 commit comments

Comments
 (0)