Skip to content
Snippets Groups Projects
Commit 745a7bb4 authored by Bert Palm's avatar Bert Palm :bug:
Browse files

renamed bucket to bucket_name; rm user/passwd, because its already encoded in the db_url

parent eb5ec66e
No related branches found
No related tags found
1 merge request!113add s3map db to store bucket to database mapping
Pipeline #297422 failed
......@@ -13,12 +13,10 @@ psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-E
CREATE TABLE "mapping" (
"id" bigserial NOT NULL PRIMARY KEY,
"bucket" varchar(256) NOT NULL UNIQUE,
"bucket_name" varchar(256) NOT NULL UNIQUE,
"thing_uuid" uuid NOT NULL,
"thing_name" varchar(256) NOT NULL,
"db_url" varchar(256) NOT NULL,
"db_user" varchar(256) NOT NULL,
"db_pass" varchar(256) NOT NULL
);
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA $S3MAP_POSTGRES_USER TO $S3MAP_POSTGRES_USER;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment