This commit was generated by cvs2svn to compensate for changes in r4407,
[freeside.git] / rt / etc / upgrade / 3.1.0 / schema.Pg
1 -- {{{ Attributes
2
3 CREATE SEQUENCE attributes_id_seq;
4
5 CREATE TABLE Attributes (
6   id INTEGER DEFAULT nextval('attributes_id_seq'),
7   Name varchar(255) NOT NULL  ,
8   Description varchar(255) NULL  ,
9   Content text,
10   ContentType varchar(16),
11   ObjectType varchar(64),
12   ObjectId integer, 
13   Creator integer NOT NULL DEFAULT 0  ,
14   Created TIMESTAMP NULL  ,
15   LastUpdatedBy integer NOT NULL DEFAULT 0  ,
16   LastUpdated TIMESTAMP NULL  ,
17   PRIMARY KEY (id)
18
19 );
20
21 CREATE INDEX Attributes1 on Attributes(Name);
22 CREATE INDEX Attributes2 on Attributes(ObjectType, ObjectId);
23
24 -- }}}
25