diff --git a/README.md b/README.md index 5bad9ee..cdb5e9d 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ go get github.com/beego/bee Then you can add `bee` binary to PATH environment variable in your `~/.bashrc` or `~/.bash_profile` file: ```bash -export PATH=$PATH:/bin/bee +export PATH=$PATH:/bin ``` > If you already have `bee` installed, updating `bee` is simple: diff --git a/apiapp.go b/apiapp.go index 5d24e55..9186f8e 100644 --- a/apiapp.go +++ b/apiapp.go @@ -50,6 +50,9 @@ the following files/directories structure: │   └── user_controller.go ├── docs │   └── doc.go + ├── helpers + │   ├── object_helper.go + │   └── user_helper.go ├── main.go ├── models │   ├── object.go @@ -57,6 +60,8 @@ the following files/directories structure: ├── routers │   └── router.go ├── structures + │   ├── object_structure.go + │   └── user_structure.go └── tests └── default_test.go diff --git a/migrate.go b/migrate.go index 2e3d8b2..173c5b0 100644 --- a/migrate.go +++ b/migrate.go @@ -244,7 +244,7 @@ func selectMigrationsTableSql(driver string) string { case "mysql": return "DESC migrations" case "postgres": - return "SELECT * FROM migrations ORDER BY id_migration;" + return "SELECT * FROM migrations WHERE false ORDER BY id_migration;" default: return "DESC migrations" }