[evolvis-commits] r17794: use original code from 20110808-scm_subrepos.sql
mirabilos at evolvis.org
mirabilos at evolvis.org
Tue Dec 6 20:27:25 CET 2011
Author: mirabilos
Date: 2011-12-06 20:27:24 +0100 (Tue, 06 Dec 2011)
New Revision: 17794
Modified:
trunk/gforge_base/evolvisforge-5.1/src/db/20111206-convergence.sql
Log:
use original code from 20110808-scm_subrepos.sql
Modified: trunk/gforge_base/evolvisforge-5.1/src/db/20111206-convergence.sql
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/db/20111206-convergence.sql 2011-12-06 19:27:20 UTC (rev 17793)
+++ trunk/gforge_base/evolvisforge-5.1/src/db/20111206-convergence.sql 2011-12-06 19:27:24 UTC (rev 17794)
@@ -139,12 +139,11 @@
AS $_$
BEGIN
BEGIN
- CREATE TABLE scm_subrepos ( did integer NOT NULL, group_id integer NOT NULL, newrepo text );
- CREATE SEQUENCE scm_subrepos_did_seq START WITH 1 INCREMENT BY 1 NO MAXVALUE NO MINVALUE CACHE 1;
- ALTER TABLE ONLY scm_subrepos ADD CONSTRAINT group_id FOREIGN KEY (group_id) REFERENCES groups(group_id) ON DELETE CASCADE;
- ALTER TABLE ONLY scm_subrepos ADD CONSTRAINT scm_subrepos_pkey PRIMARY KEY (did);
- ALTER TABLE scm_subrepos ALTER COLUMN did SET DEFAULT nextval('scm_subrepos_did_seq'::regclass);
- ALTER SEQUENCE scm_subrepos_did_seq OWNED BY scm_subrepos.did;
+ CREATE TABLE scm_subrepos (
+ did serial PRIMARY KEY,
+ group_id int not null CONSTRAINT group_id REFERENCES groups(group_id) ON DELETE CASCADE,
+ newrepo text
+ );
EXCEPTION
WHEN OTHERS THEN
RETURN;
More information about the evolvis-commits
mailing list