wadewegner / deploy-to-sfdx

An open-source and community-driven tool for one-click Salesforce DX deployments from public repositories to Scratch Orgs
https://deploy-to-sfdx.com
Apache License 2.0
98 stars 22 forks source link

deployments.sql not up to date ? #27

Closed FabienTaillon closed 6 years ago

FabienTaillon commented 6 years ago

I tried to run deploy-to-sfdx locally following the local setup instructions, including executing deployments.sql.

However it doesn't work as it seems that some columns are missing on the deployments table (guid, settings), and table deployment_steps doesn't exists at all.

Maybe you have a more up to date deployments.sql version that wasn't pushed to the repo ?

Stefanvdk commented 6 years ago

When I tried to run this app locally I encountered this same issue. I found that on the deployments table next to fields mentioned above also stage, complete, error_message, scratch_url can be added.

FabienTaillon commented 6 years ago

One thing took me quite a while to figure out: on the deployments table, stage should have a default value of init otherwise nothing will happen. I think I'll create a pull request with the script I used, even if it's not 100% accurate it will help everyone running it locally.

FabienTaillon commented 6 years ago

@Stefanvdk Have a look to this pull request, you'll get the deployments.sql I used.

Either @wadewegner will use it as a starting point for the correct script, or reject it and update with its own, but it the meantime it will help anyone trying to run the app locally.