import rt 3.2.2
[freeside.git] / rt / etc / upgrade / 3.1.0 / schema.Informix
diff --git a/rt/etc/upgrade/3.1.0/schema.Informix b/rt/etc/upgrade/3.1.0/schema.Informix
new file mode 100644 (file)
index 0000000..722eb70
--- /dev/null
@@ -0,0 +1,17 @@
+CREATE TABLE Attributes (
+       id              SERIAL,
+       Name                    VARCHAR(255) DEFAULT '' NOT NULL,
+       Description             VARCHAR(255) DEFAULT NULL,
+       Content         BYTE,
+       ContentType     VARCHAR(16),
+       ObjectType      VARCHAR(25) NOT NULL,
+       ObjectId        INTEGER DEFAULT 0 NOT NULL,
+       Creator         INTEGER DEFAULT 0 NOT NULL,
+       Created         DATETIME YEAR TO SECOND,
+       LastUpdatedBy   INTEGER DEFAULT 0 NOT NULL,
+       LastUpdated     DATETIME YEAR TO SECOND,
+        PRIMARY KEY (id)
+); 
+
+CREATE INDEX Attributes1 on Attributes(Name);
+CREATE INDEX Attributes2 on Attributes(ObjectType, ObjectId);