1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-19 20:10:55 +01:00
phorge-phorge/resources/sql/patches
epriestley f010730e49 Migrate all Differential inline comments to ApplicationTransactions
Summary:
Ref T2222. This implements step (1) described there, which is moving over all the inline comments.

The old and new tables are simliar. The only real trick here is that `transactionPHID` and `legacyCommentID` mean roughly the same thing (`null` if the inline is a draft, non-null if it has been submitted) but we don't have real `transactionPHID`s yet. We just make some up -- we'll backfill them later.

Two risks here:

  - I need to take a second look at the keys on this table. I think we need to tweak them a bit, and it will be less disruptive to do that before this migration than after.
  - This will take a while for Facebook, and other large installs with tens of thousands of revisions. I'll communicate this.

I'm otherwise pretty satisfied with this, seems to work well and is pretty low risk / non-disruptive.

Test Plan:
  - Before migrating, then after migrating:
    - Made a bunch of inlines (drafts, submitted).
    - Edited and deleted inlines.
    - Verified inlines showed up in preview.
    - Verified that inlines aren't indexed when they're drafts (`bin/search index D935`).
    - Verified that inlines ARE indexed when they're not drafts.
    - Verified that drafts inlines make revisions appear as "with draft" in the revision list.
  - Made left, right, and draft inlines.
  - Migrated (`bin/storage upgrade`).
  - Verified that my inlines from before the migration still showed up.
  - (Repeated all the stuff above.)
  - Manually inspected the inline comment table.

Reviewers: btrahan

Reviewed By: btrahan

CC: FacebookPOC, aran

Maniphest Tasks: T2222

Differential Revision: https://secure.phabricator.com/D7139
2013-10-19 05:03:25 -07:00
..
0000.legacy.sql
000.project.sql
001.maniphest_projects.sql
002.oauth.sql
003.more_oauth.sql
004.daemonrepos.sql
005.workers.sql
006.repository.sql
007.daemonlog.sql
008.repoopt.sql
009.repo_summary.sql
010.herald.sql
011.badcommit.sql
012.dropphidtype.sql
013.commitdetail.sql
014.shortcuts.sql
015.preferences.sql
016.userrealnameindex.sql
017.sessionkeys.sql
018.owners.sql
019.arcprojects.sql
020.pathcapital.sql
021.xhpastview.sql
022.differentialcommit.sql
023.dxkeys.sql
024.mlistkeys.sql
025.commentopt.sql
026.diffpropkey.sql
027.metamtakeys.sql
028.systemagent.sql
029.cursors.sql
030.imagemacro.sql
031.workerrace.sql
032.viewtime.sql
033.privtest.sql
034.savedheader.sql
035.proxyimage.sql
036.mailkey.sql
037.setuptest.sql
038.admin.sql
039.userlog.sql
040.transform.sql
041.heraldrepetition.sql
042.commentmetadata.sql
043.pastebin.sql
044.countdown.sql
045.timezone.sql
046.conduittoken.sql
047.projectstatus.sql
048.relationshipkeys.sql
049.projectowner.sql
050.taskdenormal.sql
051.projectfilter.sql
052.pastelanguage.sql
053.feed.sql
054.subscribers.sql
055.add_author_to_files.sql
056.slowvote.sql
057.parsecache.sql
058.missingkeys.sql
059.engines.php
060.phriction.sql
061.phrictioncontent.sql
062.phrictionmenu.sql
063.pasteforks.sql
064.subprojects.sql
065.sshkeys.sql
066.phrictioncontent.sql
067.preferences.sql
068.maniphestauxiliarystorage.sql
069.heraldxscript.sql
070.differentialaux.sql
071.contentsource.sql
072.blamerevert.sql
073.reposymbols.sql
074.affectedpath.sql
075.revisionhash.sql
076.indexedlanguages.sql
077.originalemail.sql
078.nametoken.sql
079.nametokenindex.php
080.filekeys.sql SQL Patch Management: SQL Changes 2012-04-30 07:53:53 -07:00
081.filekeys.php
082.xactionkey.sql
083.dxviewtime.sql
084.pasteauthorkey.sql
085.packagecommitrelationship.sql
086.formeraffil.sql
087.phrictiondelete.sql
088.audit.sql
089.projectwiki.sql
090.forceuniqueprojectnames.php
091.uniqueslugkey.sql
092.dropgithubnotification.sql
093.gitremotes.php
094.phrictioncolumn.sql
095.directory.sql
096.filename.sql
097.heraldruletypes.sql
098.heraldruletypemigration.php
099.drydock.sql
100.projectxaction.sql
101.heraldruleapplied.sql
102.heraldcleanup.php
103.heraldedithistory.sql
104.searchkey.sql
105.mimetype.sql
106.chatlog.sql
107.oauthserver.sql
108.oauthscope.sql
109.oauthclientphidkey.sql
110.commitaudit.sql
111.commitauditmigration.php
112.oauthaccesscoderedirecturi.sql
113.lastreviewer.sql
114.auditrequest.sql
115.prepareutf8.sql
116.utf8-backup-first-expect-wait.sql
117.repositorydescription.php
118.auditinline.sql
119.filehash.sql
120.noop.sql
121.drydocklog.sql
122.flag.sql
123.heraldrulelog.sql
124.subpriority.sql
125.ipv6.sql
126.edges.sql
127.userkeybody.sql
128.phabricatorcom.sql
129.savedquery.sql
130.denormalrevisionquery.sql
131.migraterevisionquery.php
132.phame.sql
133.imagemacro.sql
134.emptysearch.sql
135.datecommitted.sql
136.sex.sql
137.auditmetadata.sql
138.notification.sql
20121209.pholioxactions.sql
20121209.xmacroadd.sql
20121209.xmacromigrate.php
20121209.xmacromigratekey.sql
20121220.generalcache.sql
20121226.config.sql
20130101.confxaction.sql
20130102.metamtareceivedmailmessageidhash.sql
20130103.filemetadata.sql
20130111.conpherence.sql
20130127.altheraldtranscript.sql
20130131.conpherencepics.sql
20130201.revisionunsubscribed.php
20130201.revisionunsubscribed.sql
20130214.chatlogchannel.sql
20130214.chatlogchannelid.sql
20130214.token.sql
20130215.phabricatorfileaddttl.sql
20130217.cachettl.sql
20130218.longdaemon.sql
20130218.updatechannelid.php
20130219.commitsummary.sql
20130219.commitsummarymig.php
20130222.dropchannel.sql
20130226.commitkey.sql
20130304.lintauthor.sql
20130310.xactionmeta.sql
20130317.phrictionedge.sql
20130319.conpherence.sql
20130319.phabricatorfileexplicitupload.sql
20130320.phlux.sql
20130321.token.sql
20130322.phortune.sql
20130323.phortunepayment.sql
20130324.phortuneproduct.sql
20130330.phrequent.sql
20130403.conpherencecache.sql
20130403.conpherencecachemig.php
20130409.commitdrev.php
20130417.externalaccount.sql
20130423.conpherenceindices.sql
20130423.phortunepaymentrevised.sql
20130423.updateexternalaccount.sql
20130426.search_savedquery.sql
20130502.countdownrevamp1.sql
20130502.countdownrevamp2.php
20130502.countdownrevamp3.sql
20130507.releephrqmailkey.sql
20130507.releephrqmailkeypop.php
20130507.releephrqsimplifycols.sql
20130508.releephtransactions.sql
20130508.releephtransactionsmig.php
20130508.search_namedquery.sql
20130513.receviedmailstatus.sql
20130519.diviner.sql
20130521.dropconphimages.sql
20130523.maniphest_owners.sql
20130524.repoxactions.sql
20130529.macroauthor.sql
20130529.macroauthormig.php
20130530.macrodatekey.sql
20130530.pastekeys.sql
20130530.sessionhash.php
20130531.filekeys.sql
20130602.morediviner.sql
20130602.namedqueries.sql
20130606.userxactions.sql
20130607.xaccount.sql
20130611.migrateoauth.php
20130611.nukeldap.php
20130613.authdb.sql
20130619.authconf.php Fix issues with first-time account registration 2013-10-05 08:02:41 -07:00
20130620.diffxactions.sql
20130621.diffcommentphid.sql
20130621.diffcommentphidmig.php
20130621.diffcommentunphid.sql
20130622.doorkeeper.sql
20130628.legalpadv0.sql
20130701.conduitlog.sql
20130703.legalpaddocdenorm.php
20130703.legalpaddocdenorm.sql
20130709.droptimeline.sql
20130709.legalpadsignature.sql
20130711.pholioimageobsolete.php
20130711.pholioimageobsolete.sql
20130711.pholioimageobsolete2.sql
20130711.trimrealnames.php
20130714.votexactions.sql
20130715.votecomments.php
20130715.voteedges.sql
20130716.archivememberlessprojects.php
20130722.pholioreplace.sql
20130723.taskstarttime.sql
20130726.ponderxactions.sql
20130727.ponderquestionstatus.sql
20130728.ponderunique.php
20130728.ponderuniquekey.sql
20130728.ponderxcomment.php
20130731.releephcutpointidentifier.sql
20130731.releephproject.sql
20130731.releephrepoid.sql
20130801.pastexactions.php
20130801.pastexactions.sql
20130802.heraldphid.sql
20130802.heraldphids.php
20130802.heraldphidukey.sql
20130802.heraldxactions.sql
20130805.pasteedges.sql
20130805.pastemailkey.sql
20130805.pastemailkeypop.php
20130814.usercustom.sql
20130820.file-mailkey-populate.php
20130820.filemailkey.sql
20130820.filexactions.sql
20130820.releephxactions.sql
20130826.divinernode.sql
20130912.maniphest.1.touch.sql
20130912.maniphest.2.created.sql
20130912.maniphest.3.nameindex.sql
20130912.maniphest.4.fillindex.php
20130913.maniphest.1.migratesearch.php
20130914.usercustom.sql
20130915.maniphestcustom.sql
20130915.maniphestmigrate.php Migrate auxiliary field storage to common field storage 2013-09-16 16:02:06 -07:00
20130915.maniphestqdrop.sql Drop maniphest_savedquery table 2013-10-19 04:56:17 -07:00
20130919.mfieldconf.php Convert maniphest to use standard fields 2013-09-19 11:56:15 -07:00
20130920.repokeyspolicy.sql Add some keys and policy fields to repositories 2013-09-21 16:23:01 -07:00
20130921.mtransactions.sql Add storage for new Maniphest transactions 2013-09-23 14:24:58 -07:00
20130921.xmigratemaniphest.php Fix two migration issues with Maniphest 2013-09-24 12:03:47 -07:00
20130923.mrename.sql Rename "transactionpro" table to "transaction" 2013-09-24 10:49:16 -07:00
20130924.mdraftkey.sql Fix "edit" for Maniphest comments 2013-09-24 11:10:31 -07:00
20130925.mpolicy.sql Add viewPolicy, editPolicy storage to tasks 2013-09-25 11:18:47 -07:00
20130925.xpolicy.sql Add viewPolicy, editPolicy, repositoryPHID columns to DifferentialRevision 2013-09-26 12:36:30 -07:00
20130926.dcustom.sql Add storage and classes for CustomField in Differential 2013-09-26 12:37:28 -07:00
20130926.dinkeys.sql Adjust keys for new Differential inline comment table 2013-09-26 13:48:36 -07:00
20130926.dinline.php Migrate all Differential inline comments to ApplicationTransactions 2013-10-19 05:03:25 -07:00
20130927.audiomacro.sql Allow macros to have associated audio and audio behaviors 2013-09-27 16:01:37 -07:00
20130929.filepolicy.sql Add viewPolicy and attachedToObjectPHID to PhabricatorFile 2013-10-01 08:45:18 -07:00
20131004.dxedgekey.sql Add a (dst, type, src) key to Differential's edge table 2013-10-05 13:53:43 -07:00
20131004.dxreviewers.php Migrate all Differential reviewer data to edges 2013-10-05 13:54:02 -07:00
20131006.hdisable.sql Allow Herald rules to be disabled, instead of deleted 2013-10-06 17:10:29 -07:00
20131010.pstorage.sql Add storage for custom policies 2013-10-10 16:09:51 -07:00
20131015.cpolicy.sql Add application and object level policy controls to Countdown 2013-10-16 10:36:08 -07:00
20131302.maniphestvalue.sql
daemonstatus.sql
daemonstatuskey.sql
daemontaskarchive.sql
differentialbookmarks.sql
draft-metadata.sql
dropfileproxyimage.sql
drydockresourcetype.sql
drydocktaskid.sql
edgetype.sql
emailtable.sql
emailtableport.php
emailtableremove.sql
fact-raw.sql
harbormasterobject.sql
holidays.sql
ldapinfo.sql
legalpad-mailkey-populate.php
legalpad-mailkey.sql
liskcounters-task.sql
liskcounters.php
liskcounters.sql
maniphestxcache.sql
markupcache.sql
migrate-differential-dependencies.php
migrate-maniphest-dependencies.php
migrate-maniphest-revisions.php
migrate-project-edges.php
owners-exclude.sql
pastepolicy.sql
phameblog.sql
phamedomain.sql
phameoneblog.sql
phamepolicy.sql
phiddrop.sql
pholio.sql
policy-project.sql
ponder-comments.sql
ponder-mailkey-populate.php
ponder-mailkey.sql
ponder.sql
releeph.sql
repository-lint.sql
statustxt.sql
symbolcontexts.sql
testdatabase.sql
threadtopic.sql
userstatus.sql
usertranslation.sql
xhprof.sql