Skip to content

Commit

Permalink
Remove hard coded user and dbname from init db migration
Browse files Browse the repository at this point in the history
Signed-off-by: James W. Brinkerhoff <[email protected]>
  • Loading branch information
splaspood committed Nov 6, 2020
1 parent a94738e commit e746c25
Showing 1 changed file with 0 additions and 3 deletions.
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

0 comments on commit e746c25

Please sign in to comment.