Skip to content
Permalink
Browse files

Fix EZP-19883: Unable to add a comment as anonymous user with Oracle

  • Loading branch information...
dpobel committed Oct 31, 2012
1 parent e666f8c commit e172bc42b025122a424d033debb754f5170ae729
@@ -71,8 +71,7 @@ $schema = array (
array (
'length' => 32,
'type' => 'varchar',
'not_null' => '1',
'default' => '',
'default' => NULL,
),
'status' =>
array (
@@ -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',
@@ -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,
@@ -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;
/
/
@@ -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),

This file was deleted.

Oops, something went wrong.
@@ -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.
You can’t perform that action at this time.