Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DDL is not run when the specified database exists #1

Open
ymmt2005 opened this issue Dec 18, 2022 · 1 comment
Open

DDL is not run when the specified database exists #1

ymmt2005 opened this issue Dec 18, 2022 · 1 comment

Comments

@ymmt2005
Copy link

The setup code does not run DDL when the specified database exists.

switch {
case err == nil:
fmt.Printf("Database %q already exist\n", d.dsn)
// if the database exists, we just use it
return nil

What is expected:

  • DDLs are always run.

Actual Behavior:

  • DDLs were not run, resulting in an empty database.
@ymmt2005
Copy link
Author

I thought the database would be dropped first if there was a database already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant