Why I had coded it that way? Now it is better
This commit is contained in:
parent
2d7cd2daf4
commit
559f8b446b
|
@ -46,7 +46,7 @@ if ($_SERVER["argc"] == 2) {
|
||||||
Config::set('system','build',DB_UPDATE_VERSION);
|
Config::set('system','build',DB_UPDATE_VERSION);
|
||||||
return;
|
return;
|
||||||
case "dumpsql":
|
case "dumpsql":
|
||||||
DBStructure::printStructure(DBStructure::definition());
|
DBStructure::printStructure();
|
||||||
return;
|
return;
|
||||||
case "toinnodb":
|
case "toinnodb":
|
||||||
DBStructure::convertToInnoDB();
|
DBStructure::convertToInnoDB();
|
||||||
|
|
|
@ -153,7 +153,9 @@ class DBStructure {
|
||||||
return array("fields" => $fielddata, "indexes" => $indexdata, "table_status" => $table_status);
|
return array("fields" => $fielddata, "indexes" => $indexdata, "table_status" => $table_status);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function printStructure($database) {
|
public static function printStructure() {
|
||||||
|
$database = self::definition();
|
||||||
|
|
||||||
echo "-- ------------------------------------------\n";
|
echo "-- ------------------------------------------\n";
|
||||||
echo "-- ".FRIENDICA_PLATFORM." ".FRIENDICA_VERSION." (".FRIENDICA_CODENAME,")\n";
|
echo "-- ".FRIENDICA_PLATFORM." ".FRIENDICA_VERSION." (".FRIENDICA_CODENAME,")\n";
|
||||||
echo "-- DB_UPDATE_VERSION ".DB_UPDATE_VERSION."\n";
|
echo "-- DB_UPDATE_VERSION ".DB_UPDATE_VERSION."\n";
|
||||||
|
|
Loading…
Reference in a new issue