コード例 #1
0
ファイル: Platform.php プロジェクト: universaldb/pdo_pgsql
 /**
  * Gets the integer SQL declaration.
  * @param array $options The integer options.
  * @return string The integer SQL declaration.
  */
 public function getIntegerSQLDeclaration(array $options = [])
 {
     if (isset($options['auto_increment']) && $options['auto_increment']) {
         return 'SERIAL';
     }
     return parent::getIntegerSQLDeclaration($options);
 }
コード例 #2
0
ファイル: Platform.php プロジェクト: universaldb/pdo_mysql
 /**
  * Gets the integer SQL declaration.
  * @param array $options The integer options.
  * @return string The integer SQL declaration.
  */
 public function getIntegerSQLDeclaration(array $options = [])
 {
     return parent::getIntegerSQLDeclaration($options) . $this->_getIntegerSQLDeclarationSnippet($options);
 }