Skip to content

Commit

Permalink
Properly migrate views regardless of SQL SECURITY mode, user/hostname
Browse files Browse the repository at this point in the history
- All migrated views will run with SQL SECURITY INVOKER set
- All migrated views will have the DEFINER specified in `mysqldump`
  removed

[#157373092]

Signed-off-by: Chris Piraino <[email protected]>
  • Loading branch information
andrewgilbert12 authored and crhino committed Nov 21, 2018
1 parent 40563a1 commit 1aa7fe4
Show file tree
Hide file tree
Showing 14 changed files with 711 additions and 1,100 deletions.
88 changes: 8 additions & 80 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,7 @@
[[override]]
name = "gopkg.in/fsnotify.v1"
source = "https://github.com/fsnotify/fsnotify.git"

[[constraint]]
branch = "master"
name = "golang.org/x/sync"
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ Some Notice:
* [Docker](https://www.docker.com/)

1. `cd` into the root directory of the project.
1. Execute the `./scripts/build-assets` script in the corresponding docker image to compile utilites (mysqldump, mysql) to be bundled with the plugin.
1. Run the following script to build the mysql binary and other assets, generate golang fixtures, and compile the binary

```
$ docker run -v $PWD:$PWD -w $PWD -t cloudfoundry/cflinuxfs3 ./scripts/build-assets
$ ./scripts/build-plugin
```
1. Run go generate to create golang compatible static assets out of the utilities

Once the build-plugin script has been run and the assets have been built, you can alternatively use the following commands to just build the go code
1. Generate fixtures
```
$ go generate ./...
```
Expand Down
Loading

0 comments on commit 1aa7fe4

Please sign in to comment.