Clear changes to schema.rb when upgrading

Having local changes is quite common and it is a stumbling block when
upgrading GitLab. Because schema.rb is generated from the actual DB
schema it is OK to clear the local changes.
This commit is contained in:
Jacob Vosmaer 2014-10-01 10:41:20 +02:00
parent 3dde6bb3fa
commit b040078974
2 changed files with 4 additions and 0 deletions

View file

@ -69,6 +69,7 @@ sudo -u git -H git fetch --all
For GitLab Community Edition:
```bash
sudo -u git -H git checkout -- db/schema.rb # local changes will be restored automatically
sudo -u git -H git checkout 7-3-stable
```
@ -77,6 +78,7 @@ OR
For GitLab Enterprise Edition:
```bash
sudo -u git -H git checkout -- db/schema.rb # local changes will be restored automatically
sudo -u git -H git checkout 7-3-stable-ee
```

View file

@ -23,6 +23,7 @@ sudo -u git -H git fetch --all
For GitLab Community Edition:
```bash
sudo -u git -H git checkout -- db/schema.rb # local changes will be restored automatically
sudo -u git -H git checkout 7-3-stable
```
@ -31,6 +32,7 @@ OR
For GitLab Enterprise Edition:
```bash
sudo -u git -H git checkout -- db/schema.rb # local changes will be restored automatically
sudo -u git -H git checkout 7-3-stable-ee
```