mirror of
https://github.com/friendica/friendica
synced 2025-04-26 05:10:11 +00:00
Split DBStructure & View to avoid DB-calls and dependencies for basic operations
- new "Definition" classes vor DB and Views - new "Writer" classes to create SQL definitions for DB and Views - DBStructure & View are responsible to execute DB-querys
This commit is contained in:
parent
a2c929d128
commit
a910fd8864
30 changed files with 898 additions and 608 deletions
|
@ -189,14 +189,12 @@ class Installer
|
|||
/***
|
||||
* Installs the DB-Scheme for Friendica
|
||||
*
|
||||
* @param string $basePath The base path of this application
|
||||
*
|
||||
* @return bool true if the installation was successful, otherwise false
|
||||
* @throws Exception
|
||||
*/
|
||||
public function installDatabase($basePath)
|
||||
public function installDatabase()
|
||||
{
|
||||
$result = DBStructure::install($basePath);
|
||||
$result = DBStructure::install();
|
||||
|
||||
if ($result) {
|
||||
$txt = DI::l10n()->t('You may need to import the file "database.sql" manually using phpmyadmin or mysql.') . EOL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue