Skip to content

Commit f4cfc37

Browse files
Add comment about write privileges in EnsureSchema
Added comment to clarify permissions needed for EnsureSchema function.
1 parent 8adb8c7 commit f4cfc37

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

migrations/migration.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ func Migrate(db *sqlx.DB, migrations []NamedMigration) error {
245245
}
246246
}
247247

248+
// This function requires write privleges even if the schema already exists
248249
func EnsureSchema(db *sqlx.DB, schemaName string) error {
249250
q := fmt.Sprintf("CREATE SCHEMA IF NOT EXISTS %s", schemaName)
250251
_, err := db.Exec(q)

0 commit comments

Comments
 (0)