Skip to content

Commit 639d343

Browse files
alongoszandrerom
authored andcommitted
EZP-28706: Fixed hardcoded PostgreSQL sequence names (#1342)
* [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
1 parent 1e9edca commit 639d343

File tree

7 files changed

+529
-333
lines changed

7 files changed

+529
-333
lines changed

kernel/classes/datatypes/ezenum/ezenum.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ CREATE TABLE ezenumobjectvalue (
2525
#####################################################################################
2626
# sql script for PostgreSql
2727

28-
drop SEQUENCE ezenumvalue_s ;
29-
CREATE SEQUENCE ezenumvalue_s;
28+
drop SEQUENCE ezenumvalue_id_seq ;
29+
CREATE SEQUENCE ezenumvalue_id_seq;
3030

3131
drop table ezenumvalue;
3232
CREATE TABLE ezenumvalue (
3333
contentclass_attribute_id integer DEFAULT 0 NOT NULL,
3434
contentclass_attribute_version integer DEFAULT 0 NOT NULL,
3535
enumelement character varying(255) DEFAULT ''::character varying NOT NULL,
3636
enumvalue character varying(255) DEFAULT ''::character varying NOT NULL,
37-
id integer DEFAULT nextval('ezenumvalue_s'::text) NOT NULL,
37+
id integer DEFAULT nextval('ezenumvalue_id_seq'::text) NOT NULL,
3838
placement integer DEFAULT 0 NOT NULL
3939
);
4040

0 commit comments

Comments
 (0)