Skip to content
Merged
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: 1 addition & 2 deletions database_postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type PostgresDatabase struct {

func (p *PostgresDatabase) CreateSchemaHistoryTable() (sql.Result, error) {
return p.db.Exec(`CREATE TABLE IF NOT EXISTS flyway_schema_history (
installed_rank INT NOT NULL,
installed_rank INT NOT NULL PRIMARY KEY,
version VARCHAR(50) DEFAULT NULL,
description VARCHAR(200) NOT NULL,
type VARCHAR(20) NOT NULL,
Expand All @@ -31,7 +31,6 @@ func (p *PostgresDatabase) CreateSchemaHistoryTable() (sql.Result, error) {
execution_time INTEGER NOT NULL,
success BOOLEAN NOT NULL
);
ALTER TABLE flyway_schema_history ADD CONSTRAINT flyway_schema_history_pk PRIMARY KEY (installed_rank);
`)
}

Expand Down
Loading