migutil

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckNonIdempotentDDLFix

func CheckNonIdempotentDDLFix(
	migName string,
	hasSkipIf bool,
	stmts []classifysql.Statement,
) error

CheckNonIdempotentDDLFix validates DDL idempotency requirements. For any statement flagged as non-idempotent but easily fixable (missing IF EXISTS / IF NOT EXISTS) we require a SkipIf-style safeguard (indicated by hasSkipIf). If absent, we error. Non-idempotent hard cases also error.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL