• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

skeema / tengo
89%
main: 94%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v0.10.3
DEFAULT BRANCH: main
Repo Added 04 May 2018 05:02AM UTC
Files 18
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH foreign-keys
branch: foreign-keys
CHANGE BRANCH
x
Reset
  • foreign-keys
  • bulkdropopts
  • ci-golint-fix
  • col-reorder-algo
  • conn-refactor
  • dep-golang-19
  • fix-gomod-err
  • fk-order-mysql55
  • flavor-patch
  • generated-cols
  • ghactions
  • index-ordering
  • introspection-params
  • key-col-name-only
  • main
  • mariadb106
  • master
  • partitioning
  • refs/tags/v0.10.0
  • refs/tags/v0.10.1
  • refs/tags/v0.10.3
  • refs/tags/v0.9.4
  • refs/tags/v0.9.5
  • refs/tags/v0.9.6
  • refs/tags/v0.9.7
  • remove-caching
  • reuse-containers
  • routines
  • routines-rebased
  • v0.8.1
  • v0.8.10
  • v0.8.11
  • v0.8.12
  • v0.8.13
  • v0.8.14
  • v0.8.15
  • v0.8.16
  • v0.8.17
  • v0.8.18
  • v0.8.19
  • v0.8.2
  • v0.8.3
  • v0.8.4
  • v0.8.5
  • v0.8.7
  • v0.8.8
  • v0.8.9
  • v0.9.0
  • v0.9.1
  • v0.9.2
  • v0.9.3

pending completion
45

Pull #9

travis-ci

web-flow
Optionally ignore FK renames; refactor AlterTableClause more broadly

By default, diffs will now ignore simple foreign key renames -- cases where
the FK name changed, but no other aspect of its definition changed. This
prevents unexpected problems from using tools like pt-osc, which need to rename
foreign keys in order to function. To override this behavior and generate ALTER
TABLEs for renamed FKs, use new field StatementModifiers.StrictForeignKeyNaming.

This commit also more broadly refactors several aspects of AlterTableClause:

* Clause() now takes a StatementModifiers value, and is responsible for doing
  its own filtering when appropriate. This removes the need for a type switch
  in TableDiff.alterStatement().

* Moved the handling of index reorder detection to happen at diff creation
  time, rather than always generating it and then having to detect it later
  at Statement time.

* Unsafe() is no longer part of AlterTableClause; it has instead been moved to
  its own Unsafer interface. Types that do not implement Unsafe are always
  considered safe.

* Removed unnecessary Table fields from most of the AlterTableClause concrete
  types.

Also added test coverage for code changes where relevant.
Pull Request #9: Support for Foreign Key Constraints

227 of 227 new or added lines in 5 files covered. (100.0%)

1691 of 1895 relevant lines covered (89.23%)

107.98 hits per line

Relevant lines Covered
Build:
Build:
1895 RELEVANT LINES 1691 COVERED LINES
107.98 HITS PER LINE
Source Files on foreign-keys
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
45 foreign-keys Optionally ignore FK renames; refactor AlterTableClause more broadly By default, diffs will now ignore simple foreign key renames -- cases where the FK name changed, but no other aspect of its definition changed. This prevents unexpected problems... Pull #9 26 Jun 2018 11:58PM UTC web-flow travis-ci pending completion  
44 foreign-keys Optionally ignore FK renames; refactor AlterTableClause more broadly By default, diffs will now ignore simple foreign key renames -- cases where the FK name changed, but no other aspect of its definition changed. This prevents unexpected problems... push 26 Jun 2018 11:45PM UTC evanelias travis-ci pending completion  
43 foreign-keys Support multi-col foreign keys; avoid dropping and adding FKs in same ALTER Add support for multi-column foreign keys. For safety reasons, ensure that a single ALTER TABLE never contains DROP FOREIGN KEY and ADD FOREIGN KEY clauses at the same t... push 26 Jun 2018 05:14AM UTC evanelias travis-ci pending completion  
See All Builds (266)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc