Skip to content

Commit

Permalink
v1.6.0
Browse files Browse the repository at this point in the history
git-svn-id: https://cuyahoga.svn.sourceforge.net/svnroot/cuyahoga/branches/1.6.x@782 cb474c29-17db-0310-ba2e-db2fec5ab780
  • Loading branch information
martijnboland committed Feb 1, 2009
1 parent 3c17f84 commit 12b70a0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
17 changes: 17 additions & 0 deletions Web/Install/Core/Database/postgresql/1.6.0.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* DDL Changes
*/
ALTER TABLE cuyahoga_site
ADD offlinetemplateid int NULL;

ALTER TABLE cuyahoga_site
ADD CONSTRAINT FK_site_template_offlinetemplateid,
FOREIGN KEY (offlinetemplateid) REFERENCES cuyahoga_template (templateid);

ALTER TABLE cuyahoga_node
ADD status int NOT NULL DEFAULT (0);

/*
* Version
*/
UPDATE cuyahoga_version SET major = 1, minor = 6, patch = 0 WHERE assembly = 'Cuyahoga.Core';
7 changes: 5 additions & 2 deletions Web/Install/Core/Database/postgresql/install.sql
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,12 @@ webmasteremail varchar(100) NOT NULL,
usefriendlyurls bool,
metakeywords varchar(500),
metadescription varchar(500),
offlinetemplateid int NULL,
inserttimestamp timestamp DEFAULT current_timestamp NOT NULL,
updatetimestamp timestamp DEFAULT current_timestamp NOT NULL,
CONSTRAINT FK_site_role_roleid FOREIGN KEY (roleid) REFERENCES cuyahoga_role (roleid),
CONSTRAINT FK_site_template_templateid FOREIGN KEY (templateid) REFERENCES cuyahoga_template (templateid));
CONSTRAINT FK_site_template_templateid FOREIGN KEY (templateid) REFERENCES cuyahoga_template (templateid)),
CONSTRAINT FK_site_template_offlinetemplateid FOREIGN KEY (offlinetemplateid) REFERENCES cuyahoga_template (templateid)),;


CREATE TABLE cuyahoga_node(
Expand All @@ -109,6 +111,7 @@ linkurl varchar(255),
linktarget int4,
metakeywords varchar(500),
metadescription varchar(500),
status int NOT NULL DEFAULT (0),
inserttimestamp timestamp DEFAULT current_timestamp NOT NULL,
updatetimestamp timestamp DEFAULT current_timestamp NOT NULL,
CONSTRAINT FK_node_node_parentnodeid FOREIGN KEY (parentnodeid) REFERENCES cuyahoga_node (nodeid),
Expand Down Expand Up @@ -234,4 +237,4 @@ INSERT INTO cuyahoga_template (templateid, name, basepath, templatecontrol, css,
INSERT INTO cuyahoga_template (templateid, name, basepath, templatecontrol, css, inserttimestamp, updatetimestamp) VALUES (3, 'Cuyahoga New', 'Templates/Default', 'CuyahogaNew.ascx', 'red-new.css', '2004-01-26 21:52:52.365', '2004-01-26 21:52:52.365');
INSERT INTO cuyahoga_template (templateid, name, basepath, templatecontrol, css, inserttimestamp, updatetimestamp) VALUES (4, 'Another Red', 'Templates/AnotherRed', 'Cuyahoga.ascx', 'red.css', '2004-01-26 21:52:52.365', '2004-01-26 21:52:52.365');

INSERT INTO cuyahoga_version (assembly, major, minor, patch) VALUES ('Cuyahoga.Core', 1, 5, 2);
INSERT INTO cuyahoga_version (assembly, major, minor, patch) VALUES ('Cuyahoga.Core', 1, 6, 0);

0 comments on commit 12b70a0

Please sign in to comment.