Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Back out change 38772f2, i.e., exit yamltodb with 0 if statements gen…

…erated.

  Exiting yamltodb with 2 (or 1) prevents it from being used easily in
  automated deployment.
  • Loading branch information...
commit f96448e26205ef6abbbc7f7c914253092af3738e 1 parent 09595ef
@jmafc jmafc authored
Showing with 0 additions and 16 deletions.
  1. +0 −15 docs/yamltodb.rst
  2. +0 −1  pyrseas/yamltodb.py
View
15 docs/yamltodb.rst
@@ -38,10 +38,6 @@ For example, given the input file shown under :doc:`dbtoyaml`,
ALTER TABLE t1 ADD CONSTRAINT t1_pkey PRIMARY KEY (c1);
ALTER TABLE t1 ADD CONSTRAINT t1_c2_fkey FOREIGN KEY (c2) REFERENCES s1.t2 (c21);
-:program:`yamltodb` can also be used to verify that a database has not
-changed, i.e., that it matches the input YAML specification (see `Exit
-status`_ 0 below).
-
Options
-------
@@ -75,17 +71,6 @@ addition to the :doc:`cmdargs`):
Execute the generated statements against the database mentioned in
**dbname**. This implies the ``--single-transaction`` option.
-Exit status
-~~~~~~~~~~~
-
-0    if OK (no differences found)
-
-1    if there was an error in processing, particularly applicable if
-``--update`` was used
-
-2    if differences were found: SQL statements were generated, and
-applied if ``--update`` was used
-
Examples
--------
View
1  pyrseas/yamltodb.py
@@ -61,7 +61,6 @@ def main(host='localhost', port=5432):
print("Changes applied", file=sys.stderr)
if args.output:
args.output.close()
- sys.exit(2)
if __name__ == '__main__':
main()
Please sign in to comment.
Something went wrong with that request. Please try again.