Commit 5e83ff1a authored by Jens Segers's avatar Jens Segers

Adding schema::create for travis

parent ac7eae77
...@@ -42,6 +42,11 @@ class MysqlUser extends Eloquent { ...@@ -42,6 +42,11 @@ class MysqlUser extends Eloquent {
{ {
$schema = Schema::connection('mysql'); $schema = Schema::connection('mysql');
if (!$schema->hasTable('users'))
{
Schema::connection('mysql')->create('users');
}
if (!$schema->hasColumn('users', 'id')) if (!$schema->hasColumn('users', 'id'))
{ {
Schema::connection('mysql')->table('users', function($table) Schema::connection('mysql')->table('users', function($table)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment