function migrate_example_update_6006 in Migrate 6.2
Add data for testing/demonstrating roles.
File
- migrate_example/
migrate_example.install, line 165
Code
function migrate_example_update_6006() {
$ret = array();
db_add_field($ret, 'migrate_example_wine_account', 'positions', array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
'description' => 'Positions held',
));
db_query("UPDATE {migrate_example_wine_account}\n SET positions='%s'\n WHERE accountid=%d", '5', 1);
db_query("UPDATE {migrate_example_wine_account}\n SET positions='%s'\n WHERE accountid=%d", '18', 3);
db_query("UPDATE {migrate_example_wine_account}\n SET positions='%s'\n WHERE accountid=%d", '5,18', 9);
$ret[] = t('Added positions field to migrate_example_wine_account table.');
return $ret;
}