Skip to content

Commit

Permalink
EZP-28706: Fixed hardcoded PostgreSQL sequence names (#1342)
Browse files Browse the repository at this point in the history
* [PostgreSQL] Aligned sequence naming with ezpublish-kernel 7.x

* [PostgreSQL] Added upgrade script aligning PostgreSQL seq names with 7.x

* [PostgreSQL] Aligned Legacy Schema sequence naming with 7.x

* [PostgreSQL] Aligned ezenum table sequence name with 7.x
  • Loading branch information
alongosz authored and andrerom committed Jun 29, 2018
1 parent 1e9edca commit 639d343
Show file tree
Hide file tree
Showing 7 changed files with 529 additions and 333 deletions.
6 changes: 3 additions & 3 deletions kernel/classes/datatypes/ezenum/ezenum.sql
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ CREATE TABLE ezenumobjectvalue (
#####################################################################################
# sql script for PostgreSql

drop SEQUENCE ezenumvalue_s ;
CREATE SEQUENCE ezenumvalue_s;
drop SEQUENCE ezenumvalue_id_seq ;
CREATE SEQUENCE ezenumvalue_id_seq;

drop table ezenumvalue;
CREATE TABLE ezenumvalue (
contentclass_attribute_id integer DEFAULT 0 NOT NULL,
contentclass_attribute_version integer DEFAULT 0 NOT NULL,
enumelement character varying(255) DEFAULT ''::character varying NOT NULL,
enumvalue character varying(255) DEFAULT ''::character varying NOT NULL,
id integer DEFAULT nextval('ezenumvalue_s'::text) NOT NULL,
id integer DEFAULT nextval('ezenumvalue_id_seq'::text) NOT NULL,
placement integer DEFAULT 0 NOT NULL
);

Expand Down
Loading

0 comments on commit 639d343

Please sign in to comment.