Skip to content
Snippets Groups Projects
Commit 5816101e authored by kbeyro's avatar kbeyro
Browse files

Add flyway for accessToken

parent cc17b6ee
Branches
Tags
3 merge requests!65Resolve "Prevent users from adding an existing SSH key",!601.6.5 fix processing bulk,!2added token management
...@@ -12,7 +12,7 @@ import javax.persistence.Id; ...@@ -12,7 +12,7 @@ import javax.persistence.Id;
import javax.persistence.Table; import javax.persistence.Table;
@Entity @Entity
@Table(name = "accessTokens") @Table(name = "access_tokens")
@NoArgsConstructor @NoArgsConstructor
@Getter @Getter
@Setter @Setter
......
...@@ -60,8 +60,8 @@ db.standalone.username=nmaas ...@@ -60,8 +60,8 @@ db.standalone.username=nmaas
db.standalone.password=nmaas db.standalone.password=nmaas
# Common # Common
spring.h2.console.enabled=true spring.h2.console.enabled=true
spring.jpa.properties.hibernate.show_sql=false spring.jpa.properties.hibernate.show_sql=true
spring.jpa.properties.hibernate.format_sql=false spring.jpa.properties.hibernate.format_sql=true
spring.jpa.properties.hibernate.connection.autocommit=false spring.jpa.properties.hibernate.connection.autocommit=false
spring.jpa.hibernate.ddl-auto=create-drop spring.jpa.hibernate.ddl-auto=create-drop
spring.jpa.show-sql=true spring.jpa.show-sql=true
......
create table access_tokens (
id bigint generated by default as identity,
name varchar(255),
token_value varchar(255),
user_id bigint,
valid boolean not null,
primary key (id)
)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment