MP028WARNINGFree

no-rename-table

What It Detects

Renaming a table breaks all queries, views, and foreign keys referencing it.

Why It's Dangerous

Table renames take effect immediately and break all running queries, views, stored procedures, and application code that reference the old name.

Bad Example

ALTER TABLE users RENAME TO accounts;

Good Example

-- Create new table, migrate data, update app code, drop old
CREATE TABLE accounts (LIKE users INCLUDING ALL);
-- Migrate data and update references

Configuration

Disable this rule:

# .migrationpilotrc.yml
rules:
  MP028: false

Or change its severity:

# .migrationpilotrc.yml
rules:
  MP028:
    severity: warning