mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 08:12:40 +01:00
712e22208c
Summary: Also provide a way to update old files metadata. Test Plan: Create a revision which includes a image file. Check whether the widht, height metadata exists. Run `scripts/files/manage_files.php metadata --all` to update previously uploaded files. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T2101 Differential Revision: https://secure.phabricator.com/D4347
5 lines
160 B
SQL
5 lines
160 B
SQL
ALTER TABLE {$NAMESPACE}_file.file
|
|
ADD metadata LONGTEXT COLLATE utf8_bin NOT NULL;
|
|
|
|
UPDATE {$NAMESPACE}_file.file
|
|
SET metadata = '{}' WHERE metadata = '';
|