function panels_update_5204 in Panels 5.2
Same name and namespace in other branches
- 6.3 panels.install \panels_update_5204()
File
- ./
panels.install, line 286
Code
function panels_update_5204() {
$ret = array();
$ret[] = update_sql("ALTER TABLE {panels_page} ADD COLUMN name varchar(255) UNIQUE");
$ret[] = update_sql("ALTER TABLE {panels_display} ADD COLUMN name varchar(255) UNIQUE");
// Give all our panels a name.
$ret[] = update_sql("UPDATE {panels_page} SET name = CONCAT('panel_page_', pid)");
$ret[] = update_sql("UPDATE {panels_display} SET name = CONCAT('display_', did)");
return $ret;
}