From 3ad89c3646b3f6b8a096e03ded8d1954d2f7b719 Mon Sep 17 00:00:00 2001 From: crispycat Date: Mon, 30 Sep 2024 00:34:30 -0400 Subject: [PATCH] update version, install scripts --- _crispage/scripts/update_0.27.0a.php | 4 ++++ _crispage/scripts/update_database.php | 3 ++- _crispage/version | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 _crispage/scripts/update_0.27.0a.php 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