|
|
@@ -23,7 +23,10 @@
|
|
|
require(__DIR__ . '/../../constants.php');
|
|
|
require(LIB_PATH . '/lib_rss.php'); //Includes class autoloader
|
|
|
|
|
|
-if (file_exists(DATA_PATH . '/do-install.txt')) {
|
|
|
+$migrations_path = APP_PATH . '/migrations';
|
|
|
+$applied_migrations_path = DATA_PATH . '/applied_migrations.txt';
|
|
|
+
|
|
|
+if (!file_exists($applied_migrations_path)) {
|
|
|
require(APP_PATH . '/install.php');
|
|
|
} else {
|
|
|
session_cache_limiter('');
|
|
|
@@ -42,22 +45,6 @@ if (file_exists(DATA_PATH . '/do-install.txt')) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- $migrations_path = APP_PATH . '/migrations';
|
|
|
- $applied_migrations_path = DATA_PATH . '/applied_migrations.txt';
|
|
|
-
|
|
|
- // The next line is temporary: the migrate method expects the applied_migrations.txt
|
|
|
- // file to exist. This is because the install script creates this file, so
|
|
|
- // if it is missing, it means the application is not installed. But we
|
|
|
- // should also take care of applications installed before the new
|
|
|
- // migrations system (<=1.16). Indeed, they are installed but the migrations
|
|
|
- // version file doesn't exist. So for now (1.17), we continue to check if the
|
|
|
- // application is installed with the do-install.txt file: if yes, we create
|
|
|
- // the version file. Starting from version 1.18, all the installed systems
|
|
|
- // will have the file and so we will be able to remove this temporary line
|
|
|
- // and stop using the do-install.txt file to check if FRSS is already
|
|
|
- // installed.
|
|
|
- touch($applied_migrations_path);
|
|
|
-
|
|
|
$error = false;
|
|
|
try {
|
|
|
// Apply the migrations if any
|