1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-25 00:02:41 +01:00
phorge-phorge/src/applications/repository/storage
epriestley 300172e799 Support AUTO_INCREMENT in bin/storage adjust
Summary:
Ref T1191. When changing the column type of an AUTO_INCREMENT column, we currently may lose the autoincrement attribute.

Instead, support it. This is a bit messy because AUTO_INCREMENT columns interact with PRIMARY KEY columns (tables may only have one AUTO_INCREMENT column, and it must be a primary key). We need to migrate in more phases to avoid this issue.

Introduce new `auto` and `auto64` types to represent autoincrement IDs.

Test Plan:
  - Saw autoincrement show up correctly in web UI.
  - Fixed an autoincrement issue on the XHProf storage table with `bin/storage adjust` safely.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T1191

Differential Revision: https://secure.phabricator.com/D10607
2014-10-01 08:24:51 -07:00
..
__tests__ Change double quotes to single quotes. 2014-06-09 11:36:50 -07:00
PhabricatorRepository.php Use binary collations for most text 2014-10-01 08:18:53 -07:00
PhabricatorRepositoryArcanistProject.php Fix almost all remaining schemata issues 2014-10-01 08:18:36 -07:00
PhabricatorRepositoryAuditRequest.php Generate expected schemata for Repository 2014-09-28 15:12:21 -07:00
PhabricatorRepositoryBranch.php Fix almost all remaining schemata issues 2014-10-01 08:18:36 -07:00
PhabricatorRepositoryCommit.php Generate expected schemata for Repository 2014-09-28 15:12:21 -07:00
PhabricatorRepositoryCommitData.php Fix almost all remaining schemata issues 2014-10-01 08:18:36 -07:00
PhabricatorRepositoryDAO.php Delete license headers from files 2012-11-05 11:16:51 -08:00
PhabricatorRepositoryMirror.php Generate expected schemata for Repository 2014-09-28 15:12:21 -07:00
PhabricatorRepositoryPushEvent.php Generate expected schemata for Repository 2014-09-28 15:12:21 -07:00
PhabricatorRepositoryPushLog.php Generate expected schemata for Repository 2014-09-28 15:12:21 -07:00
PhabricatorRepositoryRefCursor.php Mark questionable column nullability for later 2014-10-01 07:59:44 -07:00
PhabricatorRepositorySchemaSpec.php Support AUTO_INCREMENT in bin/storage adjust 2014-10-01 08:24:51 -07:00
PhabricatorRepositoryStatusMessage.php Generate expected schemata for Repository 2014-09-28 15:12:21 -07:00
PhabricatorRepositorySymbol.php Generate expected schemata for Repository 2014-09-28 15:12:21 -07:00
PhabricatorRepositoryTransaction.php Rename PHIDType classes 2014-07-24 08:05:46 +10:00
PhabricatorRepositoryVCSPassword.php Generate expected schemata for Repository 2014-09-28 15:12:21 -07:00