1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-22 13:30:55 +01:00
phorge-phorge/resources/sql/patches
epriestley 917da08417 Fix various MySQL version issues with new charset stuff
Summary:
Ref T1191. Notable stuff:

  - Adds `--disable-utf8mb4` to `bin/storage` to make it easier to test what things will (approximately) do on old MySQL. This isn't 100% perfect but should catch all the major stuff. It basically makes us pretend the server is an old server.
  - Require utf8mb4 to dump a quickstart.
  - Fix some issues with quickstart generation, notably special casing the FULLTEXT handling.
  - Add an `--unsafe` flag to `bin/storage adjust` to let it truncate data to fix schemata.
  - Fix some old patches which don't work if the default table charset is utf8mb4.

Test Plan:
  - Dumped a quickstart.
  - Loaded the quickstart with utf8mb4.
  - Loaded the quickstart with `--disable-utf8mb4` (verified that we get binary columns, etc).
  - Adjusted schema with `--disable-utf8mb4` (got a long adjustment with binary columns, some truncation stuff with weird edge case test data).
  - Adjusted schema with `--disable-utf8mb4 --unsafe` (got truncations and clean adjust).
  - Adjusted schema back without `--disable-utf8mb4` (got a long adjustment with utf8mb4 columns, some invalid data on truncated utf8).
  - Adjusted schema without `--disable-utf8mb4`, but with `--unsafe` (got truncations on the invalid data).

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T1191

Differential Revision: https://secure.phabricator.com/D10757
2014-10-29 15:49:29 -07: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
006.repository.sql
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
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
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
055.add_author_to_files.sql
056.slowvote.sql
057.parsecache.sql
058.missingkeys.sql
059.engines.php Change double quotes to single quotes. 2014-06-09 11:36:50 -07:00
060.phriction.sql
061.phrictioncontent.sql
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
079.nametokenindex.php Change double quotes to single quotes. 2014-06-09 11:36:50 -07:00
080.filekeys.sql
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 Rename AphrontQueryException subclasses 2014-08-06 07:51:21 +10:00
091.uniqueslugkey.sql
092.dropgithubnotification.sql
093.gitremotes.php
094.phrictioncolumn.sql
095.directory.sql
096.filename.sql
097.heraldruletypes.sql
098.heraldruletypemigration.php Applied various linter fixes. 2014-06-09 16:04:12 -07:00
099.drydock.sql
100.projectxaction.sql
101.heraldruleapplied.sql
102.heraldcleanup.php Change double quotes to single quotes. 2014-06-09 11:36:50 -07:00
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 Change double quotes to single quotes. 2014-06-09 11:36:50 -07:00
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 double quotes to single quotes. 2014-06-09 11:36:50 -07:00
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 Change double quotes to single quotes. 2014-06-09 11:36:50 -07: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 Remove all edge events 2014-07-17 15:41:42 -07:00
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 Remove all edge events 2014-07-17 15:41:42 -07:00
20130417.externalaccount.sql
20130423.conpherenceindices.sql
20130423.phortunepaymentrevised.sql
20130423.updateexternalaccount.sql
20130426.search_savedquery.sql
20130502.countdownrevamp1.sql
20130502.countdownrevamp2.php Change double quotes to single quotes. 2014-06-09 11:36:50 -07:00
20130502.countdownrevamp3.sql
20130507.releephrqmailkey.sql
20130507.releephrqmailkeypop.php Don't use parentheses for echo unnecessarily 2014-09-08 10:03:19 +10:00
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 broken references to auth adapters 2014-07-22 21:20:45 +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 Change double quotes to single quotes. 2014-06-09 11:36:50 -07:00
20130703.legalpaddocdenorm.sql
20130709.droptimeline.sql
20130709.legalpadsignature.sql
20130711.pholioimageobsolete.php Change double quotes to single quotes. 2014-06-09 11:36:50 -07:00
20130711.pholioimageobsolete.sql
20130711.pholioimageobsolete2.sql
20130711.trimrealnames.php
20130714.votexactions.sql
20130715.votecomments.php Rename PHIDType classes 2014-07-24 08:05:46 +10:00
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 Rename PHIDType classes 2014-07-24 08:05:46 +10:00
20130731.releephcutpointidentifier.sql
20130731.releephproject.sql
20130731.releephrepoid.sql
20130801.pastexactions.php Rename PHIDType classes 2014-07-24 08:05:46 +10:00
20130801.pastexactions.sql
20130802.heraldphid.sql
20130802.heraldphids.php Rename PHIDType classes 2014-07-24 08:05:46 +10:00
20130802.heraldphidukey.sql
20130802.heraldxactions.sql
20130805.pasteedges.sql
20130805.pastemailkey.sql
20130805.pastemailkeypop.php Don't use parentheses for echo unnecessarily 2014-09-08 10:03:19 +10:00
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 Skip a very old project reindex migration 2014-03-26 13:51:49 -07:00
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
20130915.maniphestqdrop.sql
20130919.mfieldconf.php
20130920.repokeyspolicy.sql
20130921.mtransactions.sql
20130921.xmigratemaniphest.php Rename PHIDType classes 2014-07-24 08:05:46 +10:00
20130923.mrename.sql
20130924.mdraftkey.sql
20130925.mpolicy.sql
20130925.xpolicy.sql
20130926.dcustom.sql
20130926.dinkeys.sql
20130926.dinline.php Rename PHIDType classes 2014-07-24 08:05:46 +10:00
20130927.audiomacro.sql
20130929.filepolicy.sql
20131004.dxedgekey.sql
20131004.dxreviewers.php Remove all edge events 2014-07-17 15:41:42 -07: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 Fix missed migration constant from PHIDType rename 2014-07-31 11:30:40 -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 Rename PHIDType classes 2014-07-24 08:05:46 +10:00
20131106.diffphid.3.key.sql
20131106.nuance-v0.sql
20131107.buildlog.sql
20131112.userverified.1.col.sql
20131112.userverified.2.mig.php
20131118.ownerorder.php
20131119.passphrase.sql
20131120.nuancesourcetype.sql
20131121.passphraseedge.sql
20131121.repocredentials.1.col.sql
20131121.repocredentials.2.mig.php Convert two missed phutil_utf8_shorten() callsites 2014-08-30 07:20:35 -07:00
20131122.repomirror.sql
20131123.drydockblueprintpolicy.sql
20131129.drydockresourceblueprint.sql
20131204.pushlog.sql
20131205.buildsteporder.sql
20131205.buildstepordermig.php Change double quotes to single quotes. 2014-06-09 11:36:50 -07: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
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
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 Rename PHIDType classes 2014-07-24 08:05:46 +10:00
migrate-maniphest-dependencies.php Rename PHIDType classes 2014-07-24 08:05:46 +10:00
migrate-maniphest-revisions.php Rename PHIDType classes 2014-07-24 08:05:46 +10:00
migrate-project-edges.php Remove all edge events 2014-07-17 15:41:42 -07: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
ponder-mailkey.sql
ponder.sql
releeph.sql
repository-lint.sql
statustxt.sql
symbolcontexts.sql
testdatabase.sql
threadtopic.sql
userstatus.sql
usertranslation.sql
xhprof.sql