Skip to content

Commit

Permalink
Fix EZP-19883: Unable to add a comment as anonymous user with Oracle
Browse files Browse the repository at this point in the history
  • Loading branch information
dpobel committed Oct 31, 2012
1 parent e666f8c commit e172bc4
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 10 deletions.
Expand Up @@ -71,8 +71,7 @@ $schema = array (
array (
'length' => 32,
'type' => 'varchar',
'not_null' => '1',
'default' => '',
'default' => NULL,
),
'status' =>
array (
Expand Down
Expand Up @@ -4,7 +4,7 @@ CREATE TABLE IF NOT EXISTS `ezcomment` (
`created` int(11) NOT NULL,
`modified` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`session_key` varchar(32) NOT NULL,
`session_key` varchar(32) DEFAULT NULL,
`ip` varchar(100) NOT NULL,
`contentobject_id` int(11) NOT NULL,
`parent_comment_id` int(11) NOT NULL DEFAULT '0',
Expand Down
Expand Up @@ -4,7 +4,7 @@ CREATE TABLE ezcomment (
created integer NOT NULL,
modified integer NOT NULL,
user_id integer NOT NULL,
session_key varchar2(32) NOT NULL,
session_key varchar2(32) DEFAULT NULL,
ip varchar2(100) NOT NULL,
contentobject_id integer NOT NULL,
parent_comment_id integer DEFAULT 0 NOT NULL,
Expand Down Expand Up @@ -96,4 +96,4 @@ BEFORE INSERT ON ezcomment_subscription FOR EACH ROW WHEN (new.id IS NULL)
BEGIN
SELECT s_comment_subscription.nextval INTO :new.id FROM dual;
END;
/
/
Expand Up @@ -71,7 +71,7 @@ CREATE TABLE ezcomment (
modified integer DEFAULT 0 NOT NULL,
name character varying(255) DEFAULT ''::character varying NOT NULL,
parent_comment_id integer DEFAULT 0 NOT NULL,
session_key character varying(32) DEFAULT ''::character varying NOT NULL,
session_key character varying(32),
status integer DEFAULT 0 NOT NULL,
text text NOT NULL,
title character varying(255),
Expand Down

This file was deleted.

@@ -0,0 +1,7 @@

-- See http://issues.ez.no/19418
ALTER TABLE ezcomment CHANGE COLUMN text text longtext NOT NULL;

-- https://jira.ez.no/browse/EZP-19883
ALTER TABLE ezcomment CHANGE COLUMN session_key session_key varchar(32) DEFAULT NULL;

@@ -0,0 +1,2 @@
-- https://jira.ez.no/browse/EZP-19883
ALTER TABLE ezcomment MODIFY session_key NULL;
@@ -0,0 +1,2 @@
-- https://jira.ez.no/browse/EZP-19883
ALTER TABLE ezcomment ALTER COLUMN session_key SET DEFAULT NULL;

0 comments on commit e172bc4

Please sign in to comment.