Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
Роман Бородин | 7743838258 | |
Роман Бородин | 374cc6e7ee |
|
@ -9,7 +9,7 @@ migrate-template a wrapper for migration sources of library [golang-migrate/migr
|
|||
```go
|
||||
|
||||
import (
|
||||
template "github.com/FindMyKids/migrate-template"
|
||||
template "github.com/mbk-lab/migrate-template"
|
||||
"github.com/golang-migrate/migrate/v4"
|
||||
"github.com/golang-migrate/migrate/v4/source"
|
||||
)
|
||||
|
@ -37,10 +37,10 @@ func main() {
|
|||
Migration template using variables:
|
||||
```sql
|
||||
|
||||
CREATE TABLE table_name ON CLUSTER {{cluster}} (
|
||||
CREATE TABLE table_name ON CLUSTER {{.cluster}} (
|
||||
foo Int64,
|
||||
bar String
|
||||
) ENGINE = ReplicatedReplacingMergeTree('{{replicated_path}}.table_name', '{replica}')
|
||||
) ENGINE = ReplicatedReplacingMergeTree('{{.replicated_path}}.table_name', '{replica}')
|
||||
```
|
||||
|
||||
Result:
|
||||
|
|
Loading…
Reference in New Issue