By daffie on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
10.2.x
Introduced in version:
10.2.0
Issue links:
Description:
Three new database schema sequence methods are added for PostgreSQL databases.
The next method returns the name for a sequence for a given table name and table column:
$sequence_name = \Drupal::database()->schema()->getSequenceName($table, $column);
The next method return the existance for a given sequence name:
$exists = \Drupal::database()->schema()->sequenceExists($sequence_name);
The next method returns the sequence owner for a given table name a table column.
$owner = \Drupal::database()->schema()->getSequenceOwner($table, $column);
Impacts:
Module developers