freeside/httemplate/docs upgrade10.html,1.36,1.37

ivan ivan at pouncequick.420.am
Thu Dec 23 00:32:06 PST 2004


Update of /home/cvs/cvsroot/freeside/httemplate/docs
In directory pouncequick:/tmp/cvs-serv23073/httemplate/docs

Modified Files:
	upgrade10.html 
Log Message:
allow NULL zip in some countries

Index: upgrade10.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/docs/upgrade10.html,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- upgrade10.html	23 Dec 2004 08:00:52 -0000	1.36
+++ upgrade10.html	23 Dec 2004 08:32:03 -0000	1.37
@@ -261,9 +261,12 @@
 ALTER TABLE h_svc_forward ALTER COLUMN srcsvc DROP NOT NULL;
 ALTER TABLE svc_forward ALTER COLUMN dstsvc DROP NOT NULL;
 ALTER TABLE h_svc_forward ALTER COLUMN dstsvc DROP NOT NULL;
+ALTER TABLE cust_main ALTER COLUMN zip DROP NOT NULL;
+ALTER TABLE h_cust_main ALTER COLUMN zip DROP NOT NULL;
 
 Or on Pg versions that don't support DROP NOT NULL (tested on 7.1 and 7.2 so far):
 UPDATE pg_attribute SET attnotnull = FALSE WHERE ( attname = 'srcsvc' OR attname = 'dstsvc' ) AND ( attrelid = ( SELECT oid FROM pg_class WHERE relname = 'svc_forward' ) OR attrelid = ( SELECT oid FROM pg_class WHERE relname = 'h_svc_forward' ) );
+UPDATE pg_attribute SET attnotnull = FALSE WHERE ( attname = 'zip' ) AND ( attrelid = ( SELECT oid FROM pg_class WHERE relname = 'cust_main' ) OR attrelid = ( SELECT oid FROM pg_class WHERE relname = 'h_cust_main' ) );
 
 If you created your database with a version before 1.4.2, dump database, edit:
 - cust_main and h_cust_main: increase otaker from 8 to 32




More information about the freeside-commits mailing list