* Implemented `Concurrent` field in index model * Updated index creation template to support `CREATE INDEX CONCURRENTLY` * Added tests for concurrent index creation in migration writer
2 lines
199 B
Cheetah
2 lines
199 B
Cheetah
CREATE {{if .Unique}}UNIQUE {{end}}INDEX {{if .Concurrent}}CONCURRENTLY {{end}}IF NOT EXISTS {{quote_ident .IndexName}}
|
|
ON {{qual_table .SchemaName .TableName}} USING {{.IndexType}} ({{.Columns}}); |