Skip to content

Commit

Permalink
Updated migration
Browse files Browse the repository at this point in the history
  • Loading branch information
seizadi committed Jan 15, 2020
1 parent f03f9ac commit 79e65eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ curl -H "Authorization: Bearer $JWT" http://localhost:8080/v1/secrets -d '{"vaul
curl -H "Authorization: Bearer $JWT" http://localhost:8080/v1/vaults
curl -H "Authorization: Bearer $JWT" http://localhost:8080/v1/version_tags -d '{"name": "cmdb-app", "description": "cmdb application version tag", "version": "v0.0.4", "repo": "https://github.com/seizadi/cmdb/releases/tag/v0.0.4", "commit": "20ec77f5a8f8e260deb51e8d888a2597762184b6"}'

curl -H "Authorization: Bearer $JWT" http://localhost:8080/v1/lifecycles | jq
curl -H "Authorization: Bearer $JWT" http://localhost:8080/v1/environments | jq

```
Now I can go to the proto file and customize the resources based on
my data model for the remaining resources:
Expand Down
2 changes: 1 addition & 1 deletion db/migrations/00010_application_instances.up.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CREATE TABLE application_instances (
name text DEFAULT NULL,
description text DEFAULT NULL,
config_yaml text DEFAULT NULL,
app_version_id int REFERENCES app_versions(id) ON DELETE CASCADE,
chart_version_id int REFERENCES chart_versions(id) ON DELETE CASCADE,
environment_id int REFERENCES environments(id) ON DELETE CASCADE,
application_id int REFERENCES applications(id) ON DELETE CASCADE
);
Expand Down

0 comments on commit 79e65eb

Please sign in to comment.