mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Update.
This commit is contained in:
parent
5cff6aa746
commit
8c008ad97d
2 changed files with 1 additions and 3 deletions
|
@ -353,7 +353,6 @@ class Mysql extends DboSource {
|
|||
}
|
||||
if ($fields[$column->Field]['type'] === 'timestamp' && strtoupper($column->Default) === 'CURRENT_TIMESTAMP') {
|
||||
$fields[$column->Field]['default'] = null;
|
||||
$fields[$column->Field]['null'] = true;
|
||||
}
|
||||
if (!empty($column->Key) && isset($this->index[$column->Key])) {
|
||||
$fields[$column->Field]['key'] = $this->index[$column->Key];
|
||||
|
|
|
@ -909,14 +909,13 @@ SQL;
|
|||
$this->Dbo->execute('DROP TABLE ' . $name);
|
||||
|
||||
$this->assertNull($result['limit_date']['default']);
|
||||
$this->assertTrue($result['limit_date']['null']);
|
||||
|
||||
$schema = new CakeSchema(array(
|
||||
'connection' => 'test',
|
||||
'testdescribes' => $result
|
||||
));
|
||||
$result = $this->Dbo->createSchema($schema);
|
||||
$this->assertContains('`limit_date` timestamp NULL,', $result);
|
||||
$this->assertContains('`limit_date` timestamp NOT NULL,', $result);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue