Skip to content

Commit ef5fd20

Browse files
committed
feat(install): method to get the empty SQL file
1 parent be417f5 commit ef5fd20

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

setup.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,3 +487,12 @@ function plugin_formcreator_options() {
487487
Plugin::OPTION_AUTOINSTALL_DISABLED => true,
488488
];
489489
}
490+
491+
/**
492+
* Get the path to the empty SQL schema file
493+
*
494+
* @return string|null
495+
*/
496+
function plugin_formcreator_getSchemaPath(): ?string {
497+
return Plugin::getPhpDir('formcreator') . '/install/mysql/plugin_formcreator_empty.sql';
498+
}

0 commit comments

Comments
 (0)