This website requires JavaScript.
Explore
Help
Sign in
revi-archive
/
phorge-phorge
Watch
1
Star
0
Fork
You've already forked phorge-phorge
0
mirror of
https://we.phorge.it/source/phorge.git
synced
2024-11-27 01:02:42 +01:00
Code
Issues
Releases
Wiki
Activity
8fab8d8a18
phorge-phorge
/
resources
/
sql
/
patches
/
133.imagemacro.sql
3 lines
84 B
MySQL
Raw
Normal View
History
Unescape
Escape
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:51:42 +01:00
ALTER
TABLE
`
{
$
NAMESPACE
}
_file
`
.
`
file_imagemacro
`
ADD
UNIQUE
KEY
`
name
`
(
`
name
`
)
;
Copy permalink