fix: Definers now removed from schema.sql closes #4 🐛
This commit is contained in:
@@ -112,11 +112,8 @@ func (c *Client) Dump() error {
|
|||||||
"--skip-triggers",
|
"--skip-triggers",
|
||||||
"--result-file", filepath.Join(c.storagePath, c.databaseName+"-schema.sql"),
|
"--result-file", filepath.Join(c.storagePath, c.databaseName+"-schema.sql"),
|
||||||
c.databaseName).Run()
|
c.databaseName).Run()
|
||||||
fmt.Printf("%s Removing definers\n\r",
|
|
||||||
style.Success(icon.Info),
|
|
||||||
)
|
|
||||||
|
|
||||||
// removeDefiners(filepath.Join(c.storagePath, c.databaseName+"-schema.sql"))
|
removeDefiners(filepath.Join(c.storagePath, c.databaseName+"-schema.sql"))
|
||||||
|
|
||||||
fmt.Printf(
|
fmt.Printf(
|
||||||
"%s Done dumping schema %s from %s\n\r",
|
"%s Done dumping schema %s from %s\n\r",
|
||||||
|
|||||||
Reference in New Issue
Block a user