How to Remove a Default Value From a Column in PostgreSQL

Assuming orders.total_cents had a default value, this will drop the default for future inserts.

alter table orders alter column total_cents drop default;
database icon
Shared queries and folders ✅ Version history ✅ One-click connection to PostgreSQL ✅
Get more done, together, with PopSQL and PostgreSQL