getConnection()->pdo->getAttribute(\PDO::ATTR_SERVER_VERSION), '5.6', '>=')) { $this->markTestSkipped('Default datetime columns are supported since MySQL 5.6.'); } $sql = <<getConnection()->createCommand($sql)->execute(); $schema = $this->getConnection()->getTableSchema('datetime_test'); $dt = $schema->columns['dt']; $this->assertInstanceOf(Expression::className(),$dt->defaultValue); } public function testGetSchemaNames() { $this->markTestSkipped('Schemas are not supported in MySQL.'); } public function constraintsProvider() { $result = parent::constraintsProvider(); $result['1: check'][2] = false; $result['2: primary key'][2]->name = null; $result['2: check'][2] = false; // Work aroung bug in MySQL 5.1 - it creates only this table in lowercase. O_o $result['3: foreign key'][2][0]->foreignTableName = new AnyCaseValue('T_constraints_2'); $result['3: check'][2] = false; $result['4: check'][2] = false; return $result; } }