theDisco/phpmig — comment on commit 8ac167c7f3abfc09e4d9d8573b62989f8864d13e
File:  line 0
By theDisco:

Yeah, that was my initial idea, but it doesn't take into consideration a case when someone extends the ZF adapter and provides a custom one. I'd rather have it as a part of the Zend_Db_Adapter API. The code would be really similar to what you wrote:

``` php

switch($this->adapter->getType()) {
case 'mysql':
case 'mysqli':
$sql = sprintf(static::MYSQL_CREATE_STATEMENT, $this->tableName);
break;
}

```

With the only difference that the adapter would provide the type of the db system. But I guess I was just over engineering it :) I think the usage of phpmig is not as complex and your code will cover 99,99% of the case. I'll change that tonight.