added more NOT NULL constraints to database fields

This commit is contained in:
hyung-hwan 2011-07-21 14:23:25 +00:00
parent f6cce44188
commit fdf66cd36f
5 changed files with 30 additions and 30 deletions

View File

@ -47,7 +47,7 @@ INSTALLATION
* Customize CFGDIR/codepot.ini based on CFGDIR/codepot.ini-dist. * Customize CFGDIR/codepot.ini based on CFGDIR/codepot.ini-dist.
* Initialize database using CFGDIR/codepot.sql * Initialize database using CFGDIR/codepot.mysql
* Configure apache web server ahthentication for subversion webdav access * Configure apache web server ahthentication for subversion webdav access
using CFGDIR/codepot.a2ldap or CFGDIR/codepot.a2mysql using CFGDIR/codepot.a2ldap or CFGDIR/codepot.a2mysql

View File

@ -43,7 +43,7 @@ rm -rf $RPM_BUILD_ROOT
/var/www/html/codepot /var/www/html/codepot
%config(noreplace) /etc/codepot/codepot.ini %config(noreplace) /etc/codepot/codepot.ini
/etc/codepot/codepot.sql /etc/codepot/codepot.mysql
/etc/codepot/codepot.a2ldap /etc/codepot/codepot.a2ldap
/etc/codepot/start-commit /etc/codepot/start-commit
/etc/codepot/pre-commit /etc/codepot/pre-commit

View File

@ -1,6 +1,6 @@
cfgdir=$(CFGDIR) cfgdir=$(CFGDIR)
cfg_DATA = codepot.ini codepot.sql codepot.a2ldap cfg_DATA = codepot.ini codepot.mysql codepot.a2ldap
cfg_SCRIPTS = start-commit pre-commit post-commit pre-revprop-change post-revprop-change cfg_SCRIPTS = start-commit pre-commit post-commit pre-revprop-change post-revprop-change
EXTRA_DIST = $(cfg_DATA) $(cfg_SCRIPTS) EXTRA_DIST = $(cfg_DATA) $(cfg_SCRIPTS)

View File

@ -6,10 +6,10 @@ CREATE TABLE site (
name VARCHAR(128) NOT NULL, name VARCHAR(128) NOT NULL,
text TEXT NOT NULL, text TEXT NOT NULL,
createdon DATETIME, createdon DATETIME NOT NULL,
updatedon DATETIME, updatedon DATETIME NOT NULL,
createdby VARCHAR(32), createdby VARCHAR(32) NOT NULL,
updatedby VARCHAR(32) updatedby VARCHAR(32) NOT NULL
) charset=utf8 engine=InnoDB; ) charset=utf8 engine=InnoDB;
CREATE TABLE project ( CREATE TABLE project (
@ -18,10 +18,10 @@ CREATE TABLE project (
summary VARCHAR(255) NOT NULL, summary VARCHAR(255) NOT NULL,
description TEXT NOT NULL, description TEXT NOT NULL,
createdon DATETIME, createdon DATETIME NOT NULL,
updatedon DATETIME, updatedon DATETIME NOT NULL,
createdby VARCHAR(32), createdby VARCHAR(32) NOT NULL,
updatedby VARCHAR(32) updatedby VARCHAR(32) NOT NULL
) charset=utf8 engine=InnoDB; ) charset=utf8 engine=InnoDB;
@ -39,10 +39,10 @@ CREATE TABLE wiki (
name VARCHAR(255) NOT NULL, name VARCHAR(255) NOT NULL,
text TEXT NOT NULL, text TEXT NOT NULL,
createdon DATETIME, createdon DATETIME NOT NULL,
updatedon DATETIME, updatedon DATETIME NOT NULL,
createdby VARCHAR(32), createdby VARCHAR(32) NOT NULL,
updatedby VARCHAR(32), updatedby VARCHAR(32) NOT NULL,
UNIQUE KEY wiki_id (projectid, name), UNIQUE KEY wiki_id (projectid, name),
@ -56,8 +56,8 @@ CREATE TABLE wiki_attachment (
name VARCHAR(255) NOT NULL, name VARCHAR(255) NOT NULL,
encname VARCHAR(255) NOT NULL, encname VARCHAR(255) NOT NULL,
createdon DATETIME, createdon DATETIME NOT NULL,
createdby VARCHAR(32), createdby VARCHAR(32) NOT NULL,
UNIQUE KEY wiki_attachment_id (projectid, wikiname, name), UNIQUE KEY wiki_attachment_id (projectid, wikiname, name),
@ -79,10 +79,10 @@ CREATE TABLE issue (
owner VARCHAR(255) NOT NULL, owner VARCHAR(255) NOT NULL,
priority VARCHAR(32) NOT NULL, priority VARCHAR(32) NOT NULL,
createdon DATETIME, createdon DATETIME NOT NULL,
updatedon DATETIME, updatedon DATETIME NOT NULL,
createdby VARCHAR(32), createdby VARCHAR(32) NOT NULL,
updatedby VARCHAR(32), updatedby VARCHAR(32) NOT NULL,
PRIMARY KEY (projectid, id), PRIMARY KEY (projectid, id),
KEY issue_status_type_summary (projectid, status, type, summary), KEY issue_status_type_summary (projectid, status, type, summary),
@ -103,8 +103,8 @@ CREATE TABLE issue_change (
priority VARCHAR(32) NOT NULL, priority VARCHAR(32) NOT NULL,
comment TEXT NOT NULL, comment TEXT NOT NULL,
updatedon DATETIME, updatedon DATETIME NOT NULL,
updatedby VARCHAR(32), updatedby VARCHAR(32) NOT NULL,
PRIMARY KEY (projectid, id, sno), PRIMARY KEY (projectid, id, sno),
KEY issue_update_time (projectid, id, updatedon), KEY issue_update_time (projectid, id, updatedon),
@ -123,10 +123,10 @@ CREATE TABLE file (
md5sum CHAR(32) NOT NULL, md5sum CHAR(32) NOT NULL,
description TEXT NOT NULL, description TEXT NOT NULL,
createdon DATETIME, createdon DATETIME NOT NULL,
updatedon DATETIME, updatedon DATETIME NOT NULL,
createdby VARCHAR(32), createdby VARCHAR(32) NOT NULL,
updatedby VARCHAR(32), updatedby VARCHAR(32) NOT NULL,
UNIQUE KEY file_id (projectid, name), UNIQUE KEY file_id (projectid, name),
UNIQUE KEY (encname), UNIQUE KEY (encname),

View File

@ -514,8 +514,8 @@ class SubversionModel extends Model
## Sample svn_info() array ## ## Sample svn_info() array ##
[0] => Array [0] => Array
( (
[path] => codepot.sql [path] => codepot.mysql
[url] => file:///svn/test/codepot.sql [url] => file:///svn/test/codepot.mysql
[revision] => 27 [revision] => 27
[kind] => 1 [kind] => 1
[repos] => file:///svn/test [repos] => file:///svn/test