1 CREATE TABLE cust_pay_refund (
2 payrefundnum serial NOT NULL,
4 refundnum int NOT NULL,
6 amount decimal(10,2) NOT NULL,
7 PRIMARY KEY (payrefundnum)
9 CREATE INDEX cust_pay_refund1 ON cust_pay_refund(paynum);
10 CREATE INDEX cust_pay_refund2 ON cust_pay_refund(refundnum);
12 CREATE TABLE cust_pay_void (
15 paid decimal(10,2) NOT NULL,
17 payby char(4) NOT NULL,
23 otaker varchar(32) NOT NULL,
26 CREATE INDEX cust_pay_void1 ON cust_pay_void(custnum);
28 alter table svc_external alter column id drop not null;
29 alter table h_svc_external alter column id drop not null;
31 INSERT INTO msgcat ( msgnum, msgcode, locale, msg ) VALUES ( 20, 'svc_external-id', 'en_US', 'External ID' );
32 INSERT INTO msgcat ( msgnum, msgcode, locale, msg ) VALUES ( 21, 'svc_external-title', 'en_US', 'Title' );
34 CREATE TABLE part_pkg_option (
35 optionnum int primary key,
37 optionname varchar(80) not null,
40 CREATE INDEX part_pkg_option1 ON part_pkg_option ( pkgpart );
41 CREATE INDEX part_pkg_option2 ON part_pkg_option ( optionname );
44 create-history-tables username cust_pay_refund cust_pay_void part_pkg_option