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

Mvs schemazen create tables #27

Merged
merged 4 commits into from
Dec 13, 2016

Conversation

marcio-santos-zocdoc
Copy link

@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.

marcio-santos-zocdoc added 2 commits December 12, 2016 16:59
@@ -5,7 +5,7 @@
namespace SchemaZen.Library.Command {
public class CreateCommand : BaseCommand {

public void Execute(string databaseFilesPath)
public void CreateDatabases(string databaseFilesPath)

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?

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.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, Rick.

@colin-hanson-zocdoc
Copy link
Collaborator

Did you run the schemazen tests locally as well?

@marcio-santos-zocdoc
Copy link
Author

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.");

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

@chris-smith-zocdoc
Copy link

:shipit:

@marcio-santos-zocdoc marcio-santos-zocdoc force-pushed the mvs-schemazen-create-tables branch from 57b3d0e to 61bda32 Compare December 13, 2016 15:41
@marcio-santos-zocdoc marcio-santos-zocdoc merged commit 5780cec into master Dec 13, 2016
@marcio-santos-zocdoc marcio-santos-zocdoc deleted the mvs-schemazen-create-tables branch December 13, 2016 15:41
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

Successfully merging this pull request may close these issues.

3 participants