Homec4science

Prepare Projects schema for subprojects

Authored by epriestley <git@epriestley.com> on Dec 19 2015, 17:08.

Description

Prepare Projects schema for subprojects

Summary:
Ref T10010. This does some cleanups on the schema:

  • viewPolicy, editPolicy and joinPolicy were nullable, but should never be null. Set them to defaults if they're null, then make the column non-nullable.
  • Rename phrictionSlug to primarySlug and stop adding and removing trailing slashes from it.
  • Add new columns to support milestones and non-milestone subprojects.
  • Drop very old subprojectPHIDs column. This hasn't done anything in the UI for years and years, and isn't particularly realistic to migrate forward.

The new columns aren't reachable from the UI.

Test Plan:

  • Applied patches.
  • Grepped for phrictionSlug.
  • Grepped for subprojectPHIDs.
  • Created tasks.
  • Edited tasks.
  • Verified existing tasks still had primary slugs.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10010

Differential Revision: https://secure.phabricator.com/D14825

Details

Committed
epriestley <git@epriestley.com>Dec 19 2015, 18:21
Pushed
aubortJan 31 2017, 17:16
Parents
rPH3f8e5c96209d: Straighten out reorder permissions on form configurations
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHaeae0e702830: Prepare Projects schema for subprojects (authored by epriestley <git@epriestley.com>).Dec 19 2015, 18:21