mirror of
https://github.com/friendica/friendica
synced 2025-04-25 00:30:32 +00:00
WIP: Properly some fixes? Also why is DROP VIEW IF EXISTS is being killed?
This commit is contained in:
parent
44a9ec9b17
commit
0d81a08e3c
5 changed files with 24 additions and 42 deletions
|
@ -183,7 +183,7 @@ class View
|
|||
*/
|
||||
private static function isView(string $view): bool
|
||||
{
|
||||
$status = DBA::selectFirst(['INFORMATION_SCHEMA' => 'TABLES'], ['TABLE_TYPE'],
|
||||
$status = DBA::selectFirst('INFORMATION_SCHEMA.TABLES', ['TABLE_TYPE'],
|
||||
['TABLE_SCHEMA' => DBA::databaseName(), 'TABLE_NAME' => $view]);
|
||||
|
||||
if (empty($status['TABLE_TYPE'])) {
|
||||
|
@ -201,7 +201,7 @@ class View
|
|||
*/
|
||||
private static function isTable(string $table): bool
|
||||
{
|
||||
$status = DBA::selectFirst(['INFORMATION_SCHEMA' => 'TABLES'], ['TABLE_TYPE'],
|
||||
$status = DBA::selectFirst('INFORMATION_SCHEMA.TABLES', ['TABLE_TYPE'],
|
||||
['TABLE_SCHEMA' => DBA::databaseName(), 'TABLE_NAME' => $table]);
|
||||
|
||||
if (empty($status['TABLE_TYPE'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue