Thread:Project:Support desk/Upgrade issue

we upgraded 1.12 to 1.21, now what im trying to do in new environment means in 1.21 i pointed out some other 1.12 db trying to run update.php getting the below error

Creating index 'ts2_page_title' Making foreign key on table 'oldimage' (to image) a cascade delete/update ...table 'page' has 'page_deleted' trigger Changing constraint 'revision_rev_user_fkey' to ON DELETE RESTRICT ...A database query syntax error has occurred. The last attempted database query was: "ALTER TABLE revision DROP CONSTRAINT revision_rev_user_fkey " from within function "DatabaseBase::sourceFile( /iqms/htdocs/km/maintenance/postgres/archives/patch-revision_rev_user_fkey.sql )". Database returned error "42704: ERROR: constraint "revision_rev_user_fkey" of relation "revision" does not exist " Backtrace:
 * 1) 0 /iqms/htdocs/km/includes/db/DatabasePostgres.php(483): DatabaseBase->reportQueryError('ERROR: constra...', '42704', 'ALTER TABLE rev...', 'DatabaseBase::s...', false)
 * 2) 1 /iqms/htdocs/km/includes/db/Database.php(983): DatabasePostgres->reportQueryError('ERROR: constra...', '42704', 'ALTER TABLE rev...', 'DatabaseBase::s...', false)
 * 3) 2 /iqms/htdocs/km/includes/db/Database.php(3409): DatabaseBase->query('ALTER TABLE rev...', 'DatabaseBase::s...')
 * 4) 3 /iqms/htdocs/km/includes/db/Database.php(3322): DatabaseBase->sourceStream(Resource id #551, false, false, 'DatabaseBase::s...', false)
 * 5) 4 /iqms/htdocs/km/includes/installer/DatabaseUpdater.php(639): DatabaseBase->sourceFile('/iqms/htdocs/km...')
 * 6) 5 /iqms/htdocs/km/includes/installer/PostgresUpdater.php(767): DatabaseUpdater->applyPatch('patch-revision_...', false, 'Changing constr...')
 * 7) 6 [internal function]: PostgresUpdater->checkRevUserFkey
 * 8) 7 /iqms/htdocs/km/includes/installer/DatabaseUpdater.php(435): call_user_func_array(Array, Array)
 * 9) 8 /iqms/htdocs/km/includes/installer/DatabaseUpdater.php(387): DatabaseUpdater->runUpdates(Array, false)
 * 10) 9 /iqms/htdocs/km/maintenance/update.php(149): DatabaseUpdater->doUpdates(Array)
 * 11) 10 /iqms/htdocs/km/maintenance/doMaintenance.php(110): UpdateMediaWiki->execute
 * 12) 11 /iqms/htdocs/km/maintenance/update.php(191): require_once('/iqms/htdocs/km...')
 * 13) 12 {main}