We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e98864b commit cb795b7Copy full SHA for cb795b7
lib/private/DB/PgSqlTools.php
@@ -44,7 +44,11 @@ public function resynchronizeDatabaseSequences(Connection $conn) {
44
});
45
46
foreach ($conn->createSchemaManager()->listSequences() as $sequence) {
47
- $sequenceName = $sequence->getName();
+ $longSequenceName = $sequence->getName();
48
+ // We need to strip away the preceding database prefix.
49
+ // Example: oc_circles_circle_id_seq, not nextcloud.oc_circles_circle_id_seq
50
+ $sequenceName = preg_replace('/^.*\./', '', $longSequenceName);
51
+
52
$sqlInfo = 'SELECT table_schema, table_name, column_name
53
FROM information_schema.columns
54
WHERE column_default = ? AND table_catalog = ?';
0 commit comments