Postgres: If the state_lineages table is missing in the repository, one can rebuild it with sdesetup -o upgrade, that will prompt the rebuilding of the table and population of it with the appropriate lineages based on the records in the states and versions tables.