|
|
@ -87,7 +87,7 @@ try {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (PDOException $e) {
|
|
|
|
catch (PDOException $e) {
|
|
|
|
echo 'Database table not found, applying schema... ' . PHP_EOL;
|
|
|
|
echo 'Database table not found, applying schema... ' . PHP_EOL;
|
|
|
|
$schema = file_get_contents('schema/ttrss_schema_' . $config['DB_TYPE'] . '.sql');
|
|
|
|
$schema = file_get_contents('/var/www/schema/ttrss_schema_' . $config['DB_TYPE'] . '.sql');
|
|
|
|
$schema = preg_replace('/--(.*?);/', '', $schema);
|
|
|
|
$schema = preg_replace('/--(.*?);/', '', $schema);
|
|
|
|
$schema = preg_replace('/[\r\n]/', ' ', $schema);
|
|
|
|
$schema = preg_replace('/[\r\n]/', ' ', $schema);
|
|
|
|
$schema = trim($schema, ' ;');
|
|
|
|
$schema = trim($schema, ' ;');
|
|
|
|