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

skeema / skeema / 5907689321
93%
main: 92%

Build:
Build:
LAST BUILD BRANCH: remove-sqlx-callsites
DEFAULT BRANCH: main
Ran 18 Aug 2023 10:43PM UTC
Jobs 1
Files 74
Run time 23min
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

18 Aug 2023 10:32PM UTC coverage: 93.144% (-0.04%) from 93.18%
5907689321

push

github

evanelias
diff/push: support ALTER PROCEDURE and ALTER FUNCTION

For some limited types of adjustments to a routine, MySQL and MariaDB both
support ALTER statements to modify the routine's characteristics in-place.
Previously, Skeema would never emit ALTER PROCEDURE or ALTER FUNCTION
statements in these cases; all modifications to routines were handled with
a DROP and CREATE pair in MySQL, or a single CREATE OR REPLACE in MariaDB.

This commit adds the ability for `skeema diff` and `skeema push` to generate
an ALTER statement whenever the desired modification to a routine can be
handled solely with such a statement. In other words, an ALTER will now be
generated for changes that only affect some combination of a routine's SQL
characteristic, SECURITY characteristic, or comment clause.

Such changes are always considered safe (not requiring --allow-unsafe even in
MySQL) because the change is atomic, and does not cause the routine to briefly
not exist.

One notable special case is an attempt to *remove* a COMMENT clause from a
routine. A server bug in MySQL 8.0 and 8.1 prevents this from being possible
in an ALTER statement; such a statement (e.g. ALTER PROCEDURE foo COMMENT '')
simply does not remove any preexisting comment. To work-around this server
bug, Skeema will replace the routine instead of using an ALTER in this
specific situation.

89 of 89 new or added lines in 1 file covered. (100.0%)

9265 of 9947 relevant lines covered (93.14%)

1.11 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5907689321.1 18 Aug 2023 10:43PM UTC 0
93.14
GitHub Action Run
Source Files on build 5907689321
Detailed source file information is not available for this build.
  • Back to Repo
  • 6fab6d8c on github
  • Prev Build on routine-diff-refactor (#5872572661)
  • Next Build on routine-diff-refactor (#5932470303)
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

© 2026 Coveralls, Inc