smeserver-mysql/root/etc/e-smith/db/configuration/migrate/00mysqld2mariadb

12 lines
261 B
Plaintext
Raw Permalink Normal View History

{
# Rename mysqld service entry to mariadb
my $mysqld = $DB->get('mysqld') or return;
my $mariadb = $DB->get('mariadb') ||
$DB->new_record('mariadb', { type => 'service' });
$mariadb->merge_props($mysqld->props);
$mysqld->delete;
}