mirror of
https://github.com/iv-org/documentation.git
synced 2024-12-22 22:09:22 -05:00
Run migrations scripts from oldest to newest
This commit is contained in:
parent
386c76042d
commit
dab4b49ae0
@ -8,7 +8,7 @@ $ currentVersion=$(git rev-list --max-count=1 --abbrev-commit HEAD)
|
|||||||
$ git pull
|
$ git pull
|
||||||
$ latestVersion=$(git describe --tags --abbrev=0)
|
$ latestVersion=$(git describe --tags --abbrev=0)
|
||||||
$ git checkout $latestVersion
|
$ git checkout $latestVersion
|
||||||
$ for i in `git rev-list --abbrev-commit $currentVersion..HEAD` ; do file=./config/migrate-scripts/migrate-db-$i.sh ; [ -f $file ] && $file ; done
|
$ for i in `git rev-list --reverse --abbrev-commit $currentVersion..HEAD` ; do file=./config/migrate-scripts/migrate-db-$i.sh ; [ -f $file ] && $file ; done
|
||||||
$ shards update && shards install
|
$ shards update && shards install
|
||||||
$ crystal build src/invidious.cr --release
|
$ crystal build src/invidious.cr --release
|
||||||
$ exit
|
$ exit
|
||||||
@ -21,7 +21,7 @@ $ sudo -i -u invidious
|
|||||||
$ cd invidious
|
$ cd invidious
|
||||||
$ currentVersion=$(git rev-list --max-count=1 --abbrev-commit HEAD)
|
$ currentVersion=$(git rev-list --max-count=1 --abbrev-commit HEAD)
|
||||||
$ git pull
|
$ git pull
|
||||||
$ for i in `git rev-list --abbrev-commit $currentVersion..HEAD` ; do file=./config/migrate-scripts/migrate-db-$i.sh ; [ -f $file ] && $file ; done
|
$ for i in `git rev-list --reverse --abbrev-commit $currentVersion..HEAD` ; do file=./config/migrate-scripts/migrate-db-$i.sh ; [ -f $file ] && $file ; done
|
||||||
$ shards update && shards install
|
$ shards update && shards install
|
||||||
$ crystal build src/invidious.cr --release
|
$ crystal build src/invidious.cr --release
|
||||||
$ exit
|
$ exit
|
||||||
|
Loading…
Reference in New Issue
Block a user