Skip to content

Commit

Permalink
Merge branch 'main' into aws-localstack
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli authored Apr 2, 2024
2 parents fd0ff5c + 31bc678 commit 463c1ce
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 22 deletions.
4 changes: 2 additions & 2 deletions aws-secretmanager-project/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
</dependency>
<dependency>
<groupId>org.springdoc</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.SequenceGenerator;
import jakarta.persistence.Table;
import jakarta.validation.constraints.NotEmpty;
import lombok.AllArgsConstructor;
Expand All @@ -22,11 +21,7 @@
public class Customer {

@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "customer_id_generator")
@SequenceGenerator(
name = "customer_id_generator",
sequenceName = "customer_id_seq",
allocationSize = 100)
@GeneratedValue(strategy = GenerationType.SEQUENCE)
private Long id;

@Column(nullable = false)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
databaseChangeLog:
- includeAll:
path: /migration
relativeToChangelogFile: true
errorsOnMissingFile: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
create sequence customers_seq start with 1 increment by 50;

create table customers (
id bigint DEFAULT nextval('customers_seq') not null,
text varchar(1024) not null,
primary key (id)
);
Empty file.

This file was deleted.

Empty file.

This file was deleted.

0 comments on commit 463c1ce

Please sign in to comment.