~ubuntu-branches/ubuntu/hardy/gallery2/hardy-security

« back to all changes in this revision

Viewing changes to modules/linkitem/classes/GalleryStorage/schema.tpl

  • Committer: Bazaar Package Importer
  • Author(s): Michael C. Schultheiss
  • Date: 2006-04-16 16:42:35 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060416164235-8uy0u4bfjdxpge2o
Tags: 2.1.1-1
* New upstream release (Closes: #362936)
  + Bugfixes for Postgres7 (Closes: #359000, #362152)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## mysql
 
2
# GalleryLinkItem
 
3
CREATE TABLE DB_TABLE_PREFIXLinkItem(
 
4
 DB_COLUMN_PREFIXid int(11) NOT NULL,
 
5
 DB_COLUMN_PREFIXlink varchar(128) NOT NULL,
 
6
 PRIMARY KEY(DB_COLUMN_PREFIXid)
 
7
) TYPE=DB_TABLE_TYPE
 
8
/*!40100 DEFAULT CHARACTER SET utf8 */;
 
9
 
 
10
INSERT INTO DB_TABLE_PREFIXSchema (
 
11
 DB_COLUMN_PREFIXname,
 
12
 DB_COLUMN_PREFIXmajor,
 
13
 DB_COLUMN_PREFIXminor
 
14
) VALUES('LinkItem', 1, 0);
 
15
 
 
16
## postgres
 
17
# GalleryLinkItem
 
18
CREATE TABLE DB_TABLE_PREFIXLinkItem(
 
19
 DB_COLUMN_PREFIXid INTEGER NOT NULL,
 
20
 DB_COLUMN_PREFIXlink VARCHAR(128) NOT NULL
 
21
);
 
22
 
 
23
ALTER TABLE DB_TABLE_PREFIXLinkItem ADD PRIMARY KEY (DB_COLUMN_PREFIXid);
 
24
 
 
25
INSERT INTO DB_TABLE_PREFIXSchema (
 
26
 DB_COLUMN_PREFIXname,
 
27
 DB_COLUMN_PREFIXmajor,
 
28
 DB_COLUMN_PREFIXminor
 
29
) VALUES('LinkItem', 1, 0);
 
30
 
 
31
## oracle
 
32
# GalleryLinkItem
 
33
CREATE TABLE DB_TABLE_PREFIXLinkItem(
 
34
 DB_COLUMN_PREFIXid INTEGER NOT NULL,
 
35
 DB_COLUMN_PREFIXlink VARCHAR2(128) NOT NULL
 
36
);
 
37
 
 
38
ALTER TABLE DB_TABLE_PREFIXLinkItem
 
39
 ADD PRIMARY KEY (DB_COLUMN_PREFIXid)
 
40
;
 
41
 
 
42
INSERT INTO DB_TABLE_PREFIXSchema (
 
43
 DB_COLUMN_PREFIXname,
 
44
 DB_COLUMN_PREFIXmajor,
 
45
 DB_COLUMN_PREFIXminor
 
46
) VALUES('LinkItem', 1, 0);
 
47
 
 
48
## db2
 
49
# GalleryLinkItem
 
50
CREATE TABLE DB_TABLE_PREFIXLinkItem(
 
51
 DB_COLUMN_PREFIXid INTEGER NOT NULL,
 
52
 DB_COLUMN_PREFIXlink VARCHAR(128) NOT NULL
 
53
);
 
54
 
 
55
ALTER TABLE DB_TABLE_PREFIXLinkItem ADD PRIMARY KEY (DB_COLUMN_PREFIXid);
 
56
 
 
57
INSERT INTO DB_TABLE_PREFIXSchema (
 
58
 DB_COLUMN_PREFIXname,
 
59
 DB_COLUMN_PREFIXmajor,
 
60
 DB_COLUMN_PREFIXminor
 
61
) VALUES('LinkItem', 1, 0);
 
62