Tested tool guide
Tested browser tools
Checked August 16, 2026
What SQL Migration Generator does, with a checked example
Describe a schema change - typically adding a column to an existing table - and this tool writes the pair of scripts a migration needs: an up script that applies the change and a down script that reverses it. The output is SQL you review, then drop into your migration file or runner. What surprises people is that the down script is structural only: rollback of an added column is DROP COLUMN, and every value in that column goes with it. A migration rollback restores the schema, never the data.
Worked example
A concrete input and expected output from the current implementation.
Input
Add a column "email" of type varchar(255) to table "users"
->
Expected output
-- up
ALTER TABLE users ADD COLUMN email VARCHAR(255);
-- down
ALTER TABLE users DROP COLUMN email;
The up script applies the requested change, and the down script is its exact inverse, which is what makes the pair a reversible migration. Running up and then down returns the users table to its original shape.