mirror of
https://github.com/pcvolkmer/etl-processor.git
synced 2025-07-03 06:52:54 +00:00
Add postgres migration file and configuration for postgres
This commit is contained in:
@ -1,8 +1,9 @@
|
||||
CREATE TABLE IF NOT EXISTS request
|
||||
(
|
||||
id int auto_increment primary key,
|
||||
uuid varchar(255) not null,
|
||||
uuid varchar(255) not null unique,
|
||||
patient_id varchar(255) not null,
|
||||
pid varchar(255) not null,
|
||||
fingerprint varchar(255) not null,
|
||||
status varchar(16) not null,
|
||||
processed_at datetime default utc_timestamp() not null
|
||||
|
11
src/main/resources/db/migration/postgresql/V0_1_0__Init.sql
Normal file
11
src/main/resources/db/migration/postgresql/V0_1_0__Init.sql
Normal file
@ -0,0 +1,11 @@
|
||||
CREATE TABLE IF NOT EXISTS request
|
||||
(
|
||||
id serial,
|
||||
uuid varchar(255) not null unique,
|
||||
patient_id varchar(255) not null,
|
||||
pid varchar(255) not null,
|
||||
fingerprint varchar(255) not null,
|
||||
status varchar(16) not null,
|
||||
processed_at timestamp with time zone default now() not null,
|
||||
PRIMARY KEY (id)
|
||||
);
|
Reference in New Issue
Block a user