Browse Source

Manipulate only those sequences in the current PostgreSQL schema

microsub
J. King 6 years ago
parent
commit
e68fcc0afa
  1. 5
      tests/cases/Db/PostgreSQL/TestDatabase.php

5
tests/cases/Db/PostgreSQL/TestDatabase.php

@ -24,8 +24,9 @@ class TestDatabase extends \JKingWeb\Arsse\TestCase\Database\Base {
replace(substring(column_default, 10), right(column_default, 12), '') as seq, replace(substring(column_default, 10), right(column_default, 12), '') as seq,
table_name as table, table_name as table,
column_name as col column_name as col
from information_schema.columns from information_schema.columns
where table_name like 'arsse_%' where table_schema = current_schema()
and table_name like 'arsse_%'
and column_default like 'nextval(%' and column_default like 'nextval(%'
"; ";
foreach(static::$drv->query($seqList) as $r) { foreach(static::$drv->query($seqList) as $r) {

Loading…
Cancel
Save