From 2c68c62e2f9187c534e2f2291f83b789ba9075fb Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 10 May 2004 23:16:00 +0000 Subject: [PATCH] fix sequences in upgrade docs? --- httemplate/docs/upgrade10.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/httemplate/docs/upgrade10.html b/httemplate/docs/upgrade10.html index 788eb0a97..08fc28ea5 100644 --- a/httemplate/docs/upgrade10.html +++ b/httemplate/docs/upgrade10.html @@ -110,10 +110,11 @@ ALTER TABLE part_pkg DROP CONSTRAINT part_pkg_temp_pkey; ALTER TABLE part_pkg ADD PRIMARY KEY (pkgpart); select setval('public.part_pkg_temp_pkgpart_seq', ( select max(pkgpart) from part_pkg) ); -Or on Pg versions that don't support DROP CONSTRAINT and ADD PRIMARY KEY (tested on 7.1 so far): +Or on Pg versions that don't support DROP CONSTRAINT and ADD PRIMARY KEY (tested on 7.1 and 7.2 so far): DROP INDEX part_pkg_temp_pkey; CREATE UNIQUE INDEX part_pkg_pkey ON part_pkg (pkgpart); -select setval('part_pkg_temp_pkgpart_seq', ( select max(pkgpart) from part_pkg) ); +7.1?: select setval('part_pkg_temp_pkgpart_seq', ( select max(pkgpart) from part_pkg) ); +7.2: select setval('part_pkg_pkgpart_seq', ( select max(pkgpart) from part_pkg) ); CREATE TABLE h_part_pkg_temp ( historynum serial NOT NULL, @@ -144,10 +145,11 @@ ALTER TABLE h_part_pkg DROP CONSTRAINT h_part_pkg_temp_pkey; ALTER TABLE h_part_pkg ADD PRIMARY KEY (historynum); select setval('public.h_part_pkg_temp_historynum_seq', ( select max(historynum) from h_part_pkg) ); -Or on Pg versions that don't support DROP CONSTRAINT and ADD PRIMARY KEY (tested on 7.1 so far): +Or on Pg versions that don't support DROP CONSTRAINT and ADD PRIMARY KEY (tested on 7.1 and 7.2 so far): DROP INDEX h_part_pkg_temp_pkey; CREATE UNIQUE INDEX h_part_pkg_pkey ON h_part_pkg (historynum); -select setval('h_part_pkg_temp_historynum_seq', ( select max(historynum) from h_part_pkg) ); +7.1?: select setval('h_part_pkg_temp_historynum_seq', ( select max(historynum) from h_part_pkg) ); +7.2: select setval('h_part_pkg_historynum_seq', ( select max(historynum) from h_part_pkg) ); DROP INDEX cust_bill_pkg1; -- 2.11.0