SET BAIL ON;

EXECUTE PROCEDURE sp_patch_from(1); COMMIT;

CREATE TABLE test (
    foo INTEGER,
    bar INTEGER
);
INSERT INTO test VALUES (1, 2);
INSERT INTO test VALUES (4, 6);
COMMIT;

EXECUTE PROCEDURE sp_patch_to(2, 'test table'); COMMIT;
