Re-migrate the chain setup for sp_create from PostgreSQL