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.
* Initialize database using CFGDIR/codepot.sql
* Initialize database using CFGDIR/codepot.mysql
* Configure apache web server ahthentication for subversion webdav access
using CFGDIR/codepot.a2ldap or CFGDIR/codepot.a2mysql

View File

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

View File

@ -1,6 +1,6 @@
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
EXTRA_DIST = $(cfg_DATA) $(cfg_SCRIPTS)

View File

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

View File

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