add update scripts

This commit is contained in:
crispycat 2023-12-03 15:27:31 -05:00
parent b923741398
commit 83857c7268
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,22 @@
<?php
/*
Crispage CMS
crispycat <the@crispy.cat>
https://crispy.cat/software/crispage
Crispage is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
*/
$this->runScript(PACKAGE, "copy_files");
if ($this->status != $this::SUCCESS) throw new \Exception("Could not copy files");
$this->runScript(PACKAGE, "update_database");
if ($this->status != $this::SUCCESS) throw new \Exception("Could not update database");
//$this->runScript(PACKAGE, "update_config");
//if ($this->status != $this::SUCCESS) throw new \Exception("Could not update config");
$this->app->assets->createTable("\\Crispage\\Assets\\Redirect");
?>

View File

@ -0,0 +1 @@
<?php require "./update_0.20.0a-rc3.php"; ?>