1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-19 16:58:48 +02:00
phorge-phorge/resources/sql/patches
epriestley a46c25d2ba Make two ancient migrations fatal if they affect data
Summary:
Depends on D20106. Ref T6703. Since I plan to change the `ExternalAccount` table, these migrations (which rely on `save()`) will stop working.

They could be rewritten to use raw queries, but I suspect few or no installs are affected. At least for now, just make them safe: if they would affect data, fatal and tell the user to perform a more gradual upgrade.

Also remove an `ALTER IGNORE TABLE` (this syntax was removed at some point) and fix a `%Q` when adjusting certain types of primary keys.

Test Plan: Ran `bin/storage upgrade --no-quickstart --force --namespace test1234` to get a complete migration since the beginning of time.

Reviewers: amckinley

Reviewed By: amckinley

Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam

Maniphest Tasks: T6703

Differential Revision: https://secure.phabricator.com/D20107
2019-02-06 17:08:34 -08:00
..
0000.legacy.sql
000.project.sql Fix various MySQL version issues with new charset stuff 2014-10-29 15:49:29 -07:00
001.maniphest_projects.sql
002.oauth.sql Fix various MySQL version issues with new charset stuff 2014-10-29 15:49:29 -07:00
003.more_oauth.sql
004.daemonrepos.sql Fix various MySQL version issues with new charset stuff 2014-10-29 15:49:29 -07:00
005.workers.sql Regenerate Quickstart SQL 2015-01-22 16:10:26 -08:00
006.repository.sql Regenerate Quickstart SQL 2015-01-22 16:10:26 -08:00
007.daemonlog.sql
008.repoopt.sql
009.repo_summary.sql
010.herald.sql Fix various MySQL version issues with new charset stuff 2014-10-29 15:49:29 -07:00
011.badcommit.sql Fix various MySQL version issues with new charset stuff 2014-10-29 15:49:29 -07:00
012.dropphidtype.sql
013.commitdetail.sql
014.shortcuts.sql
015.preferences.sql
016.userrealnameindex.sql
017.sessionkeys.sql SQL Patch Management: SQL Changes 2012-04-30 07:53:53 -07:00
018.owners.sql Fix various MySQL version issues with new charset stuff 2014-10-29 15:49:29 -07:00
019.arcprojects.sql Fix various MySQL version issues with new charset stuff 2014-10-29 15:49:29 -07:00
020.pathcapital.sql
021.xhpastview.sql
022.differentialcommit.sql
023.dxkeys.sql
024.mlistkeys.sql Various linter fixes. 2014-02-26 12:44:58 -08:00
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 Fix various MySQL version issues with new charset stuff 2014-10-29 15:49:29 -07:00
036.mailkey.sql
037.setuptest.sql
038.admin.sql
039.userlog.sql
040.transform.sql Fix various MySQL version issues with new charset stuff 2014-10-29 15:49:29 -07:00
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 SQL Patch Management: SQL Changes 2012-04-30 07:53:53 -07:00
055.add_author_to_files.sql
056.slowvote.sql
057.parsecache.sql
058.missingkeys.sql
059.engines.php phtize all the things 2015-05-22 21:16:39 +10:00
060.phriction.sql
061.phrictioncontent.sql Regenerate Quickstart SQL 2015-01-22 16:10:26 -08:00
062.phrictionmenu.sql
063.pasteforks.sql
064.subprojects.sql
065.sshkeys.sql Provide bin/storage quickstart to automate generation of quickstart.sql 2014-10-01 08:22:37 -07:00
066.phrictioncontent.sql
067.preferences.sql
068.maniphestauxiliarystorage.sql Fix various MySQL version issues with new charset stuff 2014-10-29 15:49:29 -07:00
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 Regenerate Quickstart SQL 2015-01-22 16:10:26 -08:00
079.nametokenindex.php phtize all the things 2015-05-22 21:16:39 +10:00
080.filekeys.sql
081.filekeys.php phtize all the things 2015-05-22 21:16:39 +10:00
082.xactionkey.sql
083.dxviewtime.sql
084.pasteauthorkey.sql
085.packagecommitrelationship.sql
086.formeraffil.sql Various linter fixes. 2014-02-26 12:44:58 -08:00
087.phrictiondelete.sql
088.audit.sql Various linter fixes. 2014-02-26 12:44:58 -08:00
089.projectwiki.sql
090.forceuniqueprojectnames.php Probably (?) fix two very old project slug migrations 2016-12-14 14:14:21 -08:00
091.uniqueslugkey.sql
092.dropgithubnotification.sql
093.gitremotes.php phtize all the things 2015-05-22 21:16:39 +10:00
094.phrictioncolumn.sql
095.directory.sql
096.filename.sql
097.heraldruletypes.sql Regenerate Quickstart SQL 2015-01-22 16:10:26 -08:00
098.heraldruletypemigration.php phtize all the things 2015-05-22 21:16:39 +10:00
099.drydock.sql
100.projectxaction.sql
101.heraldruleapplied.sql
102.heraldcleanup.php Remove a very old Herald garbage collection migration 2018-01-26 10:54:37 -08:00
103.heraldedithistory.sql
104.searchkey.sql
105.mimetype.sql
106.chatlog.sql Various linter fixes. 2014-02-26 12:44:58 -08:00
107.oauthserver.sql
108.oauthscope.sql
109.oauthclientphidkey.sql
110.commitaudit.sql
111.commitauditmigration.php phtize all the things 2015-05-22 21:16:39 +10:00
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 Change migrations to not rely on "arcanist project" classes 2015-06-01 15:35:13 +10:00
132.phame.sql
133.imagemacro.sql Make two ancient migrations fatal if they affect data 2019-02-06 17:08:34 -08:00
134.emptysearch.sql
135.datecommitted.sql
136.sex.sql
137.auditmetadata.sql
138.notification.sql
20121209.pholioxactions.sql
20121209.xmacroadd.sql
20121209.xmacromigrate.php phtize all the things 2015-05-22 21:16:39 +10:00
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 phtize all the things 2015-05-22 21:16:39 +10:00
20130201.revisionunsubscribed.sql
20130214.chatlogchannel.sql
20130214.chatlogchannelid.sql
20130214.token.sql
20130215.phabricatorfileaddttl.sql Various linter fixes. 2014-02-26 12:44:58 -08:00
20130217.cachettl.sql
20130218.longdaemon.sql
20130218.updatechannelid.php phtize all the things 2015-05-22 21:16:39 +10:00
20130219.commitsummary.sql
20130219.commitsummarymig.php Remove application callsites to "LiskDAO->loadOneRelative()" 2018-12-12 16:39:44 -08:00
20130222.dropchannel.sql
20130226.commitkey.sql
20130304.lintauthor.sql
20130310.xactionmeta.sql
20130317.phrictionedge.sql
20130319.conpherence.sql
20130319.phabricatorfileexplicitupload.sql
20130320.phlux.sql Various linter fixes. 2014-02-26 12:44:58 -08:00
20130321.token.sql
20130322.phortune.sql Various linter fixes. 2014-02-26 12:44:58 -08:00
20130323.phortunepayment.sql
20130324.phortuneproduct.sql
20130330.phrequent.sql
20130403.conpherencecache.sql Conpherence - get back-end prepped for loading less transactions all the time 2013-04-04 16:57:38 -07:00
20130403.conpherencecachemig.php phtize all the things 2015-05-22 21:16:39 +10:00
20130409.commitdrev.php Remove application callsites to "LiskDAO->loadOneRelative()" 2018-12-12 16:39:44 -08:00
20130417.externalaccount.sql
20130423.conpherenceindices.sql Conpherence - paginate thread list 2013-04-26 10:30:41 -07:00
20130423.phortunepaymentrevised.sql
20130423.updateexternalaccount.sql Sql Patch to update the user_externalaccount table. 2013-04-24 15:14:26 -07:00
20130426.search_savedquery.sql
20130502.countdownrevamp1.sql
20130502.countdownrevamp2.php phtize all the things 2015-05-22 21:16:39 +10:00
20130502.countdownrevamp3.sql
20130507.releephrqmailkey.sql
20130507.releephrqmailkeypop.php phtize all the things 2015-05-22 21:16:39 +10:00
20130507.releephrqsimplifycols.sql Simplify ReleephRequest schema 2013-05-08 10:27:20 +01:00
20130508.releephtransactions.sql
20130508.releephtransactionsmig.php Mark some strings for translation 2015-06-09 23:06:52 +10:00
20130508.search_namedquery.sql
20130513.receviedmailstatus.sql
20130519.diviner.sql Various linter fixes. 2014-02-26 12:44:58 -08:00
20130521.dropconphimages.sql
20130523.maniphest_owners.sql
20130524.repoxactions.sql
20130529.macroauthor.sql
20130529.macroauthormig.php phtize all the things 2015-05-22 21:16:39 +10:00
20130530.macrodatekey.sql
20130530.pastekeys.sql
20130530.sessionhash.php Upgrade sessions digests to HMAC256, retaining compatibility with old digests 2018-12-13 16:15:38 -08:00
20130531.filekeys.sql
20130602.morediviner.sql Add a book controller and various amenities to Diviner's live view 2013-06-04 11:15:34 -07:00
20130602.namedqueries.sql
20130606.userxactions.sql
20130607.xaccount.sql
20130611.migrateoauth.php Make two ancient migrations fatal if they affect data 2019-02-06 17:08:34 -08:00
20130611.nukeldap.php Make two ancient migrations fatal if they affect data 2019-02-06 17:08:34 -08:00
20130613.authdb.sql
20130619.authconf.php phtize all the things 2015-05-22 21:16:39 +10: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 phtize all the things 2015-05-22 21:16:39 +10:00
20130703.legalpaddocdenorm.sql
20130709.droptimeline.sql
20130709.legalpadsignature.sql
20130711.pholioimageobsolete.php phtize all the things 2015-05-22 21:16:39 +10:00
20130711.pholioimageobsolete.sql
20130711.pholioimageobsolete2.sql
20130711.trimrealnames.php phtize all the things 2015-05-22 21:16:39 +10:00
20130714.votexactions.sql
20130715.votecomments.php Modularize content sources 2016-03-26 11:59:45 -07:00
20130715.voteedges.sql
20130716.archivememberlessprojects.php phtize all the things 2015-05-22 21:16:39 +10:00
20130722.pholioreplace.sql
20130723.taskstarttime.sql
20130726.ponderxactions.sql
20130727.ponderquestionstatus.sql
20130728.ponderunique.php phtize all the things 2015-05-22 21:16:39 +10:00
20130728.ponderuniquekey.sql
20130728.ponderxcomment.php Modularize content sources 2016-03-26 11:59:45 -07:00
20130731.releephcutpointidentifier.sql
20130731.releephproject.sql
20130731.releephrepoid.sql
20130801.pastexactions.php Modularize application transactions in Paste, mostly 2016-06-14 06:13:28 -07:00
20130801.pastexactions.sql
20130802.heraldphid.sql
20130802.heraldphids.php phtize all the things 2015-05-22 21:16:39 +10:00
20130802.heraldphidukey.sql
20130802.heraldxactions.sql
20130805.pasteedges.sql
20130805.pastemailkey.sql
20130805.pastemailkeypop.php phtize all the things 2015-05-22 21:16:39 +10:00
20130814.usercustom.sql
20130820.file-mailkey-populate.php Update PhabricatorLiskDAO::chunkSQL() for new %Q semantics 2018-11-13 08:59:18 -08:00
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 Generate expected schemata for Search 2014-10-01 07:53:35 -07:00
20130914.usercustom.sql
20130915.maniphestcustom.sql
20130915.maniphestmigrate.php phtize all the things 2015-05-22 21:16:39 +10:00
20130915.maniphestqdrop.sql
20130919.mfieldconf.php phtize all the things 2015-05-22 21:16:39 +10:00
20130920.repokeyspolicy.sql
20130921.mtransactions.sql Add storage for new Maniphest transactions 2013-09-23 14:24:58 -07:00
20130921.xmigratemaniphest.php phtize all the things 2015-05-22 21:16:39 +10:00
20130923.mrename.sql
20130924.mdraftkey.sql Fix "edit" for Maniphest comments 2013-09-24 11:10:31 -07:00
20130925.mpolicy.sql
20130925.xpolicy.sql
20130926.dcustom.sql
20130926.dinkeys.sql
20130926.dinline.php Modularize content sources 2016-03-26 11:59:45 -07:00
20130927.audiomacro.sql
20130929.filepolicy.sql
20131004.dxedgekey.sql
20131004.dxreviewers.php phtize all the things 2015-05-22 21:16:39 +10:00
20131006.hdisable.sql
20131010.pstorage.sql
20131015.cpolicy.sql
20131020.col1.sql
20131020.harbormaster.sql
20131020.pcustom.sql
20131020.pxaction.sql
20131020.pxactionmig.php Migrate Project status to modular transactions 2017-05-18 11:36:13 -07:00
20131025.repopush.sql
20131026.commitstatus.sql
20131030.repostatusmessage.sql
20131031.vcspassword.sql
20131105.buildstep.sql
20131106.diffphid.1.col.sql
20131106.diffphid.2.mig.php Update PhabricatorLiskDAO::chunkSQL() for new %Q semantics 2018-11-13 08:59:18 -08:00
20131106.diffphid.3.key.sql
20131106.nuance-v0.sql
20131107.buildlog.sql
20131112.userverified.1.col.sql
20131112.userverified.2.mig.php phtize all the things 2015-05-22 21:16:39 +10:00
20131118.ownerorder.php phtize all the things 2015-05-22 21:16:39 +10:00
20131119.passphrase.sql
20131120.nuancesourcetype.sql
20131121.passphraseedge.sql
20131121.repocredentials.1.col.sql
20131121.repocredentials.2.mig.php No-op the old repository credential migration 2015-07-07 11:52:26 -07:00
20131122.repomirror.sql
20131123.drydockblueprintpolicy.sql
20131129.drydockresourceblueprint.sql
20131204.pushlog.sql
20131205.buildsteporder.sql
20131205.buildstepordermig.php phtize all the things 2015-05-22 21:16:39 +10:00
20131205.buildtargets.sql
20131206.phragment.sql
20131206.phragmentnull.sql
20131208.phragmentsnapshot.sql
20131211.phragmentedges.sql
20131217.pushlogphid.1.col.sql
20131217.pushlogphid.2.mig.php phtize all the things 2015-05-22 21:16:39 +10:00
20131217.pushlogphid.3.key.sql
20131219.pxdrop.sql
20131224.harbormanual.sql
20131227.heraldobject.sql
20131231.dropshortcut.sql
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 phtize all the things 2015-05-22 21:16:39 +10:00
emailtableremove.sql
fact-raw.sql
harbormasterobject.sql
holidays.sql
ldapinfo.sql
legalpad-mailkey-populate.php phtize all the things 2015-05-22 21:16:39 +10:00
legalpad-mailkey.sql Legalpad V0.2 - add mail integration 2013-07-03 16:37:05 -07:00
liskcounters-task.sql
liskcounters.php phtize all the things 2015-05-22 21:16:39 +10:00
liskcounters.sql
maniphestxcache.sql
markupcache.sql Add a generic multistep Markup cache 2012-07-09 15:20:56 -07:00
migrate-differential-dependencies.php phtize all the things 2015-05-22 21:16:39 +10:00
migrate-maniphest-dependencies.php Remove three ancient columns from Maniphest tasks: attached, projectPHIDs, ccPHIDs 2016-02-08 14:10:02 -08:00
migrate-maniphest-revisions.php Remove three ancient columns from Maniphest tasks: attached, projectPHIDs, ccPHIDs 2016-02-08 14:10:02 -08:00
migrate-project-edges.php phtize all the things 2015-05-22 21:16:39 +10:00
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 phtize all the things 2015-05-22 21:16:39 +10:00
ponder-mailkey.sql
ponder.sql
releeph.sql
repository-lint.sql
statustxt.sql
symbolcontexts.sql
testdatabase.sql Remove PHID database, add Harbormaster database 2012-05-20 14:46:01 -07:00
threadtopic.sql
userstatus.sql
usertranslation.sql
xhprof.sql