diff --git a/_crispage/scripts/update_0.27.0a.php b/_crispage/scripts/update_0.27.0a.php new file mode 100644 index 0000000..458a78e --- /dev/null +++ b/_crispage/scripts/update_0.27.0a.php @@ -0,0 +1,4 @@ +runScript(PACKAGE, "copy_files"); + $this->runScript(PACKAGE, "update_database"); +?> diff --git a/_crispage/scripts/update_database.php b/_crispage/scripts/update_database.php index 00c261e..35e8848 100644 --- a/_crispage/scripts/update_database.php +++ b/_crispage/scripts/update_database.php @@ -14,5 +14,6 @@ $this->app->database->update("system", ["version" => VERSION_NEW]); - $this->runScript(PACKAGE, "database_0.27"); + if (!str_starts_with(VERSION, "0.27")) + $this->runScript(PACKAGE, "database_0.27"); ?> diff --git a/_crispage/version b/_crispage/version index 35984fd..8355896 100644 --- a/_crispage/version +++ b/_crispage/version @@ -1 +1 @@ -0.27.0a \ No newline at end of file +0.27.1a \ No newline at end of file