mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 18:50:47 -04:00
Merge c7a0884e66 into d02155784b
This commit is contained in:
commit
8f1a88ef0d
1 changed files with 5 additions and 1 deletions
|
|
@ -38,7 +38,11 @@ class PgSqlTools {
|
|||
});
|
||||
|
||||
foreach ($conn->createSchemaManager()->listSequences() as $sequence) {
|
||||
$sequenceName = $sequence->getName();
|
||||
$longSequenceName = $sequence->getName();
|
||||
// We need to strip away the preceding database prefix.
|
||||
// Example: oc_circles_circle_id_seq, not nextcloud.oc_circles_circle_id_seq
|
||||
$sequenceName = preg_replace('/^.*\./', '', $longSequenceName);
|
||||
|
||||
$sqlInfo = 'SELECT table_schema, table_name, column_name
|
||||
FROM information_schema.columns
|
||||
WHERE column_default = ? AND table_catalog = ?';
|
||||
|
|
|
|||
Loading…
Reference in a new issue