-
Notifications
You must be signed in to change notification settings - Fork 1
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
Mvs schemazen create tables #27
Conversation
…e-tables # Conflicts: # model/Models/Database.cs # model/Schemazen.Library.nuspec
@@ -5,7 +5,7 @@ | |||
namespace SchemaZen.Library.Command { | |||
public class CreateCommand : BaseCommand { | |||
|
|||
public void Execute(string databaseFilesPath) | |||
public void CreateDatabases(string databaseFilesPath) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this create a single database or multiple?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ow Rick, you got me there. It creates a single DB.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, Rick.
Did you run the schemazen tests locally as well? |
Yes, @colin-hanson-zocdoc all Schemazen tests working. |
@@ -20,7 +20,19 @@ public void Execute(string databaseFilesPath) | |||
throw new InvalidOperationException(msg); | |||
} | |||
|
|||
db.CreateFromDir(Overwrite, databaseFilesPath, Logger.Log); | |||
db.CreateDBFromDir(databaseFilesPath, Logger.Log); | |||
Logger.Log(TraceLevel.Info, Environment.NewLine + "Database created successfully."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should include the database name
57b3d0e
to
61bda32
Compare
@Zocdoc/ci-devs
We need to split the Execute function on two in order to lock only the Database creation.
Tested locally, Scout tests running green.