1. Drop the org_top function before recreating it since the return type
changes.
2. Fis syntax error in "COMMIT:"
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jason Stephenson <jason@sigio.com>
SELECT evergreen.upgrade_deps_block_check('1140', :eg_version);
+DROP FUNCTION IF EXISTS evergreen.org_top();
+
CREATE OR REPLACE FUNCTION evergreen.org_top()
RETURNS actor.org_unit AS $$
SELECT * FROM actor.org_unit WHERE parent_ou IS NULL LIMIT 1;
$$ LANGUAGE SQL STABLE;
-COMMIT:
+COMMIT;