Commit ac23dadf authored by Marc Egger's avatar Marc Egger
Browse files

form as file: dont delete db forms on database update

parent 06d1e9fc
Pipeline #4013 failed with stages
in 4 minutes
......@@ -155,8 +155,8 @@ class DatabaseUpdate {
if ($old !== false) {
// If Form table exists, import all form files so everything is up to date.
// Note: Creates path and exports all forms to it, if it doesn't exist
FormAsFile::importAllForms($this->db, true, true);
// Note: Creates path and exports all forms first if the form directory does not exist.
FormAsFile::importAllForms($this->db, true);
$this->db->playSqlFile(__DIR__ . '/../../Sql/formEditor.sql');
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment