From 21aa5deb6094908fbd921002b28b8022d3e81a3f Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 17 Oct 2013 18:21:59 +0200 Subject: [PATCH] Add a migrate fragment for the configuration database to move ajaxplorer props to pydio --- root/etc/e-smith/db/configuration/migrate/pydio | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 root/etc/e-smith/db/configuration/migrate/pydio diff --git a/root/etc/e-smith/db/configuration/migrate/pydio b/root/etc/e-smith/db/configuration/migrate/pydio new file mode 100644 index 0000000..ea49512 --- /dev/null +++ b/root/etc/e-smith/db/configuration/migrate/pydio @@ -0,0 +1,10 @@ +{ + my $ajxp = $DB->get("ajaxplorer") or return; + + my $pydio = $DB->get("pydio") || + $DB->new_record("pydio", { type => "webapp" }); + + $pydio->merge_props($ajxp->props); + + $ajxp->delete; +}