Formatting cleanups, doc updates and whatnot
Change-Id: Ica8298353be22f947c8e8a03d8dc29ded9cb26dd
This commit is contained in:
@@ -8,8 +8,13 @@
|
||||
MY_XTRACE=$(set +o | grep xtrace)
|
||||
set +o xtrace
|
||||
|
||||
|
||||
register_database mysql
|
||||
|
||||
|
||||
# Functions
|
||||
# ---------
|
||||
|
||||
# Get rid of everything enough to cleanly change database backends
|
||||
function cleanup_database_mysql {
|
||||
if is_ubuntu; then
|
||||
@@ -137,6 +142,7 @@ function database_connection_url_mysql {
|
||||
echo "$BASE_SQL_CONN/$db?charset=utf8"
|
||||
}
|
||||
|
||||
|
||||
# Restore xtrace
|
||||
$MY_XTRACE
|
||||
|
||||
|
||||
@@ -8,8 +8,13 @@
|
||||
PG_XTRACE=$(set +o | grep xtrace)
|
||||
set +o xtrace
|
||||
|
||||
|
||||
register_database postgresql
|
||||
|
||||
|
||||
# Functions
|
||||
# ---------
|
||||
|
||||
# Get rid of everything enough to cleanly change database backends
|
||||
function cleanup_database_postgresql {
|
||||
stop_service postgresql
|
||||
@@ -88,6 +93,7 @@ function database_connection_url_postgresql {
|
||||
echo "$BASE_SQL_CONN/$db?client_encoding=utf8"
|
||||
}
|
||||
|
||||
|
||||
# Restore xtrace
|
||||
$PG_XTRACE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user