Added sequence to update-sequences.sql

This commit is contained in:
aroman
2013-07-25 09:01:34 +02:00
committed by Ivan Masár
parent aab28e68a8
commit 96c93bdbfd

View File

@@ -85,6 +85,7 @@ SELECT setval('metadataschemaregistry_seq', max(metadata_schema_id)) FROM metada
SELECT setval('harvested_collection_seq', max(id)) FROM harvested_collection;
SELECT setval('harvested_item_seq', max(id)) FROM harvested_item;
SELECT setval('webapp_seq', max(id)) FROM webapp;
SELECT setval('requestitem_seq', max(requestitem_id)) FROM requestitem;
-- Handle Sequence is a special case. Since Handles minted by DSpace use the 'handle_seq',
-- we need to ensure the next assigned handle will *always* be unique. So, 'handle_seq'
@@ -100,4 +101,4 @@ SELECT setval('handle_seq',
AS BIGINT)
)
FROM handle
WHERE handle SIMILAR TO '%/[0123456789]*';
WHERE handle SIMILAR TO '%/[0123456789]*';