mirror of
https://github.com/friendica/friendica
synced 2025-05-01 09:04:24 +02:00
"cascade" for "post-engagement" / fixes for "report" definition
This commit is contained in:
parent
8452d3fdf2
commit
8c9e4c46a0
5 changed files with 31 additions and 26 deletions
|
@ -42,6 +42,11 @@ class DBA
|
|||
*/
|
||||
const NULL_DATETIME = '0001-01-01 00:00:00';
|
||||
|
||||
/**
|
||||
* Lowest possible datetime(6) value
|
||||
*/
|
||||
const NULL_DATETIME6 = '0001-01-01 00:00:00.000000';
|
||||
|
||||
public static function connect(): bool
|
||||
{
|
||||
return DI::dba()->connect();
|
||||
|
|
|
@ -284,7 +284,7 @@ class DBStructure
|
|||
echo $sql;
|
||||
}
|
||||
if ($action) {
|
||||
$r = DBA::e($sql);
|
||||
$r = DBA::e(str_replace('\\', '\\\\', $sql));
|
||||
if (!DBA::isResult($r)) {
|
||||
$errors .= self::printUpdateError($name);
|
||||
}
|
||||
|
@ -493,7 +493,7 @@ class DBStructure
|
|||
DI::config()->set('system', 'maintenance_reason', DI::l10n()->t('%s: updating %s table.', DateTimeFormat::utcNow() . ' ' . date('e'), $name));
|
||||
}
|
||||
|
||||
$r = DBA::e($sql3);
|
||||
$r = DBA::e(str_replace('\\', '\\\\', $sql3));
|
||||
if (!DBA::isResult($r)) {
|
||||
$errors .= self::printUpdateError($sql3);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue