Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
f3e5e2fe
Commit
f3e5e2fe
authored
Nov 27, 2012
by
webchick
Browse files
Issue
#1850418
by xjm: Provide D7 -> D8 Views upgrade path in contrib, not core.
parent
4d0d5c57
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/views/views.install
View file @
f3e5e2fe
...
...
@@ -26,52 +26,3 @@ function views_schema() {
return
$schema
;
}
/**
* Implements hook_update_last_removed().
*/
function
views_update_last_removed
()
{
return
7301
;
}
/**
* Convert settings to the config system.
*/
function
views_update_8000
()
{
update_variables_to_config
(
'views.settings'
,
array
(
'views_ui_show_listing_filters'
=>
'ui.show.listing_filters'
,
'views_ui_show_master_display'
=>
'ui.show.master_display'
,
'views_ui_show_advanced_column'
=>
'ui.show.advanced_column'
,
'views_ui_display_embed'
=>
'ui.show.display_embed'
,
'views_exposed_filter_any_label'
=>
'exposed_filter_any_label'
,
'views_ui_always_live_preview'
=>
'ui.always_live_preview'
,
'views_ui_always_live_preview_button'
=>
'ui.always_live_preview_button'
,
'views_ui_show_preview_information'
=>
'ui.show.preview_information'
,
'views_ui_show_sql_query_where'
=>
'ui.show.sql_query.where'
,
'views_ui_show_sql_query'
=>
'ui.show_sql.query.enabled'
,
'views_ui_show_performance_statistics'
=>
'ui.show.performance_statistics'
,
'views_show_additional_queries'
=>
'ui.show.additional_queries'
,
'views_skip_cache'
=>
'skip_cache'
,
'views_sql_signature'
=>
'sql_signature'
,
'views_no_javascript'
=>
'no_javascript'
,
'views_devel_output'
=>
'debug.output'
,
'views_devel_region'
=>
'debug.region'
,
'views_display_extenders'
=>
'display_extenders'
,
));
}
/**
* Rename the {cache_views} and {cache_views_data} tables.
*/
function
views_update_8001
()
{
db_rename_table
(
'cache_views'
,
'cache_views_info'
);
db_rename_table
(
'cache_views_data'
,
'cache_views_results'
);
}
/**
* Remove the {views_view} and {views_display} table.
*/
function
views_update_8002
()
{
db_drop_table
(
'views_view'
);
db_drop_table
(
'views_display'
);
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment