Performs hudson downgrade.
977872
@RequirePOST
    public void doRestart(StaplerResponse rsp) throws IOException, ServletException {
        HudsonDowngradeJob job = new HudsonDowngradeJob(getCoreSource(), Jenkins.getAuthentication());
        LOGGER.info("Scheduling the core downgrade");

        addJob(job);
        rsp.sendRedirect2(".");
    }
922402
public function down()
	{
        if(Schema::hasTable('hlogeon_scms_pages')){
            Schema::table('hlogeon_scms_pages', function(Blueprint $table){
                $table->dropColumn('reading_time');
                $table->dropColumn('user_id');
                $table->dropColumn('seo_title');
                $table->dropColumn('seo_description');
                $table->dropColumn('seo_keywords');
                DB::statement('ALTER TABLE hlogeon_scms_pages MODIFY COLUMN sidebar text');
            });
        }
	}
29695
public function down()
    {
        Schema::drop('sites');
        Schema::drop('asset_site');
        Schema::drop('person_site');

        Schema::table('pages', function (Blueprint $table) {
            $table->dropColumn(Page::ATTR_SITE);
        });

        Schema::table('groups', function (Blueprint $table) {
            $table->dropColumn(Group::ATTR_SITE);
        });

        Schema::table('tags', function (Blueprint $table) {
            $table->dropColumn(Group::ATTR_SITE);
        });

        Schema::table('page_urls', function (Blueprint $table) {
            $table->dropColumn(Page::ATTR_SITE);
            $table->dropUnique('page_urls_site_id_location');
        });
    }
715878
def downgrade():
    """"""
    ctx = op.get_context()
    insp = Inspector.from_engine(ctx.connection.engine)

    for fk in insp.get_foreign_keys('transaction'):
        if fk['referred_table'] == 'accounts_user':
            op.drop_constraint(
                op.f(fk['name']), 'transaction', type_='foreignkey'
            )

    with op.batch_alter_table('transaction') as batch_op:
        batch_op.drop_index(op.f('ix_transaction_user_id'))
        batch_op.drop_column('user_id')
    op.drop_table('accounts_userrole')
    op.drop_table('accounts_user_session_activity')
    op.drop_table('accounts_user')
    op.drop_table('accounts_role')
857662
public function down()
    {
        Schema::table(
            'contents',
            function (Blueprint $table) {
                $table->removeColumn('type');
                $table->removeColumn('published');
            }
        );

        Schema::table(
            'revisions',
            function (Blueprint $table) {
                $table->removeColumn('published');
            }
        );
    }
483352
function onupgrade(to) {
    if (transport$$1 && to.name !== transport$$1.name) {
      debug$5('"%s" works - aborting "%s"', to.name, transport$$1.name);
      freezeTransport();
    }
  }
50497
public function down()
    {
        if (!Schema::hasColumn('jobs', 'reserved')) {
            Schema::table('jobs', function (Blueprint $table) {
                $table->tinyInteger('reserved')->unsigned();
            });
        }
        if (Schema::hasColumn('failed_jobs', 'reserved')) {
            Schema::table('failed_jobs', function (Blueprint $table) {
                $table->dropColumn('exception');
            });
        }
    }
859703
private void downgradeEdge(int edgeEntryIndex) {
    EdgeEntry entry = (EdgeEntry) mEntries.get(edgeEntryIndex);
    LockResource lock = mInodeLockManager.lockEdge(entry.mEdge, LockMode.READ);
    entry.getLock().close();
    mEntries.set(edgeEntryIndex, new EdgeEntry(lock, entry.getEdge()));
  }
1305564
function onupgrade(to){
    if (transport && to.name != transport.name) {
      debug('"%s" works - aborting "%s"', to.name, transport.name);
      freezeTransport();
    }
  }
1296737
public function down()
    {
        if(Schema::hasColumn('laramanager_objectables', 'laramanager_object_id'))
        {
            Schema::table('laramanager_objectables', function (Blueprint $table) {
                $table->renameColumn('laramanager_object_id', 'object_id');
                $table->renameColumn('laramanager_objectable_id', 'objectable_id');
                $table->renameColumn('laramanager_objectable_type', 'objectable_type');
            });
        }
    }
1373260
public static void down(GrayU16 input , int sampleWidth , GrayI16 output ) {
		if( sampleWidth == 2 ) {
			if(BoofConcurrency.USE_CONCURRENT ) {
				ImplAverageDownSample2_MT.down(input, output);
			} else {
				ImplAverageDownSample2.down(input, output);
			}
		} else {
			if(BoofConcurrency.USE_CONCURRENT ) {
				ImplAverageDownSampleN_MT.down(input, sampleWidth, output);
			} else {
				ImplAverageDownSampleN.down(input, sampleWidth, output);
			}
		}
	}
361435
public static TaskID downgrade(org.apache.hadoop.mapreduce.TaskID old) {
    if (old instanceof TaskID) {
      return (TaskID) old;
    } else {
      return new TaskID(JobID.downgrade(old.getJobID()), old.isMap(), 
                        old.getId());
    }
  }
187288
public function down()
    {
        Schema::table('hc_menu', function (Blueprint $table) {
            $table->dropForeign(['language_code']);
            $table->dropForeign(['parent_id']);
            $table->dropForeign(['menu_type_id']);
        });

        Schema::drop('hc_menu');
    }
181228
protected static function _down($name, $type)
	{
		// -v or --version
		$version = \Cli::option('v', \Cli::option('version', null));

		// if version has a value, make sure only 1 item was passed
		if ($version and (static::$default + static::$module_count + static::$package_count > 1))
		{
			\Cli::write('Migration: version only accepts 1 item.');
			return;
		}

		$migrations = \Migrate::down($version, $name, $type);

		if ($migrations)
		{
			\Cli::write('Reverted migrations for '.$type.':'.$name.':', 'green');
			foreach ($migrations as $migration)
			{
				\Cli::write('- '.$migration);
			}
		}
		else
		{
			// there is no 'down'...
			\Cli::write('There are no migrations installed to revert for '.$type.':'.$name.'.');
		}
	}
258814
public static void down(GrayU8 input , int sampleWidth , GrayI8 output ) {
		if( sampleWidth == 2 ) {
			if(BoofConcurrency.USE_CONCURRENT ) {
				ImplAverageDownSample2_MT.down(input, output);
			} else {
				ImplAverageDownSample2.down(input, output);
			}
		} else {
			if(BoofConcurrency.USE_CONCURRENT ) {
				ImplAverageDownSampleN_MT.down(input, sampleWidth, output);
			} else {
				ImplAverageDownSampleN.down(input, sampleWidth, output);
			}
		}
	}
238516
def down(self, h, cr=True):
        
        if cr:
            self.oPdf.ln(h=0)
        self.oPdf.set_y(self.oPdf.get_y() + h)
120836
public static JobID downgrade(org.apache.hadoop.mapreduce.JobID old) {
    if (old instanceof JobID) {
      return (JobID) old;
    } else {
      return new JobID(old.getJtIdentifier(), old.getId());
    }
  }