1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-18 04:42:40 +01:00

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
This commit is contained in:
epriestley 2014-09-19 05:44:29 -07:00
parent 67fbfe6ccc
commit 263dbe7bfe
4 changed files with 5 additions and 0 deletions

View file

@ -0,0 +1 @@
DROP TABLE {$NAMESPACE}_audit.audit_comment;

View file

@ -0,0 +1 @@
DROP TABLE {$NAMESPACE}_audit.audit_inlinecomment;

View file

@ -0,0 +1 @@
TRUNCATE TABLE {$NAMESPACE}_cache.cache_markupcache;

View file

@ -0,0 +1,2 @@
ALTER TABLE {$NAMESPACE}_cache.cache_markupcache
CHANGE cacheData cacheData LONGBLOB NOT NULL;