@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator

Drop old Audit tables; make markup cache binary

Summary:
Ref T1191.

- Fixes T6096. We've migrated away from this table in T4896. The data is now in the transaction table. There have been no reads or writes to this table for some time and I haven't seen any issues from users.
- Fixes T6097. Same deal as above. The data is now in the transaction comment table.
- Fixes T6100. This cache is safe to wipe out, since it's purely read-through. Wiping it will make the migration faster. The column type change fixes storage of PHP serialized objects in a text column.

Test Plan:
- Ran migrations.
- Observed some yellow go blue on the Database Status screen.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T6096, T6100, T6097, T1191

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

+5
+1
resources/sql/autopatches/20140918.schema.1.dropaudit.sql
··· 1 + DROP TABLE {$NAMESPACE}_audit.audit_comment;
+1
resources/sql/autopatches/20140918.schema.2.dropauditinline.sql
··· 1 + DROP TABLE {$NAMESPACE}_audit.audit_inlinecomment;
+1
resources/sql/autopatches/20140918.schema.3.wipecache.sql
··· 1 + TRUNCATE TABLE {$NAMESPACE}_cache.cache_markupcache;
+2
resources/sql/autopatches/20140918.schema.4.cachetype.sql
··· 1 + ALTER TABLE {$NAMESPACE}_cache.cache_markupcache 2 + CHANGE cacheData cacheData LONGBLOB NOT NULL;