Commit Graph
7 Commits
Author SHA1 Message Date
hashicorp-tsccr[bot]andhashicorp-tsccr[bot] 7a069cb54e Result of tsccr-helper -log-level=info -pin-all-workflows . (#3466)
Co-authored-by: hashicorp-tsccr[bot] <hashicorp-tsccr[bot]@users.noreply.github.com>
2023-07-18 09:25:10 -04:00
cc94accc4f SEC-090: Automated trusted workflow pinning (2023-04-27) (#3187)
* Result of tsccr-helper -pin-all-workflows .

* chore: Disable cache from setup-go

---------

Co-authored-by: hashicorp-tsccr[bot] <hashicorp-tsccr[bot]@users.noreply.github.com>
Co-authored-by: Michael Li <michael.li@hashicorp.com>
2023-05-02 16:37:11 -04:00
Timothy Messier a7c11846d6 lint(ci): Address linter issue for workflow files 2023-03-29 18:38:50 +00:00
Timothy Messier 9d2758368c doc(schema-diff): Add documentation on schema-diff script
This also will include a link to this documentation when leaving a
comment on a pull request.
2023-03-27 14:27:54 +00:00
Timothy Messier 04a6c310ee fix(schema-diff): Include foreign key constraints in diff
With the change to report changes to constraints instead of all of the
post-data section, foreign key constraints where no longer captured in
the diff. This now extracts the foreign key constraints and generates a
diff of them between versions.

Blame: b6d58d0c42
2023-03-27 14:27:54 +00:00
Timothy Messier b6d58d0c42 ci(schema-diff): Generate one file per constraint (#3082)
This yeilds a better diff when constraints are changed.
2023-03-14 12:57:07 -04:00
Timothy MessierandHugo Vieira b00d888387 ci(schema-diff): Add script to generate diff of database schema (#2924)
The script should be given a base branch to compare against, if not set
it defaults to main. The script will apply the schema migrations for
both the base branch and the current commit and generate dumps that are
then compared to create a diff. The dumps are left in a temporary
directory so that they can be compared using a users preferred diff tool.

For example, generate the dumps and diff against main

    ./scripts/schema-diff.sh main

Examine the diff to database functions using delta:

    delta .schema-diff/funcs_$(git rev-parse main) .schema-diff/funcs_$(git rev-parse HEAD)

This also adds a github action that runs the script on pull-requests
that contain schema changes and reports the diffs as a comment on the
pull-request.

Co-authored-by: Hugo Vieira <hugoamvieira@users.noreply.github.com>
2023-03-03 16:21:33 -05:00