mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Simplify database initialization, fix default data
Summary: Some users have had problems with the database initialization process, simplify it by creating a new "initialize.sql" dump at v34. I also populated this dump with the right landing screen (so all the tools actually have links) and a default avatar. Test Plan: Dropped all databases, initialized according to documentation, ended up in a good state with sensible defaults. Reviewed By: jungejason Reviewers: aran, jungejason, tuomaspelkonen CC: aran, jungejason Differential Revision: 210
This commit is contained in:
parent
c728e4f7da
commit
7ca4835438
3 changed files with 1555 additions and 419 deletions
|
@ -29,7 +29,7 @@ return array(
|
||||||
|
|
||||||
// The default PHID for users who haven't uploaded a profile image. It should
|
// The default PHID for users who haven't uploaded a profile image. It should
|
||||||
// be 50x50px.
|
// be 50x50px.
|
||||||
'user.default-profile-image-phid' => 'PHID-FILE-f57aaefce707fc4060ef',
|
'user.default-profile-image-phid' => 'PHID-FILE-4d61229816cfe6f2b2a3',
|
||||||
|
|
||||||
// -- Access Control -------------------------------------------------------- //
|
// -- Access Control -------------------------------------------------------- //
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -11,19 +11,11 @@ configured your Phabricator environment. If you haven't, see
|
||||||
|
|
||||||
= Loading patches =
|
= Loading patches =
|
||||||
|
|
||||||
If you are doing this for the first time to a freshly installed MySQL database,
|
To upgrade your database schema to the latest version, just run this command:
|
||||||
run the following command:
|
|
||||||
|
|
||||||
PHABRICATOR_ENV=<your_config> path/to/phabricator/scripts/sql/upgrade_schema.php -v 0
|
|
||||||
|
|
||||||
This will install all the patches starting from 0. Running this script will
|
|
||||||
store the information of the latest installed patch in the Phabricator database.
|
|
||||||
Next time you want to upgrade your schema, just run:
|
|
||||||
|
|
||||||
PHABRICATOR_ENV=<your_config> path/to/phabricator/scripts/sql/upgrade_schema.php
|
PHABRICATOR_ENV=<your_config> path/to/phabricator/scripts/sql/upgrade_schema.php
|
||||||
|
|
||||||
This will install all the patches that are new since the last time you ran
|
This will install all the patches that are new since you installed, or since the last time you ran this script.
|
||||||
this script.
|
|
||||||
|
|
||||||
If your configuration uses an unprivileged user to connect to the database, you
|
If your configuration uses an unprivileged user to connect to the database, you
|
||||||
may have to override the default user so the schema changes can be applied with
|
may have to override the default user so the schema changes can be applied with
|
||||||
|
@ -35,4 +27,4 @@ If you need to upgrade the schema starting from a specific patch, just run:
|
||||||
|
|
||||||
PHABRICATOR_ENV=<your_config> path/to/phabricator/scripts/sql/upgrade_schema.php -v <patch_number>
|
PHABRICATOR_ENV=<your_config> path/to/phabricator/scripts/sql/upgrade_schema.php -v <patch_number>
|
||||||
|
|
||||||
However, this isn't usually needed.
|
However, this isn't usually needed and could be dangerous!
|
||||||
|
|
Loading…
Reference in a new issue