mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1966 Remove sequence batching - postgres opps
This commit is contained in:
@@ -8,7 +8,7 @@ import javax.sql.DataSource;
|
||||
class PostgresDbSequence extends SequenceStepIdGenerator {
|
||||
|
||||
PostgresDbSequence(BackgroundExecutor be, DataSource ds, String seqName, int stepSize) {
|
||||
super(be, ds, seqName, stepSize, "select nextval('\" + seqName + \"')");
|
||||
super(be, ds, seqName, stepSize, "select nextval('" + seqName + "')");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
-- Generated by ebean unknown at 2020-03-04T11:18:31.280668Z
|
||||
-- Generated by ebean unknown at 2020-03-04T11:25:28.198394Z
|
||||
create table asimple_bean (
|
||||
id bigint generated by default as identity not null,
|
||||
name varchar(255),
|
||||
@@ -275,7 +275,7 @@ create table drel_booking (
|
||||
constraint uq_drel_booking_client_invoice unique (client_invoice),
|
||||
constraint pk_drel_booking primary key (id)
|
||||
);
|
||||
create sequence drel_booking_seq increment by 1;
|
||||
create sequence drel_booking_seq increment by 50;
|
||||
|
||||
create table bw_bean (
|
||||
id bigint generated by default as identity not null,
|
||||
@@ -396,7 +396,7 @@ create table sp_car_car (
|
||||
version integer not null,
|
||||
constraint pk_sp_car_car primary key (id)
|
||||
);
|
||||
create sequence sp_car_car_seq increment by 1;
|
||||
create sequence sp_car_car_seq increment by 50;
|
||||
|
||||
create table sp_car_car_wheels (
|
||||
car bigint not null,
|
||||
@@ -417,7 +417,7 @@ create table sa_car (
|
||||
version integer not null,
|
||||
constraint pk_sa_car primary key (id)
|
||||
);
|
||||
create sequence sa_car_seq increment by 1;
|
||||
create sequence sa_car_seq increment by 50;
|
||||
|
||||
create table car_accessory (
|
||||
id integer generated by default as identity not null,
|
||||
@@ -864,7 +864,7 @@ create table sp_car_door (
|
||||
version integer not null,
|
||||
constraint pk_sp_car_door primary key (id)
|
||||
);
|
||||
create sequence sp_car_door_seq increment by 1;
|
||||
create sequence sp_car_door_seq increment by 50;
|
||||
|
||||
create table earray_bean (
|
||||
id bigint generated by default as identity not null,
|
||||
@@ -1801,7 +1801,7 @@ create table gen_key_sequence (
|
||||
description varchar(255),
|
||||
constraint pk_gen_key_sequence primary key (id)
|
||||
);
|
||||
create sequence SEQ start with 1 increment by 1;
|
||||
create sequence SEQ start with 1 increment by 50;
|
||||
|
||||
create table gen_key_table (
|
||||
id bigint generated by default as identity not null,
|
||||
@@ -2018,7 +2018,7 @@ create table drel_invoice (
|
||||
version integer not null,
|
||||
constraint pk_drel_invoice primary key (id)
|
||||
);
|
||||
create sequence drel_invoice_seq increment by 1;
|
||||
create sequence drel_invoice_seq increment by 50;
|
||||
|
||||
create table item (
|
||||
customer integer not null,
|
||||
@@ -3614,7 +3614,7 @@ create table t_detail_with_other_namexxxyy (
|
||||
constraint uq_t_detail_with_other_namexxxyy_some_unique_value unique (some_unique_value),
|
||||
constraint pk_t_detail_with_other_namexxxyy primary key (id)
|
||||
);
|
||||
create sequence t_atable_detail_seq increment by 1;
|
||||
create sequence t_atable_detail_seq increment by 50;
|
||||
|
||||
create table t_atable_thatisrelatively (
|
||||
id integer not null,
|
||||
@@ -3623,7 +3623,7 @@ create table t_atable_thatisrelatively (
|
||||
active boolean default false not null,
|
||||
constraint pk_t_atable_thatisrelatively primary key (id)
|
||||
);
|
||||
create sequence t_atable_master_seq increment by 1;
|
||||
create sequence t_atable_master_seq increment by 50;
|
||||
|
||||
create table ttruck_holder (
|
||||
id bigint generated by default as identity not null,
|
||||
@@ -3692,14 +3692,14 @@ create table tire (
|
||||
constraint uq_tire_wheel unique (wheel),
|
||||
constraint pk_tire primary key (id)
|
||||
);
|
||||
create sequence tire_seq increment by 1;
|
||||
create sequence tire_seq increment by 50;
|
||||
|
||||
create table sa_tire (
|
||||
id bigint not null,
|
||||
version integer not null,
|
||||
constraint pk_sa_tire primary key (id)
|
||||
);
|
||||
create sequence sa_tire_seq increment by 1;
|
||||
create sequence sa_tire_seq increment by 50;
|
||||
|
||||
create table tree_entity (
|
||||
id integer generated by default as identity not null,
|
||||
@@ -3924,7 +3924,7 @@ create table wheel (
|
||||
version integer not null,
|
||||
constraint pk_wheel primary key (id)
|
||||
);
|
||||
create sequence wheel_seq increment by 1;
|
||||
create sequence wheel_seq increment by 50;
|
||||
|
||||
create table sa_wheel (
|
||||
id bigint not null,
|
||||
@@ -3933,7 +3933,7 @@ create table sa_wheel (
|
||||
version integer not null,
|
||||
constraint pk_sa_wheel primary key (id)
|
||||
);
|
||||
create sequence sa_wheel_seq increment by 1;
|
||||
create sequence sa_wheel_seq increment by 50;
|
||||
|
||||
create table sp_car_wheel (
|
||||
id bigint not null,
|
||||
@@ -3941,7 +3941,7 @@ create table sp_car_wheel (
|
||||
version integer not null,
|
||||
constraint pk_sp_car_wheel primary key (id)
|
||||
);
|
||||
create sequence sp_car_wheel_seq increment by 1;
|
||||
create sequence sp_car_wheel_seq increment by 50;
|
||||
|
||||
create table g_who_props_otm (
|
||||
id bigint generated by default as identity not null,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
-- Generated by ebean unknown at 2020-03-04T11:18:31.280668Z
|
||||
-- Generated by ebean unknown at 2020-03-04T11:25:28.198394Z
|
||||
alter table if exists bar drop constraint if exists fk_bar_foo_id;
|
||||
drop index if exists ix_bar_foo_id;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user