Voyager: Please add support sqlsrv driver.

Created on 4 Jan 2017  路  7Comments  路  Source: the-control-group/voyager

I've try to use voyager with mssql 2008 with sqlsrv driver and i found problem about table info and bread. I try to fix that with add sqlsrv case in DBSchema.php like this

 case 'sqlsrv':
    $query = "SELECT table_name FROM information_schema.tables";
    break;

after add sqlsrv case i can create table but still error when create bread or view table info.

Thank you, btw voyager is a good one laravel backend.

enhancement help wanted

Most helpful comment

We should work on that.

All 7 comments

We need to support this, as it's one of the DBMS that Laravel supports OOTB (5.3, 5.4, 5.5). @marktopper, @tnylea, @akazorg

We're certainly open to pull requests

We should work on that.

hello, any new about this? thanks!

please re-open this. This is a valid concern.

It's not closed...?

Any news about it? I am getting this error:

Migrating the database tables into your application
Migrating: 2017_01_15_000000_make_table_name_nullable_in_permissions_table

   PDOException  : SQLSTATE[IM001]: Driver does not support this function: driver does not support that attribute

  at /Users/marcellopato/Sites/class/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:52
    48|      * {@inheritdoc}
    49|      */
    50|     public function getServerVersion()
    51|     {
  > 52|         return PDO::getAttribute(PDO::ATTR_SERVER_VERSION);
    53|     }
    54| 
    55|     /**
    56|      * {@inheritdoc}

  Exception trace:

  1   PDO::getAttribute()
      /Users/marcellopato/Sites/class/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:52

  2   Doctrine\DBAL\Driver\PDOConnection::getServerVersion()
      /Users/marcellopato/Sites/class/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:467

  Please use the argument -v to see more details.

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

winex01 picture winex01  路  3Comments

Nagendra1421 picture Nagendra1421  路  3Comments

rayqiri picture rayqiri  路  3Comments

abacram picture abacram  路  3Comments

craigb88 picture craigb88  路  3Comments