Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove hard coded role and db name from init db migration #358

Merged
merged 2 commits into from
Nov 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions db/migration/202009171251-init-database.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ func Get202009171251() *migrate.Migration {
return &migrate.Migration{
Id: "202009171251-init-database",
Up: []string{`
SET ROLE tinkerbell;
SELECT 'CREATE DATABASE tinkerbell' WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'tinkerbell');
CREATE TABLE IF NOT EXISTS hardware (
id UUID UNIQUE
, inserted_at TIMESTAMPTZ
Expand Down
1 change: 1 addition & 0 deletions deploy/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ services:
environment:
POSTGRES_PASSWORD: tinkerbell
POSTGRES_USER: tinkerbell
POSTGRES_DB: tinkerbell
volumes:
- postgres_data:/var/lib/postgresql/data:rw
ports:
Expand Down