Skip to content

Commit

Permalink
Value stored in comment.state is not 15 char length.
Browse files Browse the repository at this point in the history
Use a VARCHAR instead of a CHAR. It improves compatibility
with PgSQL.
  • Loading branch information
rledisez committed Jun 23, 2009
1 parent c80d2da commit d601ab9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion installer/install.sql
Expand Up @@ -55,7 +55,7 @@ CREATE TABLE {comments} (
`server_remote_addr` varchar(32) default NULL,
`server_remote_host` varchar(64) default NULL,
`server_remote_port` varchar(16) default NULL,
`state` char(15) default 'unpublished',
`state` varchar(15) default 'unpublished',
`text` text,
`updated` int(9) NOT NULL,
PRIMARY KEY (`id`)
Expand Down
2 changes: 1 addition & 1 deletion modules/comment/helpers/comment_installer.php
Expand Up @@ -43,7 +43,7 @@ static function install() {
`server_remote_addr` varchar(32) default NULL,
`server_remote_host` varchar(64) default NULL,
`server_remote_port` varchar(16) default NULL,
`state` char(15) default 'unpublished',
`state` varchar(15) default 'unpublished',
`text` text,
`updated` int(9) NOT NULL,
PRIMARY KEY (`id`))
Expand Down

0 comments on commit d601ab9

Please sign in to comment.