Skip to content

Commit

Permalink
Revert "fix: passing the table DB name to the enum-generation steps"
Browse files Browse the repository at this point in the history
This reverts commit 69ff88a.
  • Loading branch information
wuleninja committed Jul 25, 2018
1 parent 69ff88a commit 1af13f4
Show file tree
Hide file tree
Showing 341 changed files with 1 addition and 33,043 deletions.
3 changes: 0 additions & 3 deletions run/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ func makeData(log *log.Logger, info *database.Info, cfg *Config) (*data.DBData,
enum := &data.Enum{
DBName: e.Name,
Schema: sch,
Table: &data.Table{
DBName: e.Table,
},
}
sch.Enums = append(sch.Enums, enum)
enum.Name, err = convert(e.Name)
Expand Down
2 changes: 1 addition & 1 deletion run/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func generateSchemas(env environ.Values, cfg *Config, db *data.DBData) error {
func generateEnums(env environ.Values, cfg *Config, db *data.DBData) error {
for _, schema := range db.Schemas {
for _, enum := range schema.Enums {
fileData := struct{ Schema, Enum, Table string }{Schema: schema.Name, Enum: enum.Name, Table: enum.Table.DBName}
fileData := struct{ Schema, Enum string }{Schema: schema.Name, Enum: enum.Name}
contents := data.EnumData{
Enum: enum,
DB: db,
Expand Down
61 changes: 0 additions & 61 deletions vendor/github.com/BurntSushi/toml/_examples/example.go

This file was deleted.

35 changes: 0 additions & 35 deletions vendor/github.com/BurntSushi/toml/_examples/example.toml

This file was deleted.

22 changes: 0 additions & 22 deletions vendor/github.com/BurntSushi/toml/_examples/hard.toml

This file was deleted.

4 changes: 0 additions & 4 deletions vendor/github.com/BurntSushi/toml/_examples/implicit.toml

This file was deleted.

This file was deleted.

35 changes: 0 additions & 35 deletions vendor/github.com/BurntSushi/toml/_examples/invalid.toml

This file was deleted.

5 changes: 0 additions & 5 deletions vendor/github.com/BurntSushi/toml/_examples/readme1.toml

This file was deleted.

1 change: 0 additions & 1 deletion vendor/github.com/BurntSushi/toml/_examples/readme2.toml

This file was deleted.

14 changes: 0 additions & 14 deletions vendor/github.com/BurntSushi/toml/cmd/toml-test-decoder/COPYING

This file was deleted.

13 changes: 0 additions & 13 deletions vendor/github.com/BurntSushi/toml/cmd/toml-test-decoder/README.md

This file was deleted.

90 changes: 0 additions & 90 deletions vendor/github.com/BurntSushi/toml/cmd/toml-test-decoder/main.go

This file was deleted.

14 changes: 0 additions & 14 deletions vendor/github.com/BurntSushi/toml/cmd/toml-test-encoder/COPYING

This file was deleted.

13 changes: 0 additions & 13 deletions vendor/github.com/BurntSushi/toml/cmd/toml-test-encoder/README.md

This file was deleted.

Loading

0 comments on commit 1af13f4

Please sign in to comment.