mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-18 19:40:55 +01:00
Update the quickstart.sql
Summary: Ref T1191. Use `storage quickstart` to regenerate `quickstart.sql` using modern schema construction statements. This puts new installs into utf8mb4 mode immediately without requiring storage adjustment. Test Plan: - Ran `arc unit --everything`, which uses quickstart. - Ran `bin/storage upgrade --namespace temp`, to quickstart a new namespace. - Ran `bin/storage upgrade --namespace temp --disable-utf8mb4`, to quickstart a new namespace without utf8mb4 support. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T1191 Differential Revision: https://secure.phabricator.com/D10797
This commit is contained in:
parent
5372fb772c
commit
dbef5660fc
4 changed files with 2595 additions and 2116 deletions
6
.arclint
6
.arclint
|
@ -59,7 +59,8 @@
|
|||
"text": {
|
||||
"type": "text",
|
||||
"exclude": [
|
||||
"(^\\.arclint)"
|
||||
"(^\\.arclint)",
|
||||
"(^resources/sql/quickstart.sql)"
|
||||
]
|
||||
},
|
||||
"text-without-length": {
|
||||
|
@ -68,7 +69,8 @@
|
|||
"3": "disabled"
|
||||
},
|
||||
"include": [
|
||||
"(^\\.arclint)"
|
||||
"(^\\.arclint)",
|
||||
"(^resources/sql/quickstart.sql)"
|
||||
]
|
||||
},
|
||||
"xhpast": {
|
||||
|
|
1
resources/sql/autopatches/20141106.dropold.sql
Normal file
1
resources/sql/autopatches/20141106.dropold.sql
Normal file
|
@ -0,0 +1 @@
|
|||
DROP TABLE IF EXISTS {$NAMESPACE}_metamta.phid_type;
|
File diff suppressed because one or more lines are too long
|
@ -139,6 +139,12 @@ final class PhabricatorStorageManagementQuickstartWorkflow
|
|||
|
||||
Filesystem::writeFile($output, $dump);
|
||||
|
||||
$console = PhutilConsole::getConsole();
|
||||
$console->writeOut(
|
||||
"**<bg:green> %s </bg>** %s\n",
|
||||
pht('SUCCESS'),
|
||||
pht('Wrote fresh quickstart SQL.'));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue