Checkout
Branko ─îibej
committed
on 10 Sep 17
Following up on r1807584, remove unnecessary SQL statements from
the WC schema definition and simplify a step in the upgrade process.

* sub… Show more
Following up on r1807584, remove unnecessary SQL statements from

the WC schema definition and simplify a step in the upgrade process.

* subversion/libsvn_wc/wc-metadata.sql

 (STMT_CREATE_NODES): Remove and include into STMT_CREATE_SCHEMA.

 (STMT_CREATE_NODES_TRIGGERS): Likewise.

 (STMT_CREATE_EXTERNALS): Likewise.

 (STMT_UPGRADE_TO_31_ALTER_TABLE, STMT_UPGRADE_TO_31_FINALIZE):

  Combine these statements into a single ...

 (STMT_UPGRADE_TO_31): ... which is new.

 (STMT_UPGRADE_TO_32): Remove as unused.

 (-- format: YYY): Remove as unused, it converted to a comment anyway.

* subversion/libsvn_wc/wc_db.c

 (init_db): Remove use of deleted SQL statements.

* subversion/libsvn_wc/upgrade.c

 (bump_to_31): Remove the manual check for the existence of the

  NODES.inherited_props column since we no longer support the

  unreleased formats prior to format 20 that did not have

  a NODES table.

* subversion/tests/libsvn_wc/utils.c

 (svn_test__create_fake_wc): Remove use of deleted SQL statements.

* subversion/tests/libsvn_wc/wc-queries-test.c

 (schema_statements): Remove use of deleted SQL statements.

Show less