added branchrelations table and changed branchcategories table to allow

admin/branches.pl to work properly.
This commit is contained in:
finlayt 2002-05-02 00:23:26 +00:00
parent 9255f92b21
commit 23a8694aaa
1 changed files with 13 additions and 4 deletions

View File

@ -304,8 +304,17 @@ CREATE TABLE borrowers (
#
CREATE TABLE branchcategories (
categorycode char(2) DEFAULT '' NOT NULL,
branchcode char(4) DEFAULT '' NOT NULL,
branchholding int(11)
categoryname text,
codedescription text,
PRIMARY KEY (categorycode)
);
#
# Table structure for table 'branchrelations'
#
CREATE TABLE branchrelations (
branchcode varchar(4) DEFAULT '' NOT NULL,
categorycode varchar(4) DEFAULT '' NOT NULL
);
#
@ -329,9 +338,9 @@ CREATE TABLE branches (
#
CREATE TABLE branchtransfers (
itemnumber int(11) DEFAULT '0' NOT NULL,
datesent date DEFAULT '0000-00-00' NOT NULL,
datesent datetime DEFAULT '0000-00-00' NOT NULL,
frombranch varchar(4),
datearrived date,
datearrived datetime,
tobranch varchar(4),
comments text
);