update to D 7.17

Signed-off-by: bachy <git@g-u-i.net>
This commit is contained in:
bachy
2012-12-08 11:35:42 +01:00
parent 975d758599
commit 5396b3e2b5
284 changed files with 3674 additions and 1854 deletions

View File

@@ -416,3 +416,34 @@ db_insert('upload')->fields(array(
'weight' => '0',
))
->execute();
// Add series of entries for invalid node vids to the {upload} table.
for ($i = 30; $i < 250; $i += 2) {
db_insert('upload')->fields(array(
'fid',
'nid',
'vid',
'description',
'list',
'weight',
))
// Invalid fid, invalid vid.
->values(array(
'fid' => $i,
'nid' => '40',
'vid' => 24 + $i,
'description' => 'crazy-basename.png',
'list' => '1',
'weight' => '0',
))
// Valid fid, invalid vid.
->values(array(
'fid' => 2,
'nid' => '40',
'vid' => 24 + $i + 1,
'description' => 'crazy-basename.png',
'list' => '1',
'weight' => '0',
))
->execute();
}