mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-03 01:52:40 +00:00
"Fixes #3910, cake generates failing fixtures due to column length restrictions"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6386 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
7098c5558c
commit
d3e790a27a
1 changed files with 5 additions and 1 deletions
|
@ -795,7 +795,11 @@ class ModelTask extends Shell {
|
|||
$insert = 1;
|
||||
break;
|
||||
case 'string';
|
||||
$insert = "'Lorem ipsum dolor sit amet'";
|
||||
$insert = "Lorem ipsum dolor sit amet";
|
||||
if (!empty($value['length'])) {
|
||||
$insert = substr($insert, 0, (int)$value['length'] - 2);
|
||||
}
|
||||
$insert = "'$insert'";
|
||||
break;
|
||||
case 'datetime':
|
||||
$ts = date('Y-m-d H:i:s');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue