Restoring your Evergreen Database to an Empty State

If you've done a test import of records and you want to quickly get Evergreen back to a pristine state, you can create a clean Evergreen database schema by performing the following:

  1. cd ILS/Open-ILS/src/sql/Pg/
    
  2. Rebuild the database schema:

    ./build-db.sh [db-hostname> [db-port] [db-name] [db-user] [db-password] [db-version]
    

    Caution

    This will remove all of your data from the database and restore the default values.