Push event #3862 passed

  • Ran for
  • New branch build
AMD64
Ruby: 3.2.2
Git
Raw log
Scroll to End of Log
0.00s0.24s0.13s0.07s0.00s
worker_info
1Worker information
2hostname: d1d32213-2d7d-4413-8579-1deee17ed5ba@1.worker-n2-com-f8c4bb956-shxns.gce-production-1
3version: deploy_2024.10.02-2-gc32b553 https://github.com/travis-ci/worker/tree/c32b553e81363378d09787f52103ea9bcadf253c
4instance: travis-job-9106be07-926a-4670-b14b-e1920b38adc8 travis-ci-ubuntu-2004-1737724207-d0e199ee-dirty (via amqp)
5startup: 5.882422716s
60.32s0.00s0.01s0.00s0.01s
system_info
7Build system information
8Build language: ruby
9Build dist: focal
10Build id: 274120136
11Job id: 630355656
12Runtime kernel version: 5.15.0-1074-gcp
13VM: default
14travis-build version: 6b157a1c
15Build image provisioning date and time
16Fri 24 Jan 2025 01:35:36 PM UTC
17Operating System Details
18Distributor ID: Ubuntu
19Description: Ubuntu 20.04.6 LTS
20Release: 20.04
21Codename: focal
22Systemd Version
23systemd 245 (245.4-4ubuntu3.24)
24Cookbooks Version
25fd4012d https://github.com/travis-ci/travis-cookbooks/tree/fd4012d
26git version
27git version 2.48.1
28bash version
29GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu)
30gcc version
31gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
32docker version
33Client:
34 Version: 24.0.7
35 API version: 1.43
36 Go version: go1.21.1
37 Git commit: 24.0.7-0ubuntu2~20.04.1
38 Built: Wed Mar 13 20:29:24 2024
39 OS/Arch: linux/amd64
40 Context: default
42Server:
43 Engine:
44 Version: 24.0.7
45 API version: 1.43 (minimum version 1.12)
46 Go version: go1.21.1
47 Git commit: 24.0.7-0ubuntu2~20.04.1
48 Built: Wed Mar 13 20:29:24 2024
49 OS/Arch: linux/amd64
50 Experimental: false
51 containerd:
52 Version: 1.7.12
53 GitCommit:
54 runc:
55 Version: 1.1.12-0ubuntu2~20.04.1
56 GitCommit:
57 docker-init:
58 Version: 0.19.0
59 GitCommit:
60clang version
61clang version 18.1.8
62jq version
63jq-1.7.1
64bats version
65Bats 1.11.1
66shellcheck version
670.10.0
68shfmt version
69v3.8.0
70ccache version
713.7.7
72cmake version
73cmake version 3.29.0
74heroku version
75heroku/10.0.2 linux-x64 node-v20.17.0
76imagemagick version
77Version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
78md5deep version
794.4
80mercurial version
81version 6.5.2
82mysql version
83mysql Ver 8.0.40-0ubuntu0.20.04.1 for Linux on x86_64 ((Ubuntu))
84openssl version
85OpenSSL 1.1.1f 31 Mar 2020
86packer version
87Packer v1.11.2
88postgresql client version
89psql (PostgreSQL) 13.18 (Ubuntu 13.18-1.pgdg20.04+1)
90ragel version
91Ragel State Machine Compiler version 6.10 March 2017
92sudo version
931.8.31
94gzip version
95gzip 1.10
96zip version
97Zip 3.0
98vim version
99VIM - Vi IMproved 8.1 (2018 May 18, compiled Jan 20 2025 13:56:30)
100iptables version
101iptables v1.8.4 (legacy)
102curl version
103curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
104wget version
105GNU Wget 1.20.3 built on linux-gnu.
106rsync version
107rsync version 3.1.3 protocol version 31
108go version
109go version go1.23.5 linux/amd64
110nvm version
1110.40.1
112perlbrew version
113/home/travis/perl5/perlbrew/bin/perlbrew - App::perlbrew/0.95
114phpenv version
115rbenv 1.3.2
116rvm version
117rvm 1.29.12 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
118default ruby version
119ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [x86_64-linux]
120default python version
121Python 3.7.17
122ElasticSearch version
1237.16.3
124Installed Firefox version
125firefox 99.0
126MongoDB version
127MongoDB 4.4.29
128PhantomJS version
1292.1.1
130Redis version
131redis-server 7.4.2
132Pre-installed Go versions
133go version go1.23.5 linux/amd64
134mvn version
135Apache Maven 3.9.4 (dfbb324ad4a7c8fb0bf182e6d91b0ae20e3d2dd9)
136gradle version
137Gradle 8.3!
138lein version
139Leiningen 2.11.2 on Java 11.0.21 OpenJDK 64-Bit Server VM
140Pre-installed Node.js versions
141v10.24.1
142v12.22.12
143v14.21.3
144v16.15
145v16.20.2
146v18.20.3
147v18.20.6
148v20.18.2
149v22.13.1
150v4.9.1
151v6.17.1
152v8.17.0
153phpenv versions
154 system
155 7.4
156* 7.4.6 (set by /home/travis/.phpenv/version)
157 hhvm-stable
158 hhvm
159composer --version
160Composer version 1.10.6 2020-05-06 10:28:10
161Pre-installed Ruby versions
162ruby-2.7.6
163ruby-3.3.5
1650.02s0.01s0.69s0.35s0.06s0.01s0.04s0.00s0.04s0.01s0.03s0.01s0.01s0.00s0.37sOK
1660.00s0.06s0.00s0.02s0.20s0.00s0.00s0.00s0.01s0.00s0.15s0.00s1.08s0.00s0.14s6.04s0.00s4.13s0.00s2.43s
docker_mtu_and_registry_mirrors
Docker
resolvconf
apt
167Adding APT Sources
1680.97s$ curl -sSL "https://www.postgresql.org/media/keys/ACCC4CF8.asc" | sudo -E apt-key add -
169OK
1700.04s$ echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" | sudo tee -a ${TRAVIS_ROOT}/etc/apt/sources.list >/dev/null
17115.04s$ travis_apt_get_update
172Installing APT Packages
173PostgreSQL package is detected. Stopping postgresql service. See https://github.com/travis-ci/travis-ci/issues/5737 for more information.
174$ sudo systemctl stop postgresql
17513.43s$ sudo -E apt-get -yq --no-install-suggests --no-install-recommends $(travis_apt_get_options) install postgresql-11 postgresql-client-11
176Reading package lists...
177Building dependency tree...
178Reading state information...
179The following packages were automatically installed and are no longer required:
180 amd64-microcode bubblewrap dictionaries-common hunspell-en-us
181 intel-microcode iucode-tool libaspell15 libenchant-2-2 libglu1-mesa
182 libgstreamer-gl1.0-0 libgstreamer-plugins-base1.0-0 libgudev-1.0-0
183 libharfbuzz-icu0 libhunspell-1.7-0 libhyphen0 libjavascriptcoregtk-4.0-18
184 libnotify4 libopengl0 libopenjp2-7 liborc-0.4-0 libsecret-1-0
185 libsecret-common libwebkit2gtk-4.0-37 libwebpdemux2 libwoff1
186 libwxbase3.0-0v5 libwxgtk-webview3.0-gtk3-0v5 libwxgtk3.0-gtk3-0v5
187 linux-image-unsigned-5.4.0-204-generic linux-modules-5.4.0-204-generic
188 xdg-dbus-proxy
189Use 'sudo apt autoremove' to remove them.
190Suggested packages:
191 postgresql-doc-11
192Recommended packages:
193 sysstat
194The following NEW packages will be installed:
195 postgresql-11 postgresql-client-11
1960 upgraded, 2 newly installed, 0 to remove and 57 not upgraded.
197Need to get 15.8 MB of archives.
198After this operation, 54.1 MB of additional disk space will be used.
199Get:1 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-client-11 amd64 11.22-9.pgdg20.04+1 [1,495 kB]
200Get:2 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-11 amd64 11.22-9.pgdg20.04+1 [14.3 MB]
201Preconfiguring packages ...
202Fetched 15.8 MB in 2s (8,879 kB/s)
203Selecting previously unselected package postgresql-client-11.
204(Reading database ... 153602 files and directories currently installed.)
205Preparing to unpack .../postgresql-client-11_11.22-9.pgdg20.04+1_amd64.deb ...
206Unpacking postgresql-client-11 (11.22-9.pgdg20.04+1) ...
207Selecting previously unselected package postgresql-11.
208Preparing to unpack .../postgresql-11_11.22-9.pgdg20.04+1_amd64.deb ...
209Unpacking postgresql-11 (11.22-9.pgdg20.04+1) ...
210Setting up postgresql-client-11 (11.22-9.pgdg20.04+1) ...
211Setting up postgresql-11 (11.22-9.pgdg20.04+1) ...
212Creating new PostgreSQL cluster 11/main ...
213/usr/lib/postgresql/11/bin/initdb -D /var/lib/postgresql/11/main --auth-local peer --auth-host md5
214The files belonging to this database system will be owned by user "postgres".
215This user must also own the server process.
217The database cluster will be initialized with locale "en_US.UTF-8".
218The default database encoding has accordingly been set to "UTF8".
219The default text search configuration will be set to "english".
221Data page checksums are disabled.
223fixing permissions on existing directory /var/lib/postgresql/11/main ... ok
224creating subdirectories ... ok
225selecting default max_connections ... 100
226selecting default shared_buffers ... 128MB
227selecting default timezone ... UTC
228selecting dynamic shared memory implementation ... posix
229creating configuration files ... ok
230running bootstrap script ... ok
231performing post-bootstrap initialization ... ok
232syncing data to disk ... ok
234Success. You can now start the database server using:
236 pg_ctlcluster 11 main start
238Processing triggers for postgresql-common (267.pgdg20.04+1) ...
239Building PostgreSQL dictionaries from installed myspell/hunspell packages...
240 en_us
241Removing obsolete dictionary files:
2423.01s
services
postgresql
2432.84s$ travis_setup_postgresql 11
244Starting PostgreSQL v11
245sudo systemctl start postgresql@11-main
git.checkout
2470.05s0.96s$ git clone --depth=50 --branch=ga-tbt279-user_activity https://github.com/travis-ci/travis-migrations.git travis-ci/travis-migrations
248Cloning into 'travis-ci/travis-migrations'...
249$ cd travis-ci/travis-migrations
250$ git checkout -qf f1fb0aa590ec71ffe7da8d36bea388416f3cd8f2
2520.01s
253Setting environment variables from repository settings
254$ export QUAY_ROBOT_HANDLE=[secure]
255$ export QUAY_ROBOT_TOKEN=[secure]
256$ export ARTIFACTS_BUCKET=travis-migrations-structure-dumps
257$ export ARTIFACTS_SECRET=[secure]
258$ export ARTIFACTS_KEY=[secure]
rvm
2603.22s$ rvm get head
261Downloading https://get.rvm.io
262Downloading https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer.asc
263Verifying /home/travis/.rvm/archives/rvm-installer.asc
264gpg: Signature made Tue 21 Feb 2023 11:35:16 PM UTC
265gpg: using RSA key 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
266gpg: Good signature from "Piotr Kuczynski <piotr.kuczynski@gmail.com>" [unknown]
267gpg: WARNING: This key is not certified with a trusted signature!
268gpg: There is no indication that the signature belongs to the owner.
269Primary key fingerprint: 7D2B AF1C F37B 13E2 069D 6956 105B D0E7 3949 9BDB
270GPG verified '/home/travis/.rvm/archives/rvm-installer'
271Downloading https://github.com/rvm/rvm/archive/master.tar.gz
272Upgrading the RVM installation in /home/travis/.rvm/
273 RVM PATH line found in /home/travis/.mkshrc /home/travis/.profile /home/travis/.zshrc.
274 RVM PATH line not found for Bash, rerun this command with '--auto-dotfiles' flag to fix it.
275 RVM sourcing line found in /home/travis/.profile /home/travis/.bashrc /home/travis/.zlogin.
276Upgrade of RVM in /home/travis/.rvm/ is complete.
278<warn>Thanks for installing RVM 🙏</warn>
279Please consider donating to our open collective to help us maintain RVM.
281👉 Donate: <code>https://opencollective.com/rvm/donate</code>
284RVM reloaded!
28523.55s$ rvm use 3.2.2 --install --binary --fuzzy
286curl: (22) The requested URL returned error: 404
287Required ruby-3.2.2 is not installed - installing.
288curl: (22) The requested URL returned error: 404
289Searching for binary rubies, this might take some time.
290Found remote file https://rubies.travis-ci.org/ubuntu/20.04/x86_64/ruby-3.2.2.tar.bz2
291Checking requirements for ubuntu.
292Requirements installation successful.
293ruby-3.2.2 - #configure
294ruby-3.2.2 - #download
295 % Total % Received % Xferd Average Speed Time Time Time Current
296 Dload Upload Total Spent Left Speed
297 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
298100 32.0M 100 32.0M 0 0 18.4M 0 0:00:01 0:00:01 --:--:-- 88.8M
299No checksum for downloaded archive, recording checksum in user configuration.
300ruby-3.2.2 - #validate archive
301ruby-3.2.2 - #extract
302ruby-3.2.2 - #validate binary
303ruby-3.2.2 - #setup
304ruby-3.2.2 - #gemset created /home/travis/.rvm/gems/ruby-3.2.2@global
305ruby-3.2.2 - #importing gemset /home/travis/.rvm/gemsets/global.gems..................................
306ruby-3.2.2 - #generating global wrappers........
307ruby-3.2.2 - #uninstalling gem rubygems-bundler-1.4.5.
308ruby-3.2.2 - #gemset created /home/travis/.rvm/gems/ruby-3.2.2
309ruby-3.2.2 - #importing gemset /home/travis/.rvm/gemsets/default.gems..............
310ruby-3.2.2 - #generating default wrappers........
311Using /home/travis/.rvm/gems/ruby-3.2.2
313$ export BUNDLE_GEMFILE=$PWD/Gemfile
cache.1
314Setting up build cache
315$ export CASHER_DIR=${TRAVIS_HOME}/.casher
3160.17s$ Installing caching utilities
3170.01s1.80sattempting to download cache archive
318fetching ga-tbt279-user_activity/cache--linux-focal-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--rvm-3.2.2--gemfile-Gemfile.tgz
319fetching ga-tbt279-user_activity/cache-linux-focal-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--rvm-3.2.2--gemfile-Gemfile.tgz
320fetching ga-tbt279-user_activity/cache--rvm-3.2.2--gemfile-Gemfile.tgz
321fetching master/cache--linux-focal-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--rvm-3.2.2--gemfile-Gemfile.tgz
322found cache
3230.00s2.16sadding /home/travis/build/travis-ci/travis-migrations/vendor/bundle to cache
324creating directory /home/travis/build/travis-ci/travis-migrations/vendor/bundle
ruby.versions
327$ ruby --version
328ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux]
329$ rvm --version
330rvm 1.29.12-next (master) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
331$ bundle --version
332Bundler version 2.4.10
333$ gem --version
3343.4.10
before_install.1
3364.47s$ gem update --system
337Updating rubygems-update
338Successfully installed rubygems-update-3.6.3
339Installing RubyGems 3.6.3
340 Successfully built RubyGem
341 Name: bundler
342 Version: 2.6.3
343 File: bundler-2.6.3.gem
344Bundler 2.6.3 installed
345RubyGems 3.6.3 installed
346Regenerating binstubs
347Regenerating plugins
349# 3.6.3 / 2025-01-16
351## Enhancements:
353* Add credentials file path to `gem env`. Pull request
354 [#8375](https://github.com/rubygems/rubygems/pull/8375) by duckinator
355* Update SPDX license list as of 2024-12-30. Pull request
356 [#8387](https://github.com/rubygems/rubygems/pull/8387) by
357 github-actions[bot]
358* Installs bundler 2.6.3 as a default gem.
360## Bug fixes:
362* Fix `@licenses` array unmarshalling. Pull request
363 [#8411](https://github.com/rubygems/rubygems/pull/8411) by rykov
365# 3.6.2 / 2024-12-23
367## Security:
369* Fix Gem::SafeMarshal buffer overrun when given lengths larger than fit
370 into a byte. Pull request
371 [#8305](https://github.com/rubygems/rubygems/pull/8305) by segiddins
372* Improve type checking in marshal_load methods. Pull request
373 [#8306](https://github.com/rubygems/rubygems/pull/8306) by segiddins
375## Enhancements:
377* Skip rdoc hooks and their tests on newer rdoc versions. Pull request
378 [#8340](https://github.com/rubygems/rubygems/pull/8340) by
379 deivid-rodriguez
380* Installs bundler 2.6.2 as a default gem.
382## Bug fixes:
384* Fix serialized metadata including an empty `@original_platform`
385 attribute. Pull request
386 [#8355](https://github.com/rubygems/rubygems/pull/8355) by
387 deivid-rodriguez
389# 3.6.1 / 2024-12-17
391## Enhancements:
393* Installs bundler 2.6.1 as a default gem.
395## Bug fixes:
397* Fix `gem info` tagging some non default gems as default. Pull request
398 [#8321](https://github.com/rubygems/rubygems/pull/8321) by
399 deivid-rodriguez
401## Documentation:
403* Fix broken links. Pull request
404 [#8327](https://github.com/rubygems/rubygems/pull/8327) by st0012
406# 3.6.0 / 2024-12-16
408## Security:
410* Stop storing executable names in ivars. Pull request
411 [#8307](https://github.com/rubygems/rubygems/pull/8307) by segiddins
413## Breaking changes:
415* Drop ruby 3.0 support. Pull request
416 [#8091](https://github.com/rubygems/rubygems/pull/8091) by segiddins
418## Features:
420* Add --attestation option to gem push. Pull request
421 [#8239](https://github.com/rubygems/rubygems/pull/8239) by segiddins
423## Enhancements:
425* Skip unresolved deps warning on `Gem::Specification.reset` on benign
426 cases. Pull request
427 [#8309](https://github.com/rubygems/rubygems/pull/8309) by
428 deivid-rodriguez
429* Let `gem install <name>` suggest `<name>-ruby` and `ruby-<name>` when
430 providing "did you mean" suggestions. Pull request
431 [#8197](https://github.com/rubygems/rubygems/pull/8197) by duckinator
432* Update SPDX license list as of 2024-08-19. Pull request
433 [#8233](https://github.com/rubygems/rubygems/pull/8233) by
434 github-actions[bot]
435* Add `--target-rbconfig` option to `gem install` and `gem update`
436 commands. Pull request
437 [#7628](https://github.com/rubygems/rubygems/pull/7628) by kateinoigakukun
438* Skip nil-value keys to make metadata reproducible. Pull request
439 [#7129](https://github.com/rubygems/rubygems/pull/7129) by nobu
440* Allow disabling installation of compiled extensions into lib through
441 `Gem.configuration.install_extension_in_lib`. Pull request
442 [#6463](https://github.com/rubygems/rubygems/pull/6463) by hsbt
443* Installs bundler 2.6.0 as a default gem.
445## Bug fixes:
447* Set $0 to exe when running `gem exec` to fix name in CLI output. Pull
448 request [#8267](https://github.com/rubygems/rubygems/pull/8267) by adam12
449* Fix manifest in gem package using incorrect platform sometimes. Pull
450 request [#8202](https://github.com/rubygems/rubygems/pull/8202) by
451 deivid-rodriguez
453## Documentation:
455* Fix missing single quote in git source example. Pull request
456 [#8303](https://github.com/rubygems/rubygems/pull/8303) by nobu
457* Update the `gem install` demo in REAME to use a gem that just works on
458 Windows. Pull request
459 [#8262](https://github.com/rubygems/rubygems/pull/8262) by soda92
460* Unify rubygems and bundler docs directory. Pull request
461 [#8159](https://github.com/rubygems/rubygems/pull/8159) by hsbt
463# 3.5.23 / 2024-11-05
465## Enhancements:
467* Validate user input encoding of `gem` CLI arguments. Pull request
468 [#6471](https://github.com/rubygems/rubygems/pull/6471) by
469 deivid-rodriguez
470* Fix `gem update --system` leaving old default bundler executables
471 around. Pull request
472 [#8172](https://github.com/rubygems/rubygems/pull/8172) by
473 deivid-rodriguez
474* Installs bundler 2.5.23 as a default gem.
476## Bug fixes:
478* Fix commands with 2 MFA requests when webauthn is enabled. Pull request
479 [#8174](https://github.com/rubygems/rubygems/pull/8174) by
480 deivid-rodriguez
481* Make `--enable-load-relative` binstubs prolog work when Ruby is not
482 installed in the same directory as the binstub. Pull request
483 [#7872](https://github.com/rubygems/rubygems/pull/7872) by
484 deivid-rodriguez
486## Performance:
488* Speed up `gem install <nonexistent-gem>` by finding alternative name
489 suggestions faster. Pull request
490 [#8084](https://github.com/rubygems/rubygems/pull/8084) by duckinator
492## Documentation:
494* Add missing comma in documentation. Pull request
495 [#8152](https://github.com/rubygems/rubygems/pull/8152) by leoarnold
497# 3.5.22 / 2024-10-16
499## Enhancements:
501* Prevent `._*` files in packages generated from macOS. Pull request
502 [#8150](https://github.com/rubygems/rubygems/pull/8150) by
503 deivid-rodriguez
504* Fix `gem pristine etc` resetting gem twice sometimes. Pull request
505 [#8117](https://github.com/rubygems/rubygems/pull/8117) by
506 deivid-rodriguez
507* Allow `gem pristine` to reset default gems too. Pull request
508 [#8118](https://github.com/rubygems/rubygems/pull/8118) by
509 deivid-rodriguez
510* Update vendored `uri` and `net-http`. Pull request
511 [#8112](https://github.com/rubygems/rubygems/pull/8112) by segiddins
512* Installs bundler 2.5.22 as a default gem.
514## Bug fixes:
516* Fix `gem contents` for default gems. Pull request
517 [#8132](https://github.com/rubygems/rubygems/pull/8132) by
518 deivid-rodriguez
519* Fix duplicated specs when they have been previously activated. Pull
520 request [#8131](https://github.com/rubygems/rubygems/pull/8131) by
521 deivid-rodriguez
522* Fix `gem install` on NFS shares. Pull request
523 [#8123](https://github.com/rubygems/rubygems/pull/8123) by
524 deivid-rodriguez
525* Fix a `gem install` crash during "done installing" hooks. Pull request
526 [#8113](https://github.com/rubygems/rubygems/pull/8113) by
527 deivid-rodriguez
528* Fix plugin command loading. Pull request
529 [#8121](https://github.com/rubygems/rubygems/pull/8121) by
530 deivid-rodriguez
532# 3.5.21 / 2024-10-03
534## Enhancements:
536* Fix `Gem::MissingSpecVersionError#to_s` not showing exception message.
537 Pull request [#8074](https://github.com/rubygems/rubygems/pull/8074) by
538 deivid-rodriguez
539* Remove code that makes suggest_gems_from_name give worse results. Pull
540 request [#8083](https://github.com/rubygems/rubygems/pull/8083) by
541 duckinator
542* Warning about PATH in `--user-install` mode is only necessary for gems
543 with executables. Pull request
544 [#8071](https://github.com/rubygems/rubygems/pull/8071) by
545 deivid-rodriguez
546* Installs bundler 2.5.21 as a default gem.
548## Bug fixes:
550* Fix error in one source when fetching dependency APIs clearing results
551 from all sources. Pull request
552 [#8080](https://github.com/rubygems/rubygems/pull/8080) by
553 deivid-rodriguez
554* Fix `gem cleanup` warning when two versions of psych installed. Pull
555 request [#8072](https://github.com/rubygems/rubygems/pull/8072) by
556 deivid-rodriguez
558# 3.5.20 / 2024-09-24
560## Enhancements:
562* Installs bundler 2.5.20 as a default gem.
564# 3.5.19 / 2024-09-18
566## Enhancements:
568* Standardize pretty-print output for `Gem::Source` and subclasses. Pull
569 request [#7994](https://github.com/rubygems/rubygems/pull/7994) by
570 djberube
571* Update vendored `molinillo` to master and vendored `resolv` to 0.4.0.
572 Pull request [#7521](https://github.com/rubygems/rubygems/pull/7521) by
573 hsbt
574* Installs bundler 2.5.19 as a default gem.
576## Bug fixes:
578* Fix `bundle exec rake install` failing when local gem has extensions.
579 Pull request [#7977](https://github.com/rubygems/rubygems/pull/7977) by
580 deivid-rodriguez
581* Make `gem exec` use the standard GEM_HOME. Pull request
582 [#7982](https://github.com/rubygems/rubygems/pull/7982) by
583 deivid-rodriguez
584* Fix `gem fetch` always exiting with zero status code. Pull request
585 [#8007](https://github.com/rubygems/rubygems/pull/8007) by
586 deivid-rodriguez
587* Remove temporary `.lock` files unintentionally left around by gem
588 installer. Pull request
589 [#7939](https://github.com/rubygems/rubygems/pull/7939) by nobu
590* Removed unused stringio. Pull request
591 [#8001](https://github.com/rubygems/rubygems/pull/8001) by hsbt
592* Avoid another race condition of open mode. Pull request
593 [#7931](https://github.com/rubygems/rubygems/pull/7931) by nobu
594* Fix `@license` typo preventing licenses from being correctly
595 unmarshalled. Pull request
596 [#7975](https://github.com/rubygems/rubygems/pull/7975) by djberube
598## Performance:
600* Fix `gem install does-not-exist` being super slow. Pull request
601 [#8006](https://github.com/rubygems/rubygems/pull/8006) by
602 deivid-rodriguez
604# 3.5.18 / 2024-08-26
606## Enhancements:
608* Installs bundler 2.5.18 as a default gem.
610## Bug fixes:
612* Fix `gem uninstall <name>:<version>` failing on shadowed default gems.
613 Pull request [#7949](https://github.com/rubygems/rubygems/pull/7949) by
614 deivid-rodriguez
616# 3.5.17 / 2024-08-01
618## Enhancements:
620* Explicitly encode `Gem::Dependency` to yaml. Pull request
621 [#7867](https://github.com/rubygems/rubygems/pull/7867) by segiddins
622* Installs bundler 2.5.17 as a default gem.
624## Bug fixes:
626* Fix `gem list` regression when a regular gem shadows a default one. Pull
627 request [#7892](https://github.com/rubygems/rubygems/pull/7892) by
628 deivid-rodriguez
629* Always leave default gem executables around. Pull request
630 [#7879](https://github.com/rubygems/rubygems/pull/7879) by
631 deivid-rodriguez
632* Fix line comment issue for hash when loading gemrc. Pull request
633 [#7857](https://github.com/rubygems/rubygems/pull/7857) by leetking
635# 3.5.16 / 2024-07-18
637## Enhancements:
639* Installs bundler 2.5.16 as a default gem.
641## Bug fixes:
643* Fix gemspec `require_paths` validation. Pull request
644 [#7866](https://github.com/rubygems/rubygems/pull/7866) by
645 deivid-rodriguez
646* Fix loading of nested `gemrc` config keys when specified as symbols.
647 Pull request [#7851](https://github.com/rubygems/rubygems/pull/7851) by
648 moofkit
650## Performance:
652* Use `caller_locations` instead of splitting `caller`. Pull request
653 [#7708](https://github.com/rubygems/rubygems/pull/7708) by nobu
655# 3.5.15 / 2024-07-09
657## Enhancements:
659* Installs bundler 2.5.15 as a default gem.
661## Bug fixes:
663* Restrict generic `arm` to only match 32-bit arm. Pull request
664 [#7830](https://github.com/rubygems/rubygems/pull/7830) by ntkme
665* Protect creating binstubs with a file lock. Pull request
666 [#7806](https://github.com/rubygems/rubygems/pull/7806) by
667 deivid-rodriguez
669## Documentation:
671* Make it clearer that `add_dependency` is the main way to add
672 non-development dependencies. Pull request
673 [#7800](https://github.com/rubygems/rubygems/pull/7800) by jeromedalbert
675# 3.5.14 / 2024-06-21
677## Enhancements:
679* Installs bundler 2.5.14 as a default gem.
681## Bug fixes:
683* Make "bundler? update --bundler" behave identically. Pull request
684 [#7778](https://github.com/rubygems/rubygems/pull/7778) by x-yuri
686# 3.5.13 / 2024-06-14
688## Enhancements:
690* Installs bundler 2.5.13 as a default gem.
692## Bug fixes:
694* Never remove executables that may belong to a default gem. Pull request
695 [#7747](https://github.com/rubygems/rubygems/pull/7747) by
696 deivid-rodriguez
698# 3.5.12 / 2024-06-13
700## Enhancements:
702* Installs bundler 2.5.12 as a default gem.
704## Bug fixes:
706* Fix `gem uninstall` unresolved specifications warning. Pull request
707 [#7667](https://github.com/rubygems/rubygems/pull/7667) by
708 deivid-rodriguez
709* Fix `gem pristine` sometimes failing to pristine user installed gems.
710 Pull request [#7664](https://github.com/rubygems/rubygems/pull/7664) by
711 deivid-rodriguez
713# 3.5.11 / 2024-05-28
715## Enhancements:
717* Update SPDX license list as of 2024-05-22. Pull request
718 [#7689](https://github.com/rubygems/rubygems/pull/7689) by
719 github-actions[bot]
720* Fix the update_rubygems inconsistency (--disable-gems). Pull request
721 [#7658](https://github.com/rubygems/rubygems/pull/7658) by x-yuri
722* Accept WASI as an OS name in Gem::Platform. Pull request
723 [#7629](https://github.com/rubygems/rubygems/pull/7629) by kateinoigakukun
724* Warn if RubyGems version explicitly set in gemspec does not match
725 running version. Pull request
726 [#7460](https://github.com/rubygems/rubygems/pull/7460) by
727 deivid-rodriguez
728* Installs bundler 2.5.11 as a default gem.
730## Bug fixes:
732* Fix binstubs sometimes not getting regenerated when `--destdir` is
733 given. Pull request
734 [#7660](https://github.com/rubygems/rubygems/pull/7660) by
735 deivid-rodriguez
736* Fix `gem uninstall --user-install` for symlinked HOME. Pull request
737 [#7645](https://github.com/rubygems/rubygems/pull/7645) by
738 deivid-rodriguez
739* Fix issue when plugin stubs would sometimes not be properly removed by
740 `gem uninstall`. Pull request
741 [#7631](https://github.com/rubygems/rubygems/pull/7631) by
742 deivid-rodriguez
743* Fix plugins uninstallation for user installed gems. Pull request
744 [#6456](https://github.com/rubygems/rubygems/pull/6456) by voxik
746## Performance:
748* Use a constant empty tar header to avoid extra allocations. Pull request
749 [#7484](https://github.com/rubygems/rubygems/pull/7484) by segiddins
751## Documentation:
753* Recommend `bin/rake` over `rake` in contributing docs. Pull request
754 [#7648](https://github.com/rubygems/rubygems/pull/7648) by
755 deivid-rodriguez
757# 3.5.10 / 2024-05-03
759## Security:
761* Add a limit to the size of the metadata and checksums files in a gem
762 package. Pull request
763 [#7568](https://github.com/rubygems/rubygems/pull/7568) by segiddins
765## Enhancements:
767* Don't fully require `rubygems` from `rubygems/package` to prevent some
768 circular require warnings when using Bundler. Pull request
769 [#7612](https://github.com/rubygems/rubygems/pull/7612) by
770 deivid-rodriguez
771* Installs bundler 2.5.10 as a default gem.
773## Bug fixes:
775* Rename credential email to identifier in WebAuthn poller. Pull request
776 [#7623](https://github.com/rubygems/rubygems/pull/7623) by jenshenny
778# 3.5.9 / 2024-04-12
780## Enhancements:
782* Installs bundler 2.5.9 as a default gem.
784# 3.5.8 / 2024-04-11
786## Security:
788* Respect global umask when writing regular files. Pull request
789 [#7518](https://github.com/rubygems/rubygems/pull/7518) by
790 deivid-rodriguez
792## Enhancements:
794* Allow string keys with gemrc. Pull request
795 [#7543](https://github.com/rubygems/rubygems/pull/7543) by hsbt
796* [Experimental] Add "gem rebuild" command. Pull request
797 [#4913](https://github.com/rubygems/rubygems/pull/4913) by duckinator
798* Installs bundler 2.5.8 as a default gem.
800## Bug fixes:
802* Fix NoMethodError crash when building errors about corrupt package
803 files. Pull request
804 [#7539](https://github.com/rubygems/rubygems/pull/7539) by jez
805* Fix resolver to properly intersect Arrays of `Gem::Resolver::Activation`
806 objects. Pull request
807 [#7537](https://github.com/rubygems/rubygems/pull/7537) by
808 deivid-rodriguez
810# 3.5.7 / 2024-03-22
812## Enhancements:
814* Warn on empty or open required_ruby_version specification attribute.
815 Pull request [#5010](https://github.com/rubygems/rubygems/pull/5010) by
816 simi
817* Control whether YAML aliases are enabled in Gem::SafeYAML.safe_load via
818 attribute. Pull request
819 [#7464](https://github.com/rubygems/rubygems/pull/7464) by segiddins
820* Update SPDX license list as of 2024-02-08. Pull request
821 [#7468](https://github.com/rubygems/rubygems/pull/7468) by
822 github-actions[bot]
823* Installs bundler 2.5.7 as a default gem.
825## Bug fixes:
827* Allow prerelease activation (even if requirement is not explicit about
828 it) when it's the only possibility. Pull request
829 [#7428](https://github.com/rubygems/rubygems/pull/7428) by kimesf
831## Documentation:
833* Fix a typo. Pull request
834 [#7505](https://github.com/rubygems/rubygems/pull/7505) by hsbt
835* Use https instead of http in documentation links. Pull request
836 [#7481](https://github.com/rubygems/rubygems/pull/7481) by hsbt
838# 3.5.6 / 2024-02-06
840## Enhancements:
842* Deep copy requirements in `Gem::Specification` and `Gem::Requirement`.
843 Pull request [#7439](https://github.com/rubygems/rubygems/pull/7439) by
844 flavorjones
845* Change gem login message to clear up that username can be also used.
846 Pull request [#7422](https://github.com/rubygems/rubygems/pull/7422) by
847 VitaliySerov
848* Add metadata for rubygems.org. Pull request
849 [#7435](https://github.com/rubygems/rubygems/pull/7435) by m-nakamura145
850* Improve gem login scope selection. Pull request
851 [#7342](https://github.com/rubygems/rubygems/pull/7342) by williantenfen
852* Vendor uri in RubyGems. Pull request
853 [#7386](https://github.com/rubygems/rubygems/pull/7386) by
854 deivid-rodriguez
855* Installs bundler 2.5.6 as a default gem.
857## Bug fixes:
859* Skip to load commented out words. Pull request
860 [#7413](https://github.com/rubygems/rubygems/pull/7413) by hsbt
861* Fix rake runtime dependency warning for rake based extension. Pull
862 request [#7395](https://github.com/rubygems/rubygems/pull/7395) by ntkme
864# 3.5.5 / 2024-01-18
866## Enhancements:
868* Installs bundler 2.5.5 as a default gem.
870## Bug fixes:
872* Fix `require` activation conflicts when requiring default gems under
873 some situations. Pull request
874 [#7379](https://github.com/rubygems/rubygems/pull/7379) by
875 deivid-rodriguez
876* Use cache_home instead of data_home in default_spec_cache_dir. Pull
877 request [#7331](https://github.com/rubygems/rubygems/pull/7331) by mrkn
879## Documentation:
881* Use squiggly heredocs in `Gem::Specification#description` documentation,
882 so it doesn't add leading whitespace. Pull request
883 [#7373](https://github.com/rubygems/rubygems/pull/7373) by bravehager
885# 3.5.4 / 2024-01-04
887## Enhancements:
889* Always avoid "Updating rubygems-update" message. Pull request
890 [#7335](https://github.com/rubygems/rubygems/pull/7335) by
891 deivid-rodriguez
892* Installs bundler 2.5.4 as a default gem.
894## Bug fixes:
896* Make `gem update --system` respect ruby version constraints. Pull
897 request [#7334](https://github.com/rubygems/rubygems/pull/7334) by
898 deivid-rodriguez
900# 3.5.3 / 2023-12-22
902## Enhancements:
904* Installs bundler 2.5.3 as a default gem.
906# 3.5.2 / 2023-12-21
908## Enhancements:
910* Support dynamic library loading with extension .so or .o. Pull request
911 [#7241](https://github.com/rubygems/rubygems/pull/7241) by hogelog
912* Installs bundler 2.5.2 as a default gem.
914## Performance:
916* Replace `object_id` comparison with identity Hash. Pull request
917 [#7303](https://github.com/rubygems/rubygems/pull/7303) by amomchilov
918* Use IO.copy_stream when reading, writing. Pull request
919 [#6958](https://github.com/rubygems/rubygems/pull/6958) by martinemde
921# 3.5.1 / 2023-12-15
923## Enhancements:
925* Installs bundler 2.5.1 as a default gem.
927# 3.5.0 / 2023-12-15
929## Security:
931* Replace `Marshal.load` with a fully-checked safe gemspec loader. Pull
932 request [#6896](https://github.com/rubygems/rubygems/pull/6896) by
933 segiddins
935## Breaking changes:
937* Drop ruby 2.6 and 2.7 support. Pull request
938 [#7116](https://github.com/rubygems/rubygems/pull/7116) by
939 deivid-rodriguez
940* Release package no longer includes test files. Pull request
941 [#6781](https://github.com/rubygems/rubygems/pull/6781) by hsbt
942* Hide `Gem::MockGemUi` from users. Pull request
943 [#6623](https://github.com/rubygems/rubygems/pull/6623) by hsbt
944* Deprecated `Gem.datadir` has been removed. Pull request
945 [#6469](https://github.com/rubygems/rubygems/pull/6469) by hsbt
947## Deprecations:
949* Deprecate `Gem::Platform.match?`. Pull request
950 [#6783](https://github.com/rubygems/rubygems/pull/6783) by hsbt
951* Deprecate `Gem::List`. Pull request
952 [#6311](https://github.com/rubygems/rubygems/pull/6311) by segiddins
954## Features:
956* The `generate_index` command can now generate compact index files and
957 lives as an external `rubygems-generate_index` gem. Pull request
958 [#7085](https://github.com/rubygems/rubygems/pull/7085) by segiddins
959* Make `gem install` fallback to user installation directory if default
960 gem home is not writable. Pull request
961 [#5327](https://github.com/rubygems/rubygems/pull/5327) by duckinator
962* Leverage ruby feature to warn when requiring default gems from stdlib
963 that will be turned into bundled gems in the future. Pull request
964 [#6840](https://github.com/rubygems/rubygems/pull/6840) by hsbt
966## Performance:
968* Use match? when regexp match data is unused. Pull request
969 [#7263](https://github.com/rubygems/rubygems/pull/7263) by segiddins
970* Fewer allocations in gem installation. Pull request
971 [#6975](https://github.com/rubygems/rubygems/pull/6975) by segiddins
972* Optimize allocations in `Gem::Version`. Pull request
973 [#6970](https://github.com/rubygems/rubygems/pull/6970) by segiddins
975## Enhancements:
977* Warn for duplicate meta data links when building gems. Pull request
978 [#7213](https://github.com/rubygems/rubygems/pull/7213) by etherbob
979* Vendor `net-http`, `net-protocol`, `resolv`, and `timeout` to reduce
980 conflicts between Gemfile gems and internal dependencies. Pull request
981 [#6793](https://github.com/rubygems/rubygems/pull/6793) by
982 deivid-rodriguez
983* Remove non-transparent requirement added to prerelease gems. Pull
984 request [#7226](https://github.com/rubygems/rubygems/pull/7226) by
985 deivid-rodriguez
986* Stream output from ext builds when --verbose. Pull request
987 [#7240](https://github.com/rubygems/rubygems/pull/7240) by osyoyu
988* Add missing services to CI detection and make it consistent between
989 RubyGems and Bundler. Pull request
990 [#7205](https://github.com/rubygems/rubygems/pull/7205) by nevinera
991* Update generate licenses template to not freeze regexps. Pull request
992 [#7154](https://github.com/rubygems/rubygems/pull/7154) by
993 github-actions[bot]
994* Don't check `LIBRUBY_RELATIVE` in truffleruby to signal a bash prelude
995 in rubygems binstubs. Pull request
996 [#7156](https://github.com/rubygems/rubygems/pull/7156) by
997 deivid-rodriguez
998* Update SPDX list and warn on deprecated identifiers. Pull request
999 [#6926](https://github.com/rubygems/rubygems/pull/6926) by simi
1000* Simplify extended `require` to potentially fix some deadlocks. Pull
1001 request [#6827](https://github.com/rubygems/rubygems/pull/6827) by nobu
1002* Small refactors for `Gem::Resolver`. Pull request
1003 [#6766](https://github.com/rubygems/rubygems/pull/6766) by hsbt
1004* Use double-quotes instead of single-quotes consistently in warnings.
1005 Pull request [#6550](https://github.com/rubygems/rubygems/pull/6550) by
1006 hsbt
1007* Add debug message for `nil` version gemspec. Pull request
1008 [#6436](https://github.com/rubygems/rubygems/pull/6436) by hsbt
1009* Installs bundler 2.5.0 as a default gem.
1011## Bug fixes:
1013* Fix installing from source with same default bundler version already
1014 installed. Pull request
1015 [#7244](https://github.com/rubygems/rubygems/pull/7244) by
1016 deivid-rodriguez
1018## Documentation:
1020* Improve comment explaining the necessity of `write_default_spec` method.
1021 Pull request [#6563](https://github.com/rubygems/rubygems/pull/6563) by
1022 voxik
1024# 3.4.22 / 2023-11-09
1026## Enhancements:
1028* Update SPDX license list as of 2023-10-05. Pull request
1029 [#7040](https://github.com/rubygems/rubygems/pull/7040) by
1030 github-actions[bot]
1031* Remove unnecessary rescue. Pull request
1032 [#7109](https://github.com/rubygems/rubygems/pull/7109) by
1033 deivid-rodriguez
1034* Installs bundler 2.4.22 as a default gem.
1036## Bug fixes:
1038* Handle empty array at built-in YAML serializer. Pull request
1039 [#7099](https://github.com/rubygems/rubygems/pull/7099) by hsbt
1040* Ignore non-tar format `.gem` files during search. Pull request
1041 [#7095](https://github.com/rubygems/rubygems/pull/7095) by dearblue
1042* Allow explicitly uninstalling multiple versions of same gem. Pull
1043 request [#7063](https://github.com/rubygems/rubygems/pull/7063) by
1044 kstevens715
1046## Performance:
1048* Avoid regexp match on every call to `Gem::Platform.local`. Pull request
1049 [#7104](https://github.com/rubygems/rubygems/pull/7104) by segiddins
1051## Documentation:
1053* Get `Gem::Specification#extensions_dir` documented. Pull request
1054 [#6218](https://github.com/rubygems/rubygems/pull/6218) by
1055 deivid-rodriguez
1057# 3.4.21 / 2023-10-17
1059## Enhancements:
1061* Abort `setup.rb` if Ruby is too old. Pull request
1062 [#7011](https://github.com/rubygems/rubygems/pull/7011) by
1063 deivid-rodriguez
1064* Remove usage of Dir.chdir that only execute a subprocess. Pull request
1065 [#6930](https://github.com/rubygems/rubygems/pull/6930) by segiddins
1066* Freeze more strings in generated gemspecs. Pull request
1067 [#6974](https://github.com/rubygems/rubygems/pull/6974) by segiddins
1068* Use pure-ruby YAML parser for loading configuration at RubyGems. Pull
1069 request [#6615](https://github.com/rubygems/rubygems/pull/6615) by hsbt
1070* Installs bundler 2.4.21 as a default gem.
1072## Documentation:
1074* Update suggested variable for bindir. Pull request
1075 [#7028](https://github.com/rubygems/rubygems/pull/7028) by hsbt
1076* Fix invalid links in documentation. Pull request
1077 [#7008](https://github.com/rubygems/rubygems/pull/7008) by simi
1079# 3.4.20 / 2023-09-27
1081## Enhancements:
1083* Raise `Gem::Package::FormatError` when gem encounters corrupt EOF.
1084 Pull request [#6882](https://github.com/rubygems/rubygems/pull/6882)
1085 by martinemde
1086* Allow skipping empty license `gem build` warning by setting license to
1087 `nil`. Pull request
1088 [#6879](https://github.com/rubygems/rubygems/pull/6879) by jhong97
1089* Update SPDX license list as of 2023-06-18. Pull request
1090 [#6891](https://github.com/rubygems/rubygems/pull/6891) by
1091 github-actions[bot]
1092* Update SPDX license list as of 2023-04-28. Pull request
1093 [#6642](https://github.com/rubygems/rubygems/pull/6642) by segiddins
1094* Update SPDX license list as of 2023-01-26. Pull request
1095 [#6310](https://github.com/rubygems/rubygems/pull/6310) by segiddins
1096* Installs bundler 2.4.20 as a default gem.
1098## Bug fixes:
1100* Fixed false positive SymlinkError in symbolic link directory. Pull
1101 request [#6947](https://github.com/rubygems/rubygems/pull/6947) by
1102 negi0109
1103* Ensure that loading multiple gemspecs with legacy YAML class references
1104 does not warn. Pull request
1105 [#6889](https://github.com/rubygems/rubygems/pull/6889) by segiddins
1106* Fix NoMethodError when choosing a too big number from `gem uni` list.
1107 Pull request [#6901](https://github.com/rubygems/rubygems/pull/6901) by
1108 amatsuda
1110## Performance:
1112* Reduce allocations for stub specifications. Pull request
1113 [#6972](https://github.com/rubygems/rubygems/pull/6972) by segiddins
1115# 3.4.19 / 2023-08-17
1117## Enhancements:
1119* Installs bundler 2.4.19 as a default gem.
1121## Performance:
1123* Speedup building docs when updating rubygems. Pull request
1124 [#6864](https://github.com/rubygems/rubygems/pull/6864) by
1125 deivid-rodriguez
1127# 3.4.18 / 2023-08-02
1129## Enhancements:
1131* Add poller to fetch WebAuthn OTP. Pull request
1132 [#6774](https://github.com/rubygems/rubygems/pull/6774) by jenshenny
1133* Remove side effects when unmarshaling old `Gem::Specification`. Pull
1134 request [#6825](https://github.com/rubygems/rubygems/pull/6825) by nobu
1135* Ship rubygems executables in `exe` folder. Pull request
1136 [#6704](https://github.com/rubygems/rubygems/pull/6704) by hsbt
1137* Installs bundler 2.4.18 as a default gem.
1139# 3.4.17 / 2023-07-14
1141## Enhancements:
1143* Installs bundler 2.4.17 as a default gem.
1145## Performance:
1147* Avoid unnecessary work for private local gem installation. Pull request
1148 [#6810](https://github.com/rubygems/rubygems/pull/6810) by
1149 deivid-rodriguez
1151# 3.4.16 / 2023-07-10
1153## Enhancements:
1155* Installs bundler 2.4.16 as a default gem.
1157# 3.4.15 / 2023-06-29
1159## Enhancements:
1161* Installs bundler 2.4.15 as a default gem.
1163## Bug fixes:
1165* Autoload shellwords when it's needed. Pull request
1166 [#6734](https://github.com/rubygems/rubygems/pull/6734) by ioquatix
1168## Documentation:
1170* Update command to test local gem command changes. Pull request
1171 [#6761](https://github.com/rubygems/rubygems/pull/6761) by jenshenny
1173# 3.4.14 / 2023-06-12
1175## Enhancements:
1177* Load plugin immediately. Pull request
1178 [#6673](https://github.com/rubygems/rubygems/pull/6673) by kou
1179* Installs bundler 2.4.14 as a default gem.
1181## Documentation:
1183* Clarify what the `rubygems-update` gem is for, and link to source code
1184 and guides. Pull request
1185 [#6710](https://github.com/rubygems/rubygems/pull/6710) by davetron5000
1187# 3.4.13 / 2023-05-09
1189## Enhancements:
1191* Installs bundler 2.4.13 as a default gem.
1193# 3.4.12 / 2023-04-11
1195## Enhancements:
1197* [Experimental] Add WebAuthn Support to the CLI. Pull request
1198 [#6560](https://github.com/rubygems/rubygems/pull/6560) by jenshenny
1199* Installs bundler 2.4.12 as a default gem.
1201# 3.4.11 / 2023-04-10
1203## Enhancements:
1205* Installs bundler 2.4.11 as a default gem.
1208------------------------------------------------------------------------------
1210RubyGems installed the following executables:
1211 /home/travis/.rvm/rubies/ruby-3.2.2/bin/gem
1212 /home/travis/.rvm/rubies/ruby-3.2.2/bin/bundle
1213 /home/travis/.rvm/rubies/ruby-3.2.2/bin/bundler
1215RubyGems system software updated
before_install.2
12160.02s$ sudo sed -i -e '/local.*peer/s/postgres/all/' -e 's/peer\|md5/trust/g' /etc/postgresql/11/main/pg_hba.conf
before_install.3
12170.02s$ sudo sed -i -e 's/^port = 5433/port = 5432/' /etc/postgresql/11/main/postgresql.conf
before_install.4
12182.43s$ sudo systemctl restart postgresql@11-main
install.bundler
12191.75s$ bundle install --jobs=3 --retry=3 --deployment
1220[DEPRECATED] The `--deployment` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set deployment true`, and stop using this flag
1221Bundler 2.6.3 is running, but your lockfile was generated with 2.4.14. Installing Bundler 2.4.14 and restarting using that version.
1222Fetching gem metadata from https://rubygems.org/.
1223Fetching bundler 2.4.14
1224Installing bundler 2.4.14
1225[DEPRECATED] The `--deployment` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local deployment 'true'`, and stop using this flag
1226Using rake 13.0.6
1227Using concurrent-ruby 1.2.2
1228Using i18n 1.14.1
1229Using minitest 5.18.1
1230Using tzinfo 2.0.6
1231Using activesupport 7.0.6
1232Using builder 3.2.4
1233Using erubi 1.12.0
1234Using racc 1.7.1
1235Using nokogiri 1.15.2 (x86_64-linux)
1236Using rails-dom-testing 2.1.1
1237Using crass 1.0.6
1238Using loofah 2.21.3
1239Using rails-html-sanitizer 1.6.0
1240Using actionview 7.0.6
1241Using rack 2.2.7
1242Using rack-test 2.1.0
1243Using actionpack 7.0.6
1244Using nio4r 2.5.9
1245Using websocket-extensions 0.1.5
1246Using websocket-driver 0.7.5
1247Using actioncable 7.0.6
1248Using globalid 1.1.0
1249Using activejob 7.0.6
1250Using activemodel 7.0.6
1251Using activerecord 7.0.6
1252Using marcel 1.0.2
1253Using mini_mime 1.1.2
1254Using activestorage 7.0.6
1255Using date 3.3.3
1256Using timeout 0.4.0
1257Using net-protocol 0.2.1
1258Using net-imap 0.3.6
1259Using net-pop 0.1.2
1260Using net-smtp 0.3.3
1261Using mail 2.8.1
1262Using actionmailbox 7.0.6
1263Using actionmailer 7.0.6
1264Using actiontext 7.0.6
1265Using ansi 1.5.0
1266Using ast 2.4.2
1267Using aws-eventstream 1.2.0
1268Using aws-partitions 1.783.0
1269Using aws-sigv4 1.6.0
1270Using jmespath 1.6.2
1271Using aws-sdk-core 3.176.1
1272Using aws-sdk-kms 1.68.0
1273Using aws-sdk-s3 1.127.0
1274Using bundler 2.4.14
1275Using colored 1.2
1276Using diff-lcs 1.5.0
1277Using docile 1.4.0
1278Using json 2.6.3
1279Using language_server-protocol 3.17.0.3
1280Using method_source 1.0.0
1281Using parallel 1.23.0
1282Using parser 3.2.2.3
1283Using pg 1.5.3
1284Using thor 1.2.2
1285Using zeitwerk 2.6.8
1286Using railties 7.0.6
1287Using rails 7.0.6
1288Using rainbow 3.1.1
1289Using rake-notes 0.2.2
1290Using regexp_parser 2.8.1
1291Using rexml 3.2.5
1292Using routes 0.2.0
1293Using rspec-support 3.12.1
1294Using rspec-core 3.12.2
1295Using rspec-expectations 3.12.3
1296Using rspec-mocks 3.12.5
1297Using rspec 3.12.0
1298Using rubocop-ast 1.29.0
1299Using ruby-progressbar 1.13.0
1300Using unicode-display_width 2.4.2
1301Using rubocop 1.54.1
1302Using rubocop-capybara 2.18.0
1303Using rubocop-factory_bot 2.23.1
1304Using rubocop-performance 1.18.0
1305Using rubocop-rspec 2.22.0
1306Using simplecov-html 0.12.3
1307Using simplecov_json_formatter 0.1.4
1308Using simplecov 0.22.0
1309Using terminal-table 3.0.2
1310Using simplecov-console 0.9.1
1311Bundle complete! 12 Gemfile dependencies, 85 gems now installed.
1312Bundled gems are installed into `./vendor/bundle`
before_script.1
13140.01s$ psql --version
1315psql (PostgreSQL) 11.22 (Ubuntu 11.22-9.pgdg20.04+1)
before_script.2
13160.25s$ psql -c 'CREATE DATABASE travis_test;'
1317CREATE DATABASE
before_script.3
13181.47s$ curl -fs https://raw.githubusercontent.com/travis-ci/travis-migrations/master/db/main/structure.sql | psql -v ON_ERROR_STOP=1 travis_test
1319SET
1320SET
1321SET
1322SET
1323SET
1324 set_config
1325------------
1327(1 row)
1329SET
1330SET
1331SET
1332SET
1333CREATE EXTENSION
1334COMMENT
1335CREATE EXTENSION
1336COMMENT
1337CREATE TYPE
1338CREATE FUNCTION
1339CREATE FUNCTION
1340CREATE FUNCTION
1341CREATE FUNCTION
1342CREATE FUNCTION
1343CREATE FUNCTION
1344CREATE FUNCTION
1345CREATE FUNCTION
1346CREATE FUNCTION
1347CREATE FUNCTION
1348CREATE FUNCTION
1349CREATE FUNCTION
1350CREATE FUNCTION
1351CREATE FUNCTION
1352CREATE FUNCTION
1353CREATE FUNCTION
1354CREATE FUNCTION
1355CREATE FUNCTION
1356CREATE FUNCTION
1357CREATE FUNCTION
1358CREATE FUNCTION
1359CREATE FUNCTION
1360CREATE FUNCTION
1361CREATE FUNCTION
1362CREATE FUNCTION
1363CREATE FUNCTION
1364CREATE FUNCTION
1365CREATE FUNCTION
1366CREATE FUNCTION
1367CREATE FUNCTION
1368SET
1369CREATE TABLE
1370CREATE SEQUENCE
1371ALTER SEQUENCE
1372CREATE TABLE
1373CREATE TABLE
1374CREATE SEQUENCE
1375ALTER SEQUENCE
1376CREATE TABLE
1377CREATE SEQUENCE
1378ALTER SEQUENCE
1379CREATE TABLE
1380CREATE SEQUENCE
1381ALTER SEQUENCE
1382CREATE TABLE
1383CREATE SEQUENCE
1384ALTER SEQUENCE
1385CREATE TABLE
1386CREATE SEQUENCE
1387ALTER SEQUENCE
1388CREATE TABLE
1389CREATE SEQUENCE
1390ALTER SEQUENCE
1391CREATE TABLE
1392CREATE SEQUENCE
1393ALTER SEQUENCE
1394CREATE SEQUENCE
1395CREATE TABLE
1396CREATE SEQUENCE
1397ALTER SEQUENCE
1398CREATE TABLE
1399CREATE SEQUENCE
1400ALTER SEQUENCE
1401CREATE TABLE
1402CREATE SEQUENCE
1403ALTER SEQUENCE
1404CREATE TABLE
1405CREATE SEQUENCE
1406ALTER SEQUENCE
1407CREATE TABLE
1408CREATE SEQUENCE
1409ALTER SEQUENCE
1410CREATE TABLE
1411CREATE SEQUENCE
1412ALTER SEQUENCE
1413CREATE TABLE
1414CREATE TABLE
1415CREATE TABLE
1416CREATE TABLE
1417CREATE TABLE
1418CREATE TABLE
1419CREATE TABLE
1420CREATE TABLE
1421CREATE TABLE
1422CREATE TABLE
1423CREATE TABLE
1424CREATE TABLE
1425CREATE TABLE
1426CREATE TABLE
1427CREATE TABLE
1428CREATE TABLE
1429CREATE SEQUENCE
1430ALTER SEQUENCE
1431CREATE TABLE
1432CREATE SEQUENCE
1433ALTER SEQUENCE
1434CREATE TABLE
1435CREATE TABLE
1436CREATE SEQUENCE
1437ALTER SEQUENCE
1438CREATE TABLE
1439CREATE SEQUENCE
1440ALTER SEQUENCE
1441CREATE TABLE
1442CREATE SEQUENCE
1443ALTER SEQUENCE
1444CREATE TABLE
1445CREATE SEQUENCE
1446ALTER SEQUENCE
1447CREATE TABLE
1448CREATE SEQUENCE
1449ALTER SEQUENCE
1450CREATE TABLE
1451CREATE SEQUENCE
1452ALTER SEQUENCE
1453CREATE TABLE
1454CREATE SEQUENCE
1455ALTER SEQUENCE
1456CREATE TABLE
1457CREATE SEQUENCE
1458ALTER SEQUENCE
1459CREATE TABLE
1460CREATE SEQUENCE
1461ALTER SEQUENCE
1462CREATE TABLE
1463CREATE SEQUENCE
1464ALTER SEQUENCE
1465CREATE TABLE
1466CREATE SEQUENCE
1467ALTER SEQUENCE
1468CREATE TABLE
1469CREATE SEQUENCE
1470ALTER SEQUENCE
1471CREATE TABLE
1472CREATE SEQUENCE
1473ALTER SEQUENCE
1474CREATE TABLE
1475CREATE SEQUENCE
1476ALTER SEQUENCE
1477CREATE TABLE
1478CREATE SEQUENCE
1479ALTER SEQUENCE
1480CREATE TABLE
1481CREATE TABLE
1482CREATE SEQUENCE
1483ALTER SEQUENCE
1484CREATE TABLE
1485CREATE SEQUENCE
1486ALTER SEQUENCE
1487CREATE TABLE
1488CREATE SEQUENCE
1489ALTER SEQUENCE
1490CREATE TABLE
1491CREATE SEQUENCE
1492ALTER SEQUENCE
1493CREATE TABLE
1494CREATE SEQUENCE
1495ALTER SEQUENCE
1496CREATE TABLE
1497CREATE SEQUENCE
1498ALTER SEQUENCE
1499CREATE TABLE
1500CREATE SEQUENCE
1501ALTER SEQUENCE
1502CREATE TABLE
1503CREATE SEQUENCE
1504ALTER SEQUENCE
1505CREATE TABLE
1506CREATE TABLE
1507CREATE SEQUENCE
1508ALTER SEQUENCE
1509CREATE TABLE
1510CREATE TABLE
1511CREATE SEQUENCE
1512ALTER SEQUENCE
1513CREATE TABLE
1514CREATE SEQUENCE
1515ALTER SEQUENCE
1516CREATE TABLE
1517CREATE SEQUENCE
1518ALTER SEQUENCE
1519CREATE TABLE
1520CREATE SEQUENCE
1521ALTER SEQUENCE
1522CREATE TABLE
1523CREATE SEQUENCE
1524ALTER SEQUENCE
1525CREATE TABLE
1526CREATE SEQUENCE
1527ALTER SEQUENCE
1528CREATE TABLE
1529CREATE SEQUENCE
1530ALTER SEQUENCE
1531CREATE TABLE
1532CREATE SEQUENCE
1533ALTER SEQUENCE
1534CREATE TABLE
1535CREATE SEQUENCE
1536ALTER SEQUENCE
1537CREATE TABLE
1538CREATE SEQUENCE
1539ALTER SEQUENCE
1540CREATE TABLE
1541CREATE SEQUENCE
1542ALTER SEQUENCE
1543CREATE TABLE
1544CREATE SEQUENCE
1545ALTER SEQUENCE
1546CREATE TABLE
1547CREATE SEQUENCE
1548ALTER SEQUENCE
1549CREATE TABLE
1550ALTER TABLE
1551ALTER TABLE
1552ALTER TABLE
1553ALTER TABLE
1554ALTER TABLE
1555ALTER TABLE
1556ALTER TABLE
1557ALTER TABLE
1558ALTER TABLE
1559ALTER TABLE
1560ALTER TABLE
1561ALTER TABLE
1562ALTER TABLE
1563ALTER TABLE
1564ALTER TABLE
1565ALTER TABLE
1566ALTER TABLE
1567ALTER TABLE
1568ALTER TABLE
1569ALTER TABLE
1570ALTER TABLE
1571ALTER TABLE
1572ALTER TABLE
1573ALTER TABLE
1574ALTER TABLE
1575ALTER TABLE
1576ALTER TABLE
1577ALTER TABLE
1578ALTER TABLE
1579ALTER TABLE
1580ALTER TABLE
1581ALTER TABLE
1582ALTER TABLE
1583ALTER TABLE
1584ALTER TABLE
1585ALTER TABLE
1586ALTER TABLE
1587ALTER TABLE
1588ALTER TABLE
1589ALTER TABLE
1590ALTER TABLE
1591ALTER TABLE
1592ALTER TABLE
1593ALTER TABLE
1594ALTER TABLE
1595ALTER TABLE
1596ALTER TABLE
1597ALTER TABLE
1598ALTER TABLE
1599ALTER TABLE
1600ALTER TABLE
1601ALTER TABLE
1602ALTER TABLE
1603ALTER TABLE
1604ALTER TABLE
1605ALTER TABLE
1606ALTER TABLE
1607ALTER TABLE
1608ALTER TABLE
1609ALTER TABLE
1610ALTER TABLE
1611ALTER TABLE
1612ALTER TABLE
1613ALTER TABLE
1614ALTER TABLE
1615ALTER TABLE
1616ALTER TABLE
1617ALTER TABLE
1618ALTER TABLE
1619ALTER TABLE
1620ALTER TABLE
1621ALTER TABLE
1622ALTER TABLE
1623ALTER TABLE
1624ALTER TABLE
1625ALTER TABLE
1626ALTER TABLE
1627ALTER TABLE
1628ALTER TABLE
1629ALTER TABLE
1630ALTER TABLE
1631ALTER TABLE
1632ALTER TABLE
1633ALTER TABLE
1634ALTER TABLE
1635ALTER TABLE
1636ALTER TABLE
1637ALTER TABLE
1638ALTER TABLE
1639ALTER TABLE
1640ALTER TABLE
1641ALTER TABLE
1642ALTER TABLE
1643ALTER TABLE
1644ALTER TABLE
1645ALTER TABLE
1646ALTER TABLE
1647ALTER TABLE
1648ALTER TABLE
1649ALTER TABLE
1650ALTER TABLE
1651ALTER TABLE
1652ALTER TABLE
1653ALTER TABLE
1654ALTER TABLE
1655ALTER TABLE
1656CREATE INDEX
1657CREATE INDEX
1658CREATE INDEX
1659CREATE INDEX
1660CREATE INDEX
1661CREATE INDEX
1662CREATE INDEX
1663CREATE INDEX
1664CREATE INDEX
1665CREATE INDEX
1666CREATE INDEX
1667CREATE INDEX
1668CREATE INDEX
1669CREATE INDEX
1670CREATE INDEX
1671CREATE INDEX
1672CREATE INDEX
1673CREATE INDEX
1674CREATE INDEX
1675CREATE INDEX
1676CREATE INDEX
1677CREATE INDEX
1678CREATE INDEX
1679CREATE INDEX
1680CREATE INDEX
1681CREATE INDEX
1682CREATE INDEX
1683CREATE INDEX
1684CREATE INDEX
1685CREATE INDEX
1686CREATE INDEX
1687CREATE INDEX
1688CREATE INDEX
1689CREATE INDEX
1690CREATE INDEX
1691CREATE INDEX
1692CREATE INDEX
1693CREATE INDEX
1694CREATE INDEX
1695CREATE INDEX
1696CREATE INDEX
1697CREATE INDEX
1698CREATE INDEX
1699CREATE INDEX
1700CREATE INDEX
1701CREATE INDEX
1702CREATE INDEX
1703CREATE INDEX
1704CREATE INDEX
1705CREATE INDEX
1706CREATE INDEX
1707CREATE INDEX
1708CREATE INDEX
1709CREATE INDEX
1710CREATE INDEX
1711CREATE INDEX
1712CREATE INDEX
1713CREATE INDEX
1714CREATE INDEX
1715CREATE INDEX
1716CREATE INDEX
1717CREATE INDEX
1718CREATE INDEX
1719CREATE INDEX
1720CREATE INDEX
1721CREATE INDEX
1722CREATE INDEX
1723CREATE INDEX
1724CREATE INDEX
1725CREATE INDEX
1726CREATE INDEX
1727CREATE INDEX
1728CREATE INDEX
1729CREATE INDEX
1730CREATE INDEX
1731CREATE INDEX
1732CREATE INDEX
1733CREATE INDEX
1734CREATE INDEX
1735CREATE INDEX
1736CREATE INDEX
1737CREATE INDEX
1738CREATE INDEX
1739CREATE INDEX
1740CREATE INDEX
1741CREATE INDEX
1742CREATE INDEX
1743CREATE INDEX
1744CREATE INDEX
1745CREATE INDEX
1746CREATE INDEX
1747CREATE INDEX
1748CREATE INDEX
1749CREATE INDEX
1750CREATE INDEX
1751CREATE INDEX
1752CREATE INDEX
1753CREATE INDEX
1754CREATE INDEX
1755CREATE INDEX
1756CREATE INDEX
1757CREATE INDEX
1758CREATE INDEX
1759CREATE INDEX
1760CREATE INDEX
1761CREATE INDEX
1762CREATE INDEX
1763CREATE INDEX
1764CREATE INDEX
1765CREATE INDEX
1766CREATE INDEX
1767CREATE INDEX
1768CREATE INDEX
1769CREATE INDEX
1770CREATE INDEX
1771CREATE INDEX
1772CREATE INDEX
1773CREATE INDEX
1774CREATE INDEX
1775CREATE INDEX
1776CREATE INDEX
1777CREATE INDEX
1778CREATE INDEX
1779CREATE INDEX
1780CREATE INDEX
1781CREATE INDEX
1782CREATE INDEX
1783CREATE INDEX
1784CREATE INDEX
1785CREATE INDEX
1786CREATE INDEX
1787CREATE INDEX
1788CREATE INDEX
1789CREATE INDEX
1790CREATE INDEX
1791CREATE INDEX
1792CREATE INDEX
1793CREATE INDEX
1794CREATE INDEX
1795CREATE INDEX
1796CREATE INDEX
1797CREATE INDEX
1798CREATE INDEX
1799CREATE INDEX
1800CREATE INDEX
1801CREATE INDEX
1802CREATE INDEX
1803CREATE INDEX
1804CREATE INDEX
1805CREATE INDEX
1806CREATE INDEX
1807CREATE INDEX
1808CREATE INDEX
1809CREATE INDEX
1810CREATE INDEX
1811CREATE INDEX
1812CREATE INDEX
1813CREATE INDEX
1814CREATE INDEX
1815CREATE INDEX
1816CREATE INDEX
1817CREATE INDEX
1818CREATE INDEX
1819CREATE INDEX
1820CREATE INDEX
1821CREATE INDEX
1822CREATE INDEX
1823CREATE INDEX
1824CREATE INDEX
1825CREATE INDEX
1826CREATE INDEX
1827CREATE INDEX
1828CREATE INDEX
1829CREATE INDEX
1830CREATE INDEX
1831CREATE INDEX
1832CREATE INDEX
1833CREATE INDEX
1834CREATE INDEX
1835CREATE INDEX
1836CREATE INDEX
1837CREATE INDEX
1838CREATE INDEX
1839CREATE INDEX
1840CREATE INDEX
1841CREATE INDEX
1842CREATE INDEX
1843CREATE INDEX
1844CREATE INDEX
1845CREATE INDEX
1846CREATE INDEX
1847CREATE INDEX
1848CREATE INDEX
1849CREATE INDEX
1850CREATE INDEX
1851CREATE INDEX
1852CREATE INDEX
1853CREATE INDEX
1854CREATE INDEX
1855CREATE INDEX
1856CREATE INDEX
1857CREATE INDEX
1858CREATE INDEX
1859CREATE INDEX
1860CREATE INDEX
1861CREATE INDEX
1862CREATE INDEX
1863CREATE INDEX
1864CREATE INDEX
1865CREATE INDEX
1866CREATE TRIGGER
1867CREATE TRIGGER
1868CREATE TRIGGER
1869CREATE TRIGGER
1870CREATE TRIGGER
1871CREATE TRIGGER
1872CREATE TRIGGER
1873CREATE TRIGGER
1874CREATE TRIGGER
1875CREATE TRIGGER
1876CREATE TRIGGER
1877CREATE TRIGGER
1878CREATE TRIGGER
1879CREATE TRIGGER
1880CREATE TRIGGER
1881CREATE TRIGGER
1882CREATE TRIGGER
1883ALTER TABLE
1884ALTER TABLE
1885ALTER TABLE
1886ALTER TABLE
1887ALTER TABLE
1888ALTER TABLE
1889ALTER TABLE
1890ALTER TABLE
1891ALTER TABLE
1892ALTER TABLE
1893ALTER TABLE
1894ALTER TABLE
1895ALTER TABLE
1896ALTER TABLE
1897ALTER TABLE
1898ALTER TABLE
1899ALTER TABLE
1900ALTER TABLE
1901ALTER TABLE
1902ALTER TABLE
1903ALTER TABLE
1904ALTER TABLE
1905ALTER TABLE
1906ALTER TABLE
1907ALTER TABLE
1908ALTER TABLE
1909ALTER TABLE
1910ALTER TABLE
1911ALTER TABLE
1912ALTER TABLE
1913ALTER TABLE
1914ALTER TABLE
1915ALTER TABLE
1916SET
1917INSERT 0 394
191846.29s$ bundle exec rspec spec
1920Repo counts
1921 before aggregation
1922 after aggregating per repo
1923 after aggregating all counts
1924 does not raise if repos are missing
1925 does not raise if builds are deleted before stages
1927set_updated_at trigger
1928Dropped database 'travis_test'
1929Created database 'travis_test'
1930== 201207261749 CreatePlans: migrating ========================================
1931-- create_table(:plans, {:id=>:integer})
1932 -> 0.0073s
1933== 201207261749 CreatePlans: migrated (0.0074s) ===============================
1935== 20101126174706 CreateRepositories: migrating ===============================
1936-- create_table(:repositories, {:id=>:integer})
1937 -> 0.0057s
1938== 20101126174706 CreateRepositories: migrated (0.0057s) ======================
1940== 20101126174715 CreateBuilds: migrating =====================================
1941-- create_table(:builds, {:id=>:integer})
1942 -> 0.0061s
1943== 20101126174715 CreateBuilds: migrated (0.0061s) ============================
1945== 20110109130532 DeviseCreateUsers: migrating ================================
1946-- create_table(:users, {:id=>:integer})
1947 -> 0.0056s
1948-- add_index(:users, :login, {:unique=>true})
1949 -> 0.0028s
1950== 20110109130532 DeviseCreateUsers: migrated (0.0086s) =======================
1952== 20110116155100 RepositoriesAddUsername: migrating ==========================
1953-- change_table(:repositories)
1954 -> 0.0008s
1955== 20110116155100 RepositoriesAddUsername: migrated (0.0009s) =================
1957== 20110130102621 CreateTokens: migrating =====================================
1958-- create_table(:tokens, {:id=>:integer})
1959 -> 0.0059s
1960== 20110130102621 CreateTokens: migrated (0.0060s) ============================
1962== 20110301071656 AddBuildParentIdAndConfiguration: migrating =================
1963-- change_table(:builds)
1964 -> 0.0012s
1965-- change_column(:builds, :number, :string)
1966 -> 0.0056s
1967-- add_index(:builds, :repository_id)
1968 -> 0.0024s
1969-- add_index(:builds, :parent_id)
1970 -> 0.0024s
1971== 20110301071656 AddBuildParentIdAndConfiguration: migrated (0.0117s) ========
1973== 20110316174721 RepositoriesDenormalizeLastBuildAttributes: migrating =======
1974-- change_table(:repositories)
1975 -> 0.0025s
1976== 20110316174721 RepositoriesDenormalizeLastBuildAttributes: migrated (0.0026s)
1978== 20110321075539 RepositoriesAddOwnerNameAndOwnerEmail: migrating ============
1979-- change_table(:repositories)
1980 -> 0.0015s
1981-- remove_column(:repositories, :username)
1982 -> 0.0004s
1983== 20110321075539 RepositoriesAddOwnerNameAndOwnerEmail: migrated (0.0020s) ===
1985== 20110411171936 CreateHistoriesTable: migrating =============================
1986-- create_table(:histories, {:id=>:integer})
1987 -> 0.0063s
1988-- add_index(:histories, [:item, :table, :month, :year])
1989 -> 0.0026s
1990== 20110411171936 CreateHistoriesTable: migrated (0.0090s) ====================
1992== 20110411171937 RenameHistoriesToRailsAdminHistories: migrating =============
1993-- remove_index(:histories, nil, {:name=>:index_histories_on_item_and_table_and_month_and_year})
1994 -> 0.0005s
1995-- rename_table(:histories, :rails_admin_histories)
1996 -> 0.0035s
1997-- add_index("rails_admin_histories", ["item", "table", "month", "year"], {:name=>"index_histories_on_item_and_table_and_month_and_year"})
1998 -> 0.0026s
1999== 20110411171937 RenameHistoriesToRailsAdminHistories: migrated (0.0081s) ====
2001== 20110411172518 AddAdminFlagToUser: migrating ===============================
2002-- change_table(:users)
2003 -> 0.0012s
2004== 20110411172518 AddAdminFlagToUser: migrated (0.0013s) ======================
2006== 20110413101057 BuildsAddRef: migrating =====================================
2007-- change_table(:builds)
2008 -> 0.0011s
2009== 20110413101057 BuildsAddRef: migrated (0.0012s) ============================
2011== 20110414131100 BuildsAddGithubPayload: migrating ===========================
2012-- change_table(:builds)
2013 -> 0.0007s
2014== 20110414131100 BuildsAddGithubPayload: migrated (0.0007s) ==================
2016== 20110503150504 AddGithubIdToUsersTable: migrating ==========================
2017-- add_column(:users, :github_id, :integer)
2018 -> 0.0007s
2019-- add_index(:users, :github_id)
2020 -> 0.0025s
2021== 20110503150504 AddGithubIdToUsersTable: migrated (0.0033s) =================
2023== 20110523012243 RepositoriesChangeOwnerEmailType: migrating =================
2024-- change_column(:repositories, :owner_email, :text)
2025 -> 0.0008s
2026== 20110523012243 RepositoriesChangeOwnerEmailType: migrated (0.0009s) ========
2028== 20110611203537 AddGithubOauthTokenToUser: migrating ========================
2029-- add_column(:users, :github_oauth_token, :string)
2030 -> 0.0010s
2031-- add_index(:users, :github_oauth_token)
2032 -> 0.0025s
2033== 20110611203537 AddGithubOauthTokenToUser: migrated (0.0036s) ===============
2035== 20110613210252 AddCompareUrlToBuild: migrating =============================
2036-- add_column(:builds, :compare_url, :string)
2037 -> 0.0007s
2038== 20110613210252 AddCompareUrlToBuild: migrated (0.0008s) ====================
2040== 20110615152003 BuildsRemoveJobId: migrating ================================
2041-- change_table(:builds)
2042 -> 0.0007s
2043== 20110615152003 BuildsRemoveJobId: migrated (0.0007s) =======================
2045== 20110616211744 BuildRemoveLastBuiltAt: migrating ===========================
2046-- change_table(:repositories)
2047 -> 0.0007s
2048== 20110616211744 BuildRemoveLastBuiltAt: migrated (0.0007s) ==================
2050== 20110617114728 AddMissingIndexes: migrating ================================
2051-- add_index(:repositories, :last_build_started_at)
2052 -> 0.0028s
2053-- add_index(:repositories, [:owner_name, :name])
2054 -> 0.0022s
2055-- add_index(:builds, [:repository_id, :parent_id, :started_at])
2056 -> 0.0024s
2057== 20110617114728 AddMissingIndexes: migrated (0.0075s) =======================
2059== 20110619100906 AddActiveToRepositories: migrating ==========================
2060-- add_column(:repositories, :is_active, :boolean)
2061 -> 0.0007s
2062== 20110619100906 AddActiveToRepositories: migrated (0.0008s) =================
2064== 20110729094426 StoreTokenInBuild: migrating ================================
2065-- add_column(:builds, :token, :string)
2066 -> 0.0007s
2067== 20110729094426 StoreTokenInBuild: migrated (0.0007s) =======================
2069== 20110801161819 CreateRequestsCommitsAndTasks: migrating ====================
2070-- change_table(:builds)
2071 -> 0.0015s
2072-- create_table(:commits, {:force=>true, :id=>:integer})
2073 -> 0.0062s
2074-- create_table(:requests, {:force=>true, :id=>:integer})
2075 -> 0.0058s
2076-- create_table(:tasks, {:force=>true, :id=>:integer})
2077 -> 0.0068s
2078-- add_index(:commits, :commit)
2079 -> 0.0022s
2080-- add_index(:builds, :commit)
2081 -> 0.0026s
2082-- add_index(:requests, :commit)
2083 -> 0.0030s
2084-- add_index(:tasks, :commit)
2085 -> 0.0029s
2086-- execute("UPDATE requests SET commit_id = (SELECT commits.id FROM commits WHERE commits.commit = requests.commit LIMIT 1)")
2087 -> 0.0007s
2088-- execute("UPDATE tasks SET commit_id = (SELECT commits.id FROM commits WHERE commits.commit = tasks.commit LIMIT 1)")
2089 -> 0.0005s
2090-- execute("DELETE FROM builds WHERE parent_id IS NOT NULL")
2091 -> 0.0005s
2092-- execute("UPDATE builds SET request_id = (SELECT requests.id FROM requests WHERE requests.commit = builds.commit LIMIT 1)")
2093 -> 0.0004s
2094-- execute("UPDATE builds SET commit_id = (SELECT commits.id FROM commits WHERE commits.commit = builds.commit LIMIT 1)")
2095 -> 0.0003s
2096-- execute("CREATE SEQUENCE shared_builds_tasks_seq CACHE 30")
2097 -> 0.0005s
2098-- execute("ALTER TABLE builds ALTER COLUMN id TYPE BIGINT")
2099 -> 0.0125s
2100-- execute("ALTER TABLE builds ALTER COLUMN id SET DEFAULT nextval('shared_builds_tasks_seq')")
2101 -> 0.0006s
2102-- execute("ALTER TABLE tasks ALTER COLUMN id TYPE BIGINT")
2103 -> 0.0071s
2104-- execute("ALTER TABLE tasks ALTER COLUMN id SET DEFAULT nextval('shared_builds_tasks_seq')")
2105 -> 0.0006s
2106-- select_value("SELECT max(id) FROM commits")
2107 -> 0.0006s
2108-- execute("SELECT setval('commits_id_seq', 1)")
2109 -> 0.0003s
2110-- select_value("SELECT max(id) FROM requests")
2111 -> 0.0004s
2112-- execute("SELECT setval('requests_id_seq', 1)")
2113 -> 0.0003s
2114-- select_value("SELECT max(id) FROM tasks")
2115 -> 0.0005s
2116-- execute("SELECT setval('tasks_id_seq', 1)")
2117 -> 0.0003s
2118-- remove_column(:builds, :parent_id)
2119 -> 0.0005s
2120-- remove_column(:builds, :commit)
2121 -> 0.0004s
2122-- remove_column(:requests, :commit)
2123 -> 0.0004s
2124-- remove_column(:tasks, :commit)
2125 -> 0.0004s
2126== 20110801161819 CreateRequestsCommitsAndTasks: migrated (0.0595s) ===========
2128== 20110805030147 RepositoryRenameIsActiveToActive: migrating =================
2129-- rename_column(:repositories, :is_active, :active)
2130 -> 0.0162s
2131== 20110805030147 RepositoryRenameIsActiveToActive: migrated (0.0163s) ========
2133== 20110819232908 TasksAddTags: migrating =====================================
2134-- add_column(:tasks, :tags, :text)
2135 -> 0.0024s
2136== 20110819232908 TasksAddTags: migrated (0.0025s) ============================
2138== 20110911204538 CacheOneNumberForSharedBuildsTasksSequence: migrating =======
2139-- execute("ALTER SEQUENCE shared_builds_tasks_seq CACHE 1 NO MAXVALUE NO CYCLE")
2140 -> 0.0018s
2141== 20110911204538 CacheOneNumberForSharedBuildsTasksSequence: migrated (0.0018s)
2143== 20111107134436 RenameTasksToJobs: migrating ================================
2144-- rename_table(:tasks, :jobs)
2145 -> 0.0049s
2146-- execute("UPDATE jobs SET type = 'Job::Test' WHERE type = 'Task::Test'")
2147 -> 0.0007s
2148-- execute("UPDATE jobs SET type = 'Job::Configure' WHERE type = 'Task::Configure'")
2149 -> 0.0038s
2150== 20111107134436 RenameTasksToJobs: migrated (0.0096s) =======================
2152== 20111107134437 CreateArtifacts: migrating ==================================
2153-- create_table(:artifacts, {:id=>:integer})
2154 -> 0.0065s
2155-- execute("UPDATE artifacts SET job_id = id")
2156 -> 0.0005s
2157-- execute("select setval('artifacts_id_seq', (select max(id) + 1 from artifacts));")
2158 -> 0.0005s
2159-- add_index(:artifacts, [:type, :job_id])
2160 -> 0.0025s
2161== 20111107134437 CreateArtifacts: migrated (0.0103s) =========================
2163== 20111107134438 CreateWorkers: migrating ====================================
2164-- create_table(:workers, {:id=>:integer})
2165 -> 0.0059s
2166-- add_index(:workers, [:name, :host])
2167 -> 0.0022s
2168== 20111107134438 CreateWorkers: migrated (0.0083s) ===========================
2170== 20111107134439 JobsAddRetries: migrating ===================================
2171-- change_table(:jobs)
2172 -> 0.0014s
2173== 20111107134439 JobsAddRetries: migrated (0.0014s) ==========================
2175== 20111107134440 RemoveRailsAdmin: migrating =================================
2176-- drop_table(:rails_admin_histories)
2177 -> 0.0013s
2178== 20111107134440 RemoveRailsAdmin: migrated (0.0014s) ========================
2180== 20111128235043 AddIndexesToJobs: migrating =================================
2181-- add_index(:jobs, [:queue, :state])
2182 -> 0.0030s
2183== 20111128235043 AddIndexesToJobs: migrated (0.0031s) ========================
2185== 20111129014329 AddRepositoryIdIndexToJobs: migrating =======================
2186-- add_index(:jobs, :repository_id)
2187 -> 0.0027s
2188== 20111129014329 AddRepositoryIdIndexToJobs: migrated (0.0028s) ==============
2190== 20111129022625 AddOwnerAndTypeIndexToJobs: migrating =======================
2191-- add_index(:jobs, [:type, :owner_id, :owner_type])
2192 -> 0.0029s
2193== 20111129022625 AddOwnerAndTypeIndexToJobs: migrated (0.0030s) ==============
2195== 20111201113500 WorkersAddPayloadAndLastError: migrating ====================
2196-- change_table(:workers)
2197 -> 0.0054s
2198== 20111201113500 WorkersAddPayloadAndLastError: migrated (0.0055s) ===========
2200== 20111203002341 RepositoriesAddDescriptionAndLastLanguage: migrating ========
2201-- change_table(:repositories)
2202 -> 0.0013s
2203-- change_table(:builds)
2204 -> 0.0006s
2205== 20111203002341 RepositoriesAddDescriptionAndLastLanguage: migrated (0.0019s)
2207== 20111203221720 BuildsAddArchivedAt: migrating ==============================
2208-- change_table(:builds)
2209 -> 0.0007s
2210== 20111203221720 BuildsAddArchivedAt: migrated (0.0008s) =====================
2212== 20111207093700 MimicProductionDb: migrating ================================
2213-- column_exists?(:users, :oauth2_uid, :integer)
2214 -> 0.0023s
2215-- column_exists?(:users, :oauth2_token, :string)
2216 -> 0.0015s
2217-- column_exists?(:repositories, :user_id, :integer)
2218 -> 0.0020s
2219== 20111207093700 MimicProductionDb: migrated (0.0059s) =======================
2221== 20111212103859 BuildsAddDuration: migrating ================================
2222-- change_table(:builds)
2223 -> 0.0010s
2224== 20111212103859 BuildsAddDuration: migrated (0.0010s) =======================
2226== 20111212112411 RepositoriesAddLastBuildDuration: migrating =================
2227-- change_table(:repositories)
2228 -> 0.0009s
2229== 20111212112411 RepositoriesAddLastBuildDuration: migrated (0.0010s) ========
2231== 20111214173922 CreateSslKeys: migrating ====================================
2232-- create_table(:ssl_keys, {:id=>:integer})
2233 -> 0.0065s
2234-- add_index("ssl_keys", ["repository_id"], {:name=>"index_ssl_key_on_repository_id"})
2235 -> 0.0025s
2236== 20111214173922 CreateSslKeys: migrated (0.0093s) ===========================
2238== 20120114125404 AddAllowFailureToJobs: migrating ============================
2239-- add_column(:jobs, :allow_failure, :boolean, {:default=>false})
2240 -> 0.0021s
2241== 20120114125404 AddAllowFailureToJobs: migrated (0.0022s) ===================
2243== 20120216133223 AddPullRequestFieldsToRequest: migrating ====================
2244-- add_column(:requests, :event_type, :string)
2245 -> 0.0031s
2246-- add_column(:requests, :comments_url, :string)
2247 -> 0.0004s
2248-- add_column(:requests, :base_commit, :string)
2249 -> 0.0004s
2250-- add_column(:requests, :head_commit, :string)
2251 -> 0.0004s
2252== 20120216133223 AddPullRequestFieldsToRequest: migrated (0.0047s) ===========
2254== 20120222082522 AddGravatarIdToUsers: migrating =============================
2255-- add_column(:users, :gravatar_id, :string)
2256 -> 0.0006s
2257== 20120222082522 AddGravatarIdToUsers: migrated (0.0006s) ====================
2259== 20120301131209 OrganizationsCreate: migrating ==============================
2260-- create_table(:organizations, {:id=>:integer})
2261 -> 0.0055s
2262== 20120301131209 OrganizationsCreate: migrated (0.0056s) =====================
2264== 20120304000502 JobsRenameOwnerToSource: migrating ==========================
2265-- change_table(:jobs)
2266 -> 0.0058s
2267== 20120304000502 JobsRenameOwnerToSource: migrated (0.0058s) =================
2269== 20120304000503 RepositoriesAddOwner: migrating =============================
2270-- change_table(:repositories)
2271 -> 0.0011s
2272== 20120304000503 RepositoriesAddOwner: migrated (0.0012s) ====================
2274== 20120304000504 BuildsAddOwner: migrating ===================================
2275-- change_table(:builds)
2276 -> 0.0010s
2277== 20120304000504 BuildsAddOwner: migrated (0.0011s) ==========================
2279== 20120304000505 JobsAddOwner: migrating =====================================
2280-- change_table(:jobs)
2281 -> 0.0011s
2282== 20120304000505 JobsAddOwner: migrated (0.0011s) ============================
2284== 20120304000506 RequestsAddOwner: migrating =================================
2285-- change_table(:requests)
2286 -> 0.0010s
2287== 20120304000506 RequestsAddOwner: migrated (0.0010s) ========================
2289== 20120311234933 AddLocaleToUser: migrating ==================================
2290-- add_column(:users, :locale, :string)
2291 -> 0.0006s
2292== 20120311234933 AddLocaleToUser: migrated (0.0006s) =========================
2294== 20120316123726 CreateMemberships: migrating ================================
2295-- create_table(:memberships, {:id=>:integer})
2296 -> 0.0034s
2297== 20120316123726 CreateMemberships: migrated (0.0034s) =======================
2299== 20120319170001 RepositoriesAddPrivate: migrating ===========================
2300-- change_table(:repositories)
2301 -> 0.0012s
2302== 20120319170001 RepositoriesAddPrivate: migrated (0.0012s) ==================
2304== 20120324104051 CreateUrls: migrating =======================================
2305-- create_table(:urls, {:id=>:integer})
2306 -> 0.0056s
2307== 20120324104051 CreateUrls: migrated (0.0057s) ==============================
2309== 20120505165100 CopyStatusToResult: migrating ===============================
2310-- add_column(:builds, :result, :integer)
2311 -> 0.0008s
2312-- add_column(:jobs, :result, :integer)
2313 -> 0.0004s
2314-- add_column(:repositories, :last_build_result, :integer)
2315 -> 0.0004s
2316Executing: UPDATE builds SET result = status;
2317Executing: UPDATE jobs SET result = status;
2318Executing: UPDATE repositories SET last_build_result = last_build_status;
2319== 20120505165100 CopyStatusToResult: migrated (0.0029s) ======================
2321== 20120511171900 RequestsAddIndexOnHeadCommit: migrating =====================
2322-- add_index(:requests, :head_commit)
2323 -> 0.0025s
2324== 20120511171900 RequestsAddIndexOnHeadCommit: migrated (0.0025s) ============
2326== 20120521174400 CreatePermissions: migrating ================================
2327-- create_table(:permissions, {:id=>:integer})
2328 -> 0.0140s
2329-- add_index(:permissions, :user_id)
2330 -> 0.0024s
2331-- add_index(:permissions, :repository_id)
2332 -> 0.0025s
2333== 20120521174400 CreatePermissions: migrated (0.0190s) =======================
2335== 20120527235800 BuildsAddPreviousResult: migrating ==========================
2336-- change_table(:builds)
2337 -> 0.0009s
2338== 20120527235800 BuildsAddPreviousResult: migrated (0.0009s) =================
2340== 20120702111126 CreateSubscriptions: migrating ==============================
2341-- create_table(:subscriptions, {:id=>:integer})
2342 -> 0.0066s
2343== 20120702111126 CreateSubscriptions: migrated (0.0067s) =====================
2345== 20120703114226 AddBillingEmailCreditCardDataToSubscriptions: migrating =====
2346-- change_table(:subscriptions)
2347 -> 0.0030s
2348== 20120703114226 AddBillingEmailCreditCardDataToSubscriptions: migrated (0.0031s)
2350== 20120713140816 AddSyncInfoToUser: migrating ================================
2351-- add_column(:users, :in_sync, :boolean)
2352 -> 0.0029s
2353-- add_column(:users, :synced_at, :timestamp)
2354 -> 0.0016s
2355== 20120713140816 AddSyncInfoToUser: migrated (0.0052s) =======================
2357== 20120713153215 RenameInSyncToIsSyncing: migrating ==========================
2358-- rename_column(:users, :in_sync, :is_syncing)
2359 -> 0.0081s
2360== 20120713153215 RenameInSyncToIsSyncing: migrated (0.0082s) =================
2362== 20120725005300 AddQueueToWorkers: migrating ================================
2363-- add_column(:workers, :queue, :string)
2364 -> 0.0008s
2365== 20120725005300 AddQueueToWorkers: migrated (0.0008s) =======================
2367== 20120727151900 AddJobsIndexOnStateOwnerTypeOwnerId: migrating ==============
2368-- add_index(:jobs, ["state", "owner_id", "owner_type"], {:name=>"index_jobs_on_state_owner_type_owner_id"})
2369 -> 0.0031s
2370== 20120727151900 AddJobsIndexOnStateOwnerTypeOwnerId: migrated (0.0031s) =====
2372== 20120731005301 AddQueuedAtToJobs: migrating ================================
2373-- add_column(:jobs, :queued_at, :timestamp, {:precision=>nil})
2374 -> 0.0009s
2375== 20120731005301 AddQueuedAtToJobs: migrated (0.0009s) =======================
2377== 20120731074000 AddAmountToPlans: migrating =================================
2378-- change_table(:plans)
2379 -> 0.0011s
2380== 20120731074000 AddAmountToPlans: migrated (0.0012s) ========================
2382== 20120802001001 AddPushAndPullToPermissions: migrating ======================
2383-- add_column(:permissions, :push, :boolean, {:default=>false})
2384 -> 0.0015s
2385-- add_column(:permissions, :pull, :boolean, {:default=>false})
2386 -> 0.0012s
2387-- change_column_default(:permissions, :admin, false)
2388 -> 0.0039s
2389== 20120802001001 AddPushAndPullToPermissions: migrated (0.0067s) =============
2391== 20120803164000 CreateInvoices: migrating ===================================
2392-- create_table(:invoices, {:id=>:integer})
2393 -> 0.0100s
2394== 20120803164000 CreateInvoices: migrated (0.0101s) ==========================
2396== 20120803182300 AddInvoiceIdToInvoices: migrating ===========================
2397-- change_table(:invoices)
2398 -> 0.0008s
2399== 20120803182300 AddInvoiceIdToInvoices: migrated (0.0008s) ==================
2401== 20120804122700 AddStripeInvoiceIdToInvoices: migrating =====================
2402-- change_table(:invoices)
2403 -> 0.0007s
2404-- add_index(:invoices, :stripe_id)
2405 -> 0.0025s
2406== 20120804122700 AddStripeInvoiceIdToInvoices: migrated (0.0033s) ============
2408== 20120806120400 AddPlanToSubscriptions: migrating ===========================
2409-- change_table(:subscriptions)
2410 -> 0.0008s
2411== 20120806120400 AddPlanToSubscriptions: migrated (0.0008s) ==================
2413== 20120820164000 RenamePlanOnSubscriptions: migrating ========================
2414-- change_table(:subscriptions)
2415 -> 0.0014s
2416== 20120820164000 RenamePlanOnSubscriptions: migrated (0.0015s) ===============
2418== 20120905093300 CreateStripeEvents: migrating ===============================
2419-- create_table(:stripe_events, {:id=>:integer})
2420 -> 0.0058s
2421-- add_index(:stripe_events, :event_type)
2422 -> 0.0025s
2423-- add_index(:stripe_events, :date)
2424 -> 0.0026s
2425== 20120905093300 CreateStripeEvents: migrated (0.0111s) ======================
2427== 20120905171300 AddEventIdToStripeEvents: migrating =========================
2428-- change_table(:stripe_events)
2429 -> 0.0008s
2430-- add_index(:stripe_events, :event_id)
2431 -> 0.0020s
2432== 20120905171300 AddEventIdToStripeEvents: migrated (0.0029s) ================
2434== 20120911160000 AddBuildsIndexOnRepositoryIdAndState: migrating =============
2435-- remove_index("builds", nil, {:column=>"repository_id", :name=>"index_builds_on_repository_id"})
2436 -> 0.0017s
2437-- add_index("builds", ["repository_id", "state"])
2438 -> 0.0023s
2439== 20120911160000 AddBuildsIndexOnRepositoryIdAndState: migrated (0.0050s) ====
2441== 20120911230000 ArtifactsAddAggregatedAt: migrating =========================
2442-- add_column(:artifacts, :aggregated_at, :timestamp, {:precision=>nil})
2443 -> 0.0007s
2444== 20120911230000 ArtifactsAddAggregatedAt: migrated (0.0007s) ================
2446== 20120911230001 AddArtifactParts: migrating =================================
2447-- create_table(:artifact_parts, {:id=>:integer})
2448 -> 0.0056s
2449-- add_index(:artifact_parts, [:artifact_id, :number])
2450 -> 0.0025s
2451== 20120911230001 AddArtifactParts: migrated (0.0082s) ========================
2453== 20120913143800 AddSubscriptionsCoupon: migrating ===========================
2454-- change_table(:subscriptions)
2455 -> 0.0008s
2456== 20120913143800 AddSubscriptionsCoupon: migrated (0.0009s) ==================
2458== 20120915012000 BuildsAddIndexOnFinishedAt: migrating =======================
2459-- add_index("builds", "finished_at")
2460 -> 0.0025s
2461== 20120915012000 BuildsAddIndexOnFinishedAt: migrated (0.0026s) ==============
2463== 20120915012001 CommitsAddIndexOnBranch: migrating ==========================
2464-- add_index("commits", "branch")
2465 -> 0.0025s
2466== 20120915012001 CommitsAddIndexOnBranch: migrated (0.0025s) =================
2468== 20120915150000 JobsAddIndexOnCreatedAt: migrating ==========================
2469-- add_index("jobs", "created_at")
2470 -> 0.0024s
2471== 20120915150000 JobsAddIndexOnCreatedAt: migrated (0.0024s) =================
2473== 20121015002500 CreateEvents: migrating =====================================
2474-- create_table(:events, {:id=>:integer})
2475 -> 0.0051s
2476== 20121015002500 CreateEvents: migrated (0.0051s) ============================
2478== 20121015002501 RequestsAddResultAndMessage: migrating ======================
2479-- add_column(:requests, :result, :string)
2480 -> 0.0007s
2481-- add_column(:requests, :message, :string)
2482 -> 0.0004s
2483== 20121015002501 RequestsAddResultAndMessage: migrated (0.0012s) =============
2485== 20121017040100 CreateBroadcasts: migrating =================================
2486-- create_table(:broadcasts, {:id=>:integer})
2487 -> 0.0051s
2488== 20121017040100 CreateBroadcasts: migrated (0.0052s) ========================
2490== 20121017040200 EventsChangeDataToText: migrating ===========================
2491-- change_column(:events, :data, :text)
2492 -> 0.0007s
2493== 20121017040200 EventsChangeDataToText: migrated (0.0008s) ==================
2495== 20121018201301 AddEventTypeToBuilds: migrating =============================
2496-- add_column(:builds, :event_type, :string)
2497 -> 0.0008s
2498== 20121018201301 AddEventTypeToBuilds: migrated (0.0008s) ====================
2500== 20121018203728 UpdateEventTypeOnBuilds: migrating ==========================
2501-- execute(" UPDATE builds\n SET event_type = requests.event_type\n FROM requests\n WHERE builds.request_id = requests.id\n")
2502 -> 0.0009s
2503== 20121018203728 UpdateEventTypeOnBuilds: migrated (0.0010s) =================
2505== 20121018210156 AddIndexOnRepositoryIdAndEventTypeToBuilds: migrating =======
2506-- add_index(:builds, [:repository_id, :event_type])
2507 -> 0.0027s
2508== 20121018210156 AddIndexOnRepositoryIdAndEventTypeToBuilds: migrated (0.0027s)
2510== 20121125122700 RepositoriesAddLastBuildState: migrating ====================
2511-- add_column(:repositories, :last_build_state, :string)
2512 -> 0.0007s
2513== 20121125122700 RepositoriesAddLastBuildState: migrated (0.0007s) ===========
2515== 20121125122701 BuildsAddPreviousState: migrating ===========================
2516-- add_column(:builds, :previous_state, :string)
2517 -> 0.0007s
2518== 20121125122701 BuildsAddPreviousState: migrated (0.0007s) ==================
2520== 20121222125200 ArtifactPartsAddFinal: migrating ============================
2521-- add_column(:artifact_parts, :final, :boolean)
2522 -> 0.0023s
2523-- add_column(:artifact_parts, :created_at, :timestamp)
2524 -> 0.0016s
2525== 20121222125200 ArtifactPartsAddFinal: migrated (0.0042s) ===================
2527== 20121222125300 ArtifactPartsChangeContentToText: migrating =================
2528-- change_column(:artifact_parts, :content, :text)
2529 -> 0.0022s
2530== 20121222125300 ArtifactPartsChangeContentToText: migrated (0.0024s) ========
2532== 20121222140200 ArtifactPartsAddIndexOnArtifactId: migrating ================
2533-- add_index(:artifact_parts, :artifact_id)
2534 -> 0.0040s
2535== 20121222140200 ArtifactPartsAddIndexOnArtifactId: migrated (0.0042s) =======
2537== 20121223162300 ArtifactPartsRemoveIndexOnArtifactId: migrating =============
2538-- remove_index(:artifact_parts, :artifact_id, {:name=>"index_artifact_parts_on_artifact_id"})
2539 -> 0.0053s
2540== 20121223162300 ArtifactPartsRemoveIndexOnArtifactId: migrated (0.0080s) ====
2542== 20130107165057 AddGithubScopesToUser: migrating ============================
2543-- add_column(:users, :github_scopes, :text)
2544 -> 0.0020s
2545== 20130107165057 AddGithubScopesToUser: migrated (0.0022s) ===================
2547== 20130115125836 AddIndexOnLastSeenAtToWorkers: migrating ====================
2548-- add_index(:workers, :last_seen_at)
2549 -> 0.0040s
2550== 20130115125836 AddIndexOnLastSeenAtToWorkers: migrated (0.0042s) ===========
2552== 20130115145728 CacheFullNameInWorkers: migrating ===========================
2553-- add_column(:workers, :full_name, :string)
2554 -> 0.0022s
2555-- add_index(:workers, :full_name)
2556 -> 0.0032s
2557== 20130115145728 CacheFullNameInWorkers: migrated (0.0057s) ==================
2559== 20130125002600 ArtifactsAddArchivedAt: migrating ===========================
2560-- add_column(:artifacts, :archived_at, :timestamp, {:precision=>nil})
2561 -> 0.0022s
2562-- add_index(:artifacts, :archived_at)
2563 -> 0.0032s
2564== 20130125002600 ArtifactsAddArchivedAt: migrated (0.0057s) ==================
2566== 20130125171100 ArtifactsAddArchivingAndVerified: migrating =================
2567-- add_column(:artifacts, :archiving, :boolean)
2568 -> 0.0022s
2569-- add_column(:artifacts, :archive_verified, :boolean)
2570 -> 0.0013s
2571-- add_index(:artifacts, :archiving)
2572 -> 0.0032s
2573-- add_index(:artifacts, :archive_verified)
2574 -> 0.0025s
2575== 20130125171100 ArtifactsAddArchivingAndVerified: migrated (0.0098s) ========
2577== 20130129142703 CreateEmails: migrating =====================================
2578-- create_table(:emails, {:id=>:integer})
2579 -> 0.0052s
2580-- add_index(:emails, :user_id)
2581 -> 0.0022s
2582-- add_index(:emails, :email)
2583 -> 0.0022s
2584== 20130129142703 CreateEmails: migrated (0.0097s) ============================
2586== 20130208135800 RenameArtifacts: migrating ==================================
2587-- rename_table(:artifacts, :artifacts_backup)
2588 -> 0.0060s
2589-- rename_table(:artifact_parts, :artifact_parts_backup)
2590 -> 0.0035s
2591== 20130208135800 RenameArtifacts: migrated (0.0096s) =========================
2593== 20130208135801 DropArtifacts: migrating ====================================
2594-- drop_table(:artifacts_backup)
2595 -> 0.0041s
2596-- drop_table(:artifact_parts_backup)
2597 -> 0.0008s
2598== 20130208135801 DropArtifacts: migrated (0.0050s) ===========================
2600== 20130306154311 CreatePgcryptoExtension: migrating ==========================
2601-- execute("create extension if not exists pgcrypto")
2602 -> 0.0061s
2603== 20130306154311 CreatePgcryptoExtension: migrated (0.0062s) =================
2605== 20130311211101 AddPullRequestTitleToBuilds: migrating ======================
2606-- add_column(:builds, :pull_request_title, :text)
2607 -> 0.0014s
2608== 20130311211101 AddPullRequestTitleToBuilds: migrated (0.0014s) =============
2610== 20130327100801 AddPullRequestNumberToBuilds: migrating =====================
2611-- add_column(:builds, :pull_request_number, :integer)
2612 -> 0.0012s
2613== 20130327100801 AddPullRequestNumberToBuilds: migrated (0.0012s) ============
2615== 20130418101437 AddIndexToBuildsRequestId: migrating ========================
2616-- execute("CREATE INDEX CONCURRENTLY index_builds_on_request_id ON builds(request_id)")
2617 -> 0.0266s
2618== 20130418101437 AddIndexToBuildsRequestId: migrated (0.0266s) ===============
2620== 20130418103306 AddIndexToJobsOnOwnerIdOwnerTypeAndState: migrating =========
2621-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_owner_id_and_owner_type_and_state ON jobs(owner_id, owner_type, state)")
2622 -> 0.0849s
2623== 20130418103306 AddIndexToJobsOnOwnerIdOwnerTypeAndState: migrated (0.0850s)
2625== 20130505023259 AddMoreIndexesToBuilds: migrating ===========================
2626-- execute(" CREATE INDEX CONCURRENTLY index_builds_on_repository_id_and_event_type_and_state_and_branch\n ON builds(repository_id, event_type, state, branch);\n")
2627 -> 0.0417s
2628== 20130505023259 AddMoreIndexesToBuilds: migrated (0.0418s) ==================
2630== 20130521115725 AddIndexOnBuildState: migrating =============================
2631-- execute(" CREATE INDEX CONCURRENTLY index_builds_on_state\n ON builds(state);\n")
2632 -> 0.0226s
2633== 20130521115725 AddIndexOnBuildState: migrated (0.0226s) ====================
2635== 20130521133050 UpdateFinishedJobs: migrating ===============================
2636-- execute("UPDATE jobs SET state = 'passed' WHERE state = 'finished' AND result = 0 AND type = 'Job::Test'")
2637 -> 0.0011s
2638-- execute("UPDATE jobs SET state = 'failed' WHERE state = 'finished' AND result = 1 AND type = 'Job::Test'")
2639 -> 0.0004s
2640-- execute("UPDATE jobs SET state = 'errored' WHERE state = 'finished' AND result IS NULL AND type = 'Job::Test'")
2641 -> 0.0003s
2642-- execute("SELECT COUNT(*) FROM jobs WHERE state = 'finished' AND type = 'Job::Test'")
2643 -> 0.0004s
2644== 20130521133050 UpdateFinishedJobs: migrated (0.0023s) ======================
2646== 20130521134224 UpdateFinishedBuilds: migrating =============================
2647-- execute("UPDATE builds SET state = 'passed' WHERE state = 'finished' AND result = 0")
2648 -> 0.0010s
2649-- execute("UPDATE builds SET state = 'failed' WHERE state = 'finished' AND result = 1")
2650 -> 0.0004s
2651-- execute("UPDATE builds SET state = 'errored' WHERE state = 'finished' AND result IS NULL")
2652 -> 0.0004s
2653-- execute("SELECT COUNT(*) FROM builds WHERE state = 'finished'")
2654 -> 0.0004s
2655== 20130521134224 UpdateFinishedBuilds: migrated (0.0023s) ====================
2657== 20130521134800 RemoveUnusedBuildColumns: migrating =========================
2658-- remove_column(:builds, :result)
2659 -> 0.0007s
2660-- remove_column(:builds, :status)
2661 -> 0.0004s
2662-- remove_column(:builds, :previous_result)
2663 -> 0.0004s
2664-- remove_column(:builds, :agent)
2665 -> 0.0004s
2666-- remove_column(:builds, :language)
2667 -> 0.0003s
2668-- remove_column(:builds, :archived_at)
2669 -> 0.0004s
2670== 20130521134800 RemoveUnusedBuildColumns: migrated (0.0026s) ================
2672== 20130521141357 RemoveUnusedJobColumns: migrating ===========================
2673-- remove_column(:jobs, :status)
2674 -> 0.0006s
2675-- remove_column(:jobs, :job_id)
2676 -> 0.0003s
2677-- remove_column(:jobs, :retries)
2678 -> 0.0004s
2679== 20130521141357 RemoveUnusedJobColumns: migrated (0.0015s) ==================
2681== 20130618084205 AddCoupons: migrating =======================================
2682-- create_table(:coupons, {:id=>:integer})
2683 -> 0.0071s
2684== 20130618084205 AddCoupons: migrated (0.0071s) ==============================
2686== 20130629122945 AddGithubIdToUsers: migrating ===============================
2687-- add_column(:repositories, :github_id, :integer)
2688 -> 0.0008s
2689-- add_index(:repositories, :github_id)
2690 -> 0.0025s
2691== 20130629122945 AddGithubIdToUsers: migrated (0.0034s) ======================
2693== 20130629133531 AddDefaultBranchToRepositories: migrating ===================
2694-- add_column(:repositories, :default_branch, :string)
2695 -> 0.0007s
2696== 20130629133531 AddDefaultBranchToRepositories: migrated (0.0008s) ==========
2698== 20130629174449 AddGithubLanguageToRepositories: migrating ==================
2699-- add_column(:repositories, :github_language, :string)
2700 -> 0.0007s
2701== 20130629174449 AddGithubLanguageToRepositories: migrated (0.0008s) =========
2703== 20130701175200 AddContactIdToSubscriptions: migrating ======================
2704-- change_table(:subscriptions)
2705 -> 0.0007s
2706== 20130701175200 AddContactIdToSubscriptions: migrated (0.0008s) =============
2708== 20130702123456 RemoveUnusedRepositoryColumns: migrating ====================
2709-- remove_column(:repositories, :last_duration)
2710 -> 0.0010s
2711-- remove_column(:repositories, :last_build_status)
2712 -> 0.0005s
2713-- remove_column(:repositories, :last_build_result)
2714 -> 0.0006s
2715-- remove_column(:repositories, :last_build_language)
2716 -> 0.0005s
2717== 20130702123456 RemoveUnusedRepositoryColumns: migrated (0.0028s) ===========
2719== 20130702144325 AddUniqueIndexOnUsersGithubIdAndRemoveUniqueIndexOnUsersLogin: migrating
2720-- execute("DROP INDEX index_users_on_login")
2721 -> 0.0015s
2722-- execute("CREATE INDEX CONCURRENTLY index_users_on_login ON users(login)")
2723 -> 0.0045s
2724-- execute("DROP INDEX index_users_on_github_id")
2725 -> 0.0013s
2726-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_users_on_github_id ON users(github_id)")
2727 -> 0.0043s
2728== 20130702144325 AddUniqueIndexOnUsersGithubIdAndRemoveUniqueIndexOnUsersLogin: migrated (0.0117s)
2730== 20130705123456 AddExtraColumnsToOrganizations: migrating ===================
2731-- add_column(:organizations, :avatar_url, :string)
2732 -> 0.0022s
2733-- add_column(:organizations, :location, :string)
2734 -> 0.0020s
2735-- add_column(:organizations, :email, :string)
2736 -> 0.0015s
2737-- add_column(:organizations, :company, :string)
2738 -> 0.0011s
2739-- add_column(:organizations, :homepage, :string)
2740 -> 0.0013s
2741== 20130705123456 AddExtraColumnsToOrganizations: migrated (0.0090s) ==========
2743== 20130707164854 AddIndexOnGithubIdToOrganizations: migrating ================
2744-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_organizations_on_github_id ON organizations(github_id)")
2745 -> 0.0082s
2746== 20130707164854 AddIndexOnGithubIdToOrganizations: migrated (0.0085s) =======
2748== 20130709185200 CreateAnnotations: migrating ================================
2749-- create_table(:annotations, {:id=>:integer})
2750 -> 0.0078s
2751== 20130709185200 CreateAnnotations: migrated (0.0079s) =======================
2753== 20130709233500 CreateAnnotationProviders: migrating ========================
2754-- create_table(:annotation_providers, {:id=>:integer})
2755 -> 0.0075s
2756== 20130709233500 CreateAnnotationProviders: migrated (0.0076s) ===============
2758== 20130710000745 AddAnnotationProviderIdToAnnotations: migrating =============
2759-- add_column(:annotations, :annotation_provider_id, :integer, {:null=>false})
2760 -> 0.0013s
2761== 20130710000745 AddAnnotationProviderIdToAnnotations: migrated (0.0014s) ====
2763== 20130726101124 AddCanceledAtToJobsAndBuilds: migrating =====================
2764-- add_column(:builds, :canceled_at, :timestamp, {:precision=>nil})
2765 -> 0.0013s
2766-- add_column(:jobs, :canceled_at, :timestamp, {:precision=>nil})
2767 -> 0.0007s
2768== 20130726101124 AddCanceledAtToJobsAndBuilds: migrated (0.0022s) ============
2770== 20130901183019 AddIndexOnRepositoryGithubId: migrating =====================
2771-- execute("DROP INDEX index_repositories_on_github_id")
2772 -> 0.0014s
2773-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_github_id ON repositories(github_id)")
2774 -> 0.0042s
2775== 20130901183019 AddIndexOnRepositoryGithubId: migrated (0.0059s) ============
2777== 20130909203321 AddCachedMatrixIdsToBuilds: migrating =======================
2778-- execute("ALTER TABLE builds ADD COLUMN cached_matrix_ids integer[]")
2779 -> 0.0010s
2780== 20130909203321 AddCachedMatrixIdsToBuilds: migrated (0.0011s) ==============
2782== 20130910184823 CreateIndexOnBuildsIdDescAndRepositoryIdAndEventType: migrating
2783-- execute("CREATE INDEX CONCURRENTLY index_builds_on_id_repository_id_and_event_type_desc ON builds (id DESC, repository_id, event_type);")
2784 -> 0.0051s
2785== 20130910184823 CreateIndexOnBuildsIdDescAndRepositoryIdAndEventType: migrated (0.0052s)
2787== 20130916101056 AddUniqueIndexOnRepositoryGithubId: migrating ===============
2788-- execute("DROP INDEX index_repositories_on_github_id")
2789 -> 0.0015s
2790-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_repositories_on_github_id ON repositories(github_id)")
2791 -> 0.0042s
2792== 20130916101056 AddUniqueIndexOnRepositoryGithubId: migrated (0.0058s) ======
2794== 20130920135744 AddSettingsToRepositories: migrating ========================
2795-- add_column(:repositories, :settings, :json)
2796 -> 0.0008s
2797== 20130920135744 AddSettingsToRepositories: migrated (0.0009s) ===============
2799== 20131104101056 RemoveWorkersTableAndIndexes: migrating =====================
2800-- drop_table(:workers)
2801 -> 0.0012s
2802== 20131104101056 RemoveWorkersTableAndIndexes: migrated (0.0012s) ============
2804== 20131109101056 RemoveEventsTable: migrating ================================
2805-- drop_table(:events)
2806 -> 0.0010s
2807== 20131109101056 RemoveEventsTable: migrated (0.0010s) =======================
2809== 20140120225125 RemoveAnnotationImageInfo: migrating ========================
2810-- remove_column(:annotations, :image_url)
2811 -> 0.0007s
2812-- remove_column(:annotations, :image_alt)
2813 -> 0.0003s
2814== 20140120225125 RemoveAnnotationImageInfo: migrated (0.0011s) ===============
2816== 20140121003026 AddStatusToAnnotations: migrating ===========================
2817-- add_column(:annotations, :status, :string)
2818 -> 0.0007s
2819== 20140121003026 AddStatusToAnnotations: migrated (0.0007s) ==================
2821== 20140204220926 AddIndicesToRequests: migrating =============================
2822-- execute("CREATE INDEX CONCURRENTLY index_requests_on_repository_id ON requests(repository_id)")
2823 -> 0.0041s
2824-- execute("CREATE INDEX CONCURRENTLY index_requests_on_commit_id ON requests(commit_id)")
2825 -> 0.0038s
2826== 20140204220926 AddIndicesToRequests: migrated (0.0079s) ====================
2828== 20140210003014 AddIndicesToMemberships: migrating ==========================
2829-- execute("CREATE INDEX CONCURRENTLY index_memberships_on_user_id ON memberships(user_id)")
2830 -> 0.0045s
2831== 20140210003014 AddIndicesToMemberships: migrated (0.0045s) =================
2833== 20140210012509 RemoveUnusedIndices: migrating ==============================
2834-- execute("DROP INDEX CONCURRENTLY index_commits_on_commit")
2835 -> 0.0023s
2836-- execute("DROP INDEX CONCURRENTLY index_builds_on_state")
2837 -> 0.0022s
2838-- execute("DROP INDEX CONCURRENTLY index_commits_on_branch")
2839 -> 0.0023s
2840-- execute("DROP INDEX CONCURRENTLY index_users_on_github_oauth_token")
2841 -> 0.0021s
2842-- execute("DROP INDEX CONCURRENTLY index_builds_on_finished_at")
2843 -> 0.0023s
2844-- execute("DROP INDEX CONCURRENTLY index_jobs_on_queue_and_state")
2845 -> 0.0022s
2846-- execute("DROP INDEX CONCURRENTLY index_jobs_on_created_at")
2847 -> 0.0021s
2848== 20140210012509 RemoveUnusedIndices: migrated (0.0156s) =====================
2850== 20140612131826 AddRemovedInfoToLogs: migrating =============================
2851== 20140612131826 AddRemovedInfoToLogs: migrated (0.0007s) ====================
2853== 20140827121945 AddEducationFieldToUser: migrating ==========================
2854-- add_column(:users, :education, :boolean)
2855 -> 0.0007s
2856== 20140827121945 AddEducationFieldToUser: migrated (0.0007s) =================
2858== 20150121135400 JobsAddReceivedAt: migrating ================================
2859-- add_column(:jobs, :received_at, :timestamp, {:precision=>nil})
2860 -> 0.0008s
2861== 20150121135400 JobsAddReceivedAt: migrated (0.0009s) =======================
2863== 20150121135401 BuildsAddReceivedAt: migrating ==============================
2864-- add_column(:builds, :received_at, :timestamp, {:precision=>nil})
2865 -> 0.0010s
2866== 20150121135401 BuildsAddReceivedAt: migrated (0.0011s) =====================
2868== 20150204144312 AddIndexOnRepositoryIdToCommits: migrating ==================
2869-- execute("DROP INDEX IF EXISTS index_commits_on_repository_id")
2870 -> 0.0003s
2871-- execute("CREATE INDEX CONCURRENTLY index_commits_on_repository_id ON commits(repository_id)")
2872 -> 0.0047s
2873== 20150204144312 AddIndexOnRepositoryIdToCommits: migrated (0.0050s) =========
2875== 20150210170900 IndexRequestsOnCreatedAt: migrating =========================
2876-- execute("DROP INDEX IF EXISTS index_requests_on_created_at")
2877 -> 0.0003s
2878-- execute("CREATE INDEX CONCURRENTLY index_requests_on_created_at ON requests(created_at)")
2879 -> 0.0046s
2880== 20150210170900 IndexRequestsOnCreatedAt: migrated (0.0049s) ================
2882== 20150223125700 CreateBranches: migrating ===================================
2883-- create_table(:branches, {:id=>:integer})
2884 -> 0.0071s
2885-- add_index(:branches, [:repository_id, :name], {:unique=>true})
2886 -> 0.0103s
2887== 20150223125700 CreateBranches: migrated (0.0179s) ==========================
2889== 20150311020321 AddNextBuildNumberToRepository: migrating ===================
2890-- add_column(:repositories, :next_build_number, :integer)
2891 -> 0.0022s
2892== 20150311020321 AddNextBuildNumberToRepository: migrated (0.0024s) ==========
2894== 20150316020321 AddActiveIndexToRepository: migrating =======================
2895-- execute("DROP INDEX IF EXISTS index_repositories_on_active")
2896 -> 0.0009s
2897-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_active ON repositories(active)")
2898 -> 0.0044s
2899== 20150316020321 AddActiveIndexToRepository: migrated (0.0056s) ==============
2901== 20150316080321 AddOwnerTypeAndOwnerIdIndexesToBuilds: migrating ============
2902-- execute("DROP INDEX IF EXISTS index_builds_on_owner_type")
2903 -> 0.0009s
2904-- execute("DROP INDEX IF EXISTS index_builds_on_owner_id")
2905 -> 0.0003s
2906-- execute("CREATE INDEX CONCURRENTLY index_builds_on_owner_type ON builds(owner_type)")
2907 -> 0.0044s
2908-- execute("CREATE INDEX CONCURRENTLY index_builds_on_owner_id ON builds(owner_id)")
2909 -> 0.0042s
2910== 20150316080321 AddOwnerTypeAndOwnerIdIndexesToBuilds: migrated (0.0101s) ===
2912== 20150316100321 AddOwnerTypeAndOwnerIdIndexesToRepositories: migrating ======
2913-- execute("DROP INDEX IF EXISTS index_repositories_on_owner_type")
2914 -> 0.0011s
2915-- execute("DROP INDEX IF EXISTS index_repositories_on_owner_id")
2916 -> 0.0009s
2917-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_owner_type ON repositories(owner_type)")
2918 -> 0.0046s
2919-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_owner_id ON repositories(owner_id)")
2920 -> 0.0043s
2921== 20150316100321 AddOwnerTypeAndOwnerIdIndexesToRepositories: migrated (0.0114s)
2923== 20150317004600 AddSlugIndexToRepositories: migrating =======================
2924-- execute("CREATE EXTENSION IF NOT EXISTS pg_trgm")
2925 -> 0.0242s
2926-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_slug ON repositories USING gin((owner_name || '/' || name) gin_trgm_ops)")
2927 -> 0.0039s
2928== 20150317004600 AddSlugIndexToRepositories: migrated (0.0283s) ==============
2930== 20150317020321 AddTokenIndexToTokens: migrating ============================
2931-- execute("DROP INDEX IF EXISTS index_tokens_on_token")
2932 -> 0.0003s
2933-- execute("CREATE INDEX CONCURRENTLY index_tokens_on_token ON tokens(token)")
2934 -> 0.0047s
2935== 20150317020321 AddTokenIndexToTokens: migrated (0.0051s) ===================
2937== 20150317080321 AddLoginIndexToOrganizations: migrating =====================
2938-- execute("DROP INDEX IF EXISTS index_organizations_on_login")
2939 -> 0.0002s
2940-- execute("CREATE INDEX CONCURRENTLY index_organizations_on_login ON organizations(login)")
2941 -> 0.0040s
2942== 20150317080321 AddLoginIndexToOrganizations: migrated (0.0043s) ============
2944== 20150414001337 AddLowerCaseIndices: migrating ==============================
2945-- execute("DROP INDEX IF EXISTS index_organizations_on_lower_login")
2946 -> 0.0003s
2947-- execute("CREATE INDEX CONCURRENTLY index_organizations_on_lower_login ON organizations USING btree(lower(login))")
2948 -> 0.0038s
2949-- execute("DROP INDEX IF EXISTS index_users_on_lower_login")
2950 -> 0.0003s
2951-- execute("CREATE INDEX CONCURRENTLY index_users_on_lower_login ON users USING btree(lower(login))")
2952 -> 0.0040s
2953-- execute("DROP INDEX IF EXISTS index_repositories_on_lower_name")
2954 -> 0.0003s
2955-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_lower_name ON repositories USING btree(lower(name))")
2956 -> 0.0045s
2957-- execute("DROP INDEX IF EXISTS index_repositories_on_lower_owner_name")
2958 -> 0.0003s
2959-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_lower_owner_name ON repositories USING btree(lower(owner_name))")
2960 -> 0.0036s
2961== 20150414001337 AddLowerCaseIndices: migrated (0.0173s) =====================
2963== 20150528101600 RepositoriesAddIndexOwnerName: migrating ====================
2964-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_owner_name ON repositories(owner_name)")
2965 -> 0.0041s
2966== 20150528101600 RepositoriesAddIndexOwnerName: migrated (0.0041s) ===========
2968== 20150528101601 RepositoriesAddIndexName: migrating =========================
2969-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_name ON repositories(name)")
2970 -> 0.0044s
2971== 20150528101601 RepositoriesAddIndexName: migrated (0.0044s) ================
2973== 20150528101602 RepositoriesDropIndexOwnerNameName: migrating ===============
2974-- execute("DROP INDEX CONCURRENTLY index_repositories_on_owner_name_and_name")
2975 -> 0.0023s
2976== 20150528101602 RepositoriesDropIndexOwnerNameName: migrated (0.0024s) ======
2978== 20150528101603 BuildsAddIndexEventType: migrating ==========================
2979-- execute("CREATE INDEX CONCURRENTLY index_builds_on_event_type ON builds (event_type)")
2980 -> 0.0042s
2981== 20150528101603 BuildsAddIndexEventType: migrated (0.0043s) =================
2983== 20150528101604 BuildsAddIndexRepositoryId: migrating =======================
2984-- execute("CREATE INDEX CONCURRENTLY index_builds_on_repository_id ON builds (repository_id)")
2985 -> 0.0042s
2986== 20150528101604 BuildsAddIndexRepositoryId: migrated (0.0043s) ==============
2988== 20150528101605 BuildsAddIndexState: migrating ==============================
2989-- execute("CREATE INDEX CONCURRENTLY index_builds_on_state ON builds (state)")
2990 -> 0.0042s
2991== 20150528101605 BuildsAddIndexState: migrated (0.0043s) =====================
2993== 20150528101607 BuildsAddIndexBranch: migrating =============================
2994-- execute("CREATE INDEX CONCURRENTLY index_builds_on_branch ON builds (branch)")
2995 -> 0.0044s
2996== 20150528101607 BuildsAddIndexBranch: migrated (0.0045s) ====================
2998== 20150528101608 BuildsDropIndexRepositoryIdAndState: migrating ==============
2999-- execute("DROP INDEX CONCURRENTLY index_builds_on_repository_id_and_state")
3000 -> 0.0021s
3001== 20150528101608 BuildsDropIndexRepositoryIdAndState: migrated (0.0022s) =====
3003== 20150528101609 BuildsDropIndexRepositoryIdAndEventType: migrating ==========
3004-- execute("DROP INDEX CONCURRENTLY index_builds_on_repository_id_and_event_type")
3005 -> 0.0022s
3006== 20150528101609 BuildsDropIndexRepositoryIdAndEventType: migrated (0.0022s) =
3008== 20150528101610 BuildsDropIndexIdRepositoryIdAndEventTypeDesc: migrating ====
3009-- execute("DROP INDEX CONCURRENTLY index_builds_on_id_repository_id_and_event_type_desc")
3010 -> 0.0021s
3011== 20150528101610 BuildsDropIndexIdRepositoryIdAndEventTypeDesc: migrated (0.0022s)
3013== 20150528101611 BuildsDropIndexRepositoryIdAndEventTypeAndStateAndBranch: migrating
3014-- execute("DROP INDEX CONCURRENTLY index_builds_on_repository_id_and_event_type_and_state_and_bran")
3015 -> 0.0022s
3016== 20150528101611 BuildsDropIndexRepositoryIdAndEventTypeAndStateAndBranch: migrated (0.0022s)
3018== 20150609175200 AddCancelationColumnsToSubscriptions: migrating =============
3019-- change_table(:subscriptions)
3020 -> 0.0012s
3021== 20150609175200 AddCancelationColumnsToSubscriptions: migrated (0.0012s) ====
3023== 20150610143500 JobsAddIndexOwnerId: migrating ==============================
3024-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_owner_id ON jobs (owner_id)")
3025 -> 0.0044s
3026== 20150610143500 JobsAddIndexOwnerId: migrated (0.0045s) =====================
3028== 20150610143501 JobsAddIndexOwnerType: migrating ============================
3029-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_owner_type ON jobs (owner_type)")
3030 -> 0.0038s
3031== 20150610143501 JobsAddIndexOwnerType: migrated (0.0039s) ===================
3033== 20150610143502 JobsAddIndexSourceId: migrating =============================
3034-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_source_id ON jobs (source_id)")
3035 -> 0.0038s
3036== 20150610143502 JobsAddIndexSourceId: migrated (0.0038s) ====================
3038== 20150610143503 JobsAddIndexSourceType: migrating ===========================
3039-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_source_type ON jobs (source_type)")
3040 -> 0.0038s
3041== 20150610143503 JobsAddIndexSourceType: migrated (0.0038s) ==================
3043== 20150610143504 JobsAddIndexType: migrating =================================
3044-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_type ON jobs (type)")
3045 -> 0.0145s
3046== 20150610143504 JobsAddIndexType: migrated (0.0147s) ========================
3048== 20150610143505 JobsDropIndexOwnerIdAndOwnerTypeAndState: migrating =========
3049-- execute("DROP INDEX CONCURRENTLY index_jobs_on_owner_id_and_owner_type_and_state")
3050 -> 0.0034s
3051== 20150610143505 JobsDropIndexOwnerIdAndOwnerTypeAndState: migrated (0.0036s)
3053== 20150610143506 JobsDropIndexStateOwnerTypeOwnerId: migrating ===============
3054-- execute("DROP INDEX CONCURRENTLY index_jobs_on_state_owner_type_owner_id")
3055 -> 0.0033s
3056== 20150610143506 JobsDropIndexStateOwnerTypeOwnerId: migrated (0.0034s) ======
3058== 20150610143507 JobsDropIndexTypeAndSourceIdAndSourceType: migrating ========
3059-- index_exists?(:jobs, :index_jobs_on_type_and_owner_id_and_owner_type, {:name=>"index_jobs_on_index_jobs_on_type_and_owner_id_and_owner_type"})
3060 -> 0.0092s
3061== 20150610143507 JobsDropIndexTypeAndSourceIdAndSourceType: migrated (0.0095s)
3063== 20150610143508 JobsAddIndexState: migrating ================================
3064-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_state ON jobs (state)")
3065 -> 0.0046s
3066== 20150610143508 JobsAddIndexState: migrated (0.0047s) =======================
3068== 20150610143509 JobsAddIndexQueue: migrating ================================
3069-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_queue ON jobs (queue)")
3070 -> 0.0041s
3071== 20150610143509 JobsAddIndexQueue: migrated (0.0042s) =======================
3073== 20150610143510 TokensAddIndexUserId: migrating =============================
3074-- execute("CREATE INDEX CONCURRENTLY index_tokens_on_user_id ON tokens (user_id)")
3075 -> 0.0042s
3076== 20150610143510 TokensAddIndexUserId: migrated (0.0043s) ====================
3078== 20150615103059 AddStatusToSubscriptions: migrating =========================
3079-- add_column(:subscriptions, :status, :string)
3080 -> 0.0011s
3081== 20150615103059 AddStatusToSubscriptions: migrated (0.0012s) ================
3083== 20150629231300 ReposAddInvalidatedAt: migrating ============================
3084-- add_column(:repositories, :invalidated_at, :timestamp, {:precision=>nil})
3085 -> 0.0011s
3086== 20150629231300 ReposAddInvalidatedAt: migrated (0.0012s) ===================
3088== 20150923131400 BroadcastsAddCategory: migrating ============================
3089-- add_column(:broadcasts, :category, :string)
3090 -> 0.0011s
3091== 20150923131400 BroadcastsAddCategory: migrated (0.0012s) ===================
3093== 20151112153500 CreateStars: migrating ======================================
3094-- create_table(:stars, {:id=>:integer})
3095 -> 0.0046s
3096-- add_index(:stars, :user_id)
3097 -> 0.0025s
3098== 20151112153500 CreateStars: migrated (0.0072s) =============================
3100== 20151113111400 StarsAddIndexUserIdAndRepositoryId: migrating ===============
3101-- execute("CREATE UNIQUE INDEX index_stars_on_user_id_and_repository_id ON stars (user_id, repository_id)")
3102 -> 0.0028s
3103== 20151113111400 StarsAddIndexUserIdAndRepositoryId: migrated (0.0029s) ======
3105== 20151127153500 UsersAddIndexGithubOauthToken: migrating ====================
3106-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_users_on_github_oauth_token ON users (github_oauth_token)")
3107 -> 0.0039s
3108== 20151127153500 UsersAddIndexGithubOauthToken: migrated (0.0040s) ===========
3110== 20151127154200 AnnotationsAddIndexJobId: migrating =========================
3111-- execute("CREATE INDEX CONCURRENTLY index_annotations_on_job_id ON annotations (job_id)")
3112 -> 0.0040s
3113== 20151127154200 AnnotationsAddIndexJobId: migrated (0.0040s) ================
3115== 20151127154600 BroadcastsAddIndexRecipientIdAndRecipientType: migrating ====
3116-- execute("CREATE INDEX CONCURRENTLY index_broadcasts_on_recipient_id_and_recipient_type ON broadcasts (recipient_id, recipient_type)")
3117 -> 0.0039s
3118== 20151127154600 BroadcastsAddIndexRecipientIdAndRecipientType: migrated (0.0040s)
3120== 20151202122200 UsersAddFirstLoggedInAt: migrating ==========================
3121-- add_column(:users, :first_logged_in_at, :timestamp, {:precision=>nil})
3122 -> 0.0007s
3123== 20151202122200 UsersAddFirstLoggedInAt: migrated (0.0007s) =================
3125== 20160107120927 AddCronTable: migrating =====================================
3126-- create_table(:crons, {:id=>:integer})
3127 -> 0.0060s
3128== 20160107120927 AddCronTable: migrated (0.0060s) ============================
3130== 20160303165750 AddDebugOptionsToJobs: migrating ============================
3131-- add_column(:jobs, :debug_options, :text)
3132 -> 0.0007s
3133== 20160303165750 AddDebugOptionsToJobs: migrated (0.0008s) ===================
3135== 20160412113020 BuildsDropIndexOwnerType: migrating =========================
3136-- execute("DROP INDEX CONCURRENTLY index_builds_on_owner_type")
3137 -> 0.0025s
3138== 20160412113020 BuildsDropIndexOwnerType: migrated (0.0025s) ================
3140== 20160412113070 RepositoriesDropIndexLastBuildStartedAt: migrating ==========
3141-- execute("DROP INDEX CONCURRENTLY index_repositories_on_last_build_started_at")
3142 -> 0.0022s
3143== 20160412113070 RepositoriesDropIndexLastBuildStartedAt: migrated (0.0022s) =
3145== 20160412121405 JobsDropIndexType: migrating ================================
3146-- execute("DROP INDEX CONCURRENTLY index_jobs_on_type")
3147 -> 0.0021s
3148== 20160412121405 JobsDropIndexType: migrated (0.0022s) =======================
3150== 20160412123900 JobsDropIndexSourceType: migrating ==========================
3151-- execute("DROP INDEX CONCURRENTLY index_jobs_on_source_type")
3152 -> 0.0022s
3153== 20160412123900 JobsDropIndexSourceType: migrated (0.0022s) =================
3155== 20160414214442 JobsAddIndexQueuedAt: migrating =============================
3156-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_queued_at ON jobs (queued_at)")
3157 -> 0.0040s
3158== 20160414214442 JobsAddIndexQueuedAt: migrated (0.0041s) ====================
3160== 20160422104300 BuildsAddIndexNumber: migrating =============================
3161-- execute("CREATE INDEX CONCURRENTLY index_builds_on_number ON builds (number)")
3162 -> 0.0047s
3163== 20160422104300 BuildsAddIndexNumber: migrated (0.0047s) ====================
3165== 20160422121400 BuildsAddIndexRepositoryIdAndNumberAndEventType: migrating ==
3166-- execute("CREATE INDEX CONCURRENTLY index_builds_on_repository_id_and_number_and_event_type ON builds (repository_id, number, event_type)")
3167 -> 0.0043s
3168== 20160422121400 BuildsAddIndexRepositoryIdAndNumberAndEventType: migrated (0.0043s)
3170== 20160510142700 JobsAddIndexCreatedAt: migrating ============================
3171-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_created_at ON jobs (created_at)")
3172 -> 0.0040s
3173== 20160510142700 JobsAddIndexCreatedAt: migrated (0.0040s) ===================
3175== 20160510144200 BuildsAddPrivate: migrating =================================
3176-- change_table(:builds)
3177 -> 0.0008s
3178== 20160510144200 BuildsAddPrivate: migrated (0.0008s) ========================
3180== 20160510150300 JobsAddPrivate: migrating ===================================
3181-- change_table(:jobs)
3182 -> 0.0008s
3183== 20160510150300 JobsAddPrivate: migrated (0.0008s) ==========================
3185== 20160510150400 RequestsAddPrivate: migrating ===============================
3186-- change_table(:requests)
3187 -> 0.0009s
3188== 20160510150400 RequestsAddPrivate: migrated (0.0009s) ======================
3190== 20160513074300 AddCurrentBuildIdToRepositories: migrating ==================
3191-- add_column(:repositories, :current_build_id, :bigint)
3192 -> 0.0007s
3193-- execute("ALTER TABLE repositories ADD CONSTRAINT fk_repositories_current_build_id FOREIGN KEY (current_build_id) REFERENCES builds (id);")
3194 -> 0.0016s
3195== 20160513074300 AddCurrentBuildIdToRepositories: migrated (0.0024s) =========
3197== 20160609163600 PermissionsAddIndexUserIdAndRepositoryId: migrating =========
3198-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_permissions_on_user_id_and_repository_id ON permissions (user_id, repository_id)")
3199 -> 0.0045s
3200== 20160609163600 PermissionsAddIndexUserIdAndRepositoryId: migrated (0.0046s)
3202== 20160623133900 CreatePreviousJobStates: migrating ==========================
3203-- create_table(:previous_job_states, {:id=>:integer})
3204 -> 0.0059s
3205-- add_column(:jobs, :previous_job_state_id, :bigint)
3206 -> 0.0006s
3207== 20160623133900 CreatePreviousJobStates: migrated (0.0066s) =================
3209== 20160623133901 AddPreviousStatesTriggers: migrating ========================
3210-- execute(" CREATE FUNCTION save_state_change() RETURNS trigger AS $$\n DECLARE\n previous_job_state_id BIGINT;\n BEGIN\n if TG_OP='UPDATE' then\n UPDATE previous_job_states SET ended_at = NOW() WHERE id = OLD.previous_job_state_id;\n end if;\n\n INSERT INTO previous_job_states (job_id, set_at, state) VALUES(NEW.id, NOW(), NEW.state)\n RETURNING id INTO previous_job_state_id;\n NEW.previous_job_state_id = previous_job_state_id;\n\n RETURN NEW;\n END;\n $$ LANGUAGE plpgsql;\n\n CREATE TRIGGER save_state_change_on_update\n BEFORE UPDATE on jobs\n FOR EACH ROW\n WHEN (OLD.state IS DISTINCT FROM NEW.state)\n EXECUTE PROCEDURE save_state_change();\n\n CREATE TRIGGER save_state_change_on_insert\n BEFORE INSERT on jobs\n FOR EACH ROW\n EXECUTE PROCEDURE save_state_change();\n")
3211 -> 0.0031s
3212== 20160623133901 AddPreviousStatesTriggers: migrated (0.0032s) ===============
3214== 20160712125400 RevertPreviousJobStates: migrating ==========================
3215-- execute(" DROP TRIGGER IF EXISTS save_state_change_on_update on jobs;\n DROP TRIGGER IF EXISTS save_state_change_on_insert on jobs;\n DROP FUNCTION IF EXISTS save_state_change();\n")
3216 -> 0.0009s
3217-- remove_column(:jobs, :previous_job_state_id)
3218 -> 0.0005s
3219-- drop_table(:previous_job_states)
3220 -> 0.0011s
3221== 20160712125400 RevertPreviousJobStates: migrated (0.0026s) =================
3223== 20160819103700 AddAvatarUrlToUsers: migrating ==============================
3224-- add_column(:users, :avatar_url, :string)
3225 -> 0.0011s
3226== 20160819103700 AddAvatarUrlToUsers: migrated (0.0012s) =====================
3228== 20160920220400 AddRoleToMemberships: migrating =============================
3229-- add_column(:memberships, :role, :string)
3230 -> 0.0038s
3231== 20160920220400 AddRoleToMemberships: migrated (0.0039s) ====================
3233== 20161028154600 RemoveTypeIndices: migrating ================================
3234-- execute("DROP INDEX CONCURRENTLY IF EXISTS index_requests_on_event_type")
3235 -> 0.0004s
3236-- execute("DROP INDEX CONCURRENTLY IF EXISTS index_jobs_on_owner_type")
3237 -> 0.0027s
3238== 20161028154600 RemoveTypeIndices: migrated (0.0033s) =======================
3240== 20161101000000 AddNextRunLastRunToCrons: migrating =========================
3241-- column_exists?(:crons, :next_run)
3242 -> 0.0028s
3243-- add_column(:crons, :next_run, :timestamp, {:precision=>nil})
3244 -> 0.0008s
3245-- column_exists?(:crons, :last_run)
3246 -> 0.0021s
3247-- add_column(:crons, :last_run, :timestamp, {:precision=>nil})
3248 -> 0.0008s
3249== 20161101000000 AddNextRunLastRunToCrons: migrated (0.0068s) ================
3251== 20161101000001 AddDontRunIfRecentBuildExists: migrating ====================
3252-- column_exists?(:crons, :dont_run_if_recent_build_exists)
3253 -> 0.0026s
3254-- add_column(:crons, :dont_run_if_recent_build_exists, :boolean, {:default=>false})
3255 -> 0.0013s
3256== 20161101000001 AddDontRunIfRecentBuildExists: migrated (0.0041s) ===========
3258== 20161201112200 CreateBetaFeatures: migrating ===============================
3259-- create_table(:beta_features, {:id=>:integer})
3260 -> 0.0071s
3261== 20161201112200 CreateBetaFeatures: migrated (0.0073s) ======================
3263== 20161201112600 CreateUserBetaFeatures: migrating ===========================
3264-- create_table(:user_beta_features, {:id=>:integer})
3265 -> 0.0049s
3266-- add_index(:user_beta_features, [:user_id, :beta_feature_id])
3267 -> 0.0028s
3268== 20161201112600 CreateUserBetaFeatures: migrated (0.0079s) ==================
3270== 20161202000000 RemoveDisableByBuildFromCrons: migrating ====================
3271-- remove_column(:crons, :disable_by_build)
3272 -> 0.0011s
3273== 20161202000000 RemoveDisableByBuildFromCrons: migrated (0.0012s) ===========
3275== 20161206155800 AddBillingAdminOnlyToOrganizations: migrating ===============
3276-- add_column(:organizations, :billing_admin_only, :boolean)
3277 -> 0.0010s
3278== 20161206155800 AddBillingAdminOnlyToOrganizations: migrated (0.0011s) ======
3280== 20161221171300 BuildsAddIndexRepositoryIdAndNumber: migrating ==============
3281-- execute("CREATE INDEX CONCURRENTLY index_builds_on_repository_id_and_number ON builds(repository_id, (number::integer))")
3282 -> 0.0050s
3283== 20161221171300 BuildsAddIndexRepositoryIdAndNumber: migrated (0.0050s) =====
3285== 20170211000000 JobsAddStageNumber: migrating ===============================
3286-- add_column(:jobs, :stage_number, :string)
3287 -> 0.0011s
3288== 20170211000000 JobsAddStageNumber: migrated (0.0012s) ======================
3290== 20170211000001 JobsAddStageId: migrating ===================================
3291-- change_table(:jobs)
3292 -> 0.0016s
3293== 20170211000001 JobsAddStageId: migrated (0.0017s) ==========================
3295== 20170211000002 StagesCreate: migrating =====================================
3296-- create_table(:stages, {:id=>:integer})
3297 -> 0.0074s
3298== 20170211000002 StagesCreate: migrated (0.0075s) ============================
3300== 20170211000003 StagesAddStateAndTimestamps: migrating ======================
3301-- change_table(:stages)
3302 -> 0.0025s
3303== 20170211000003 StagesAddStateAndTimestamps: migrated (0.0025s) =============
3305== 20170213124000 AddConstraintForOwnerIdToSubscriptions: migrating ===========
3306-- execute("CREATE UNIQUE INDEX subscriptions_owner ON subscriptions (owner_id, owner_type) WHERE (status = 'subscribed');")
3307 -> 0.0032s
3308== 20170213124000 AddConstraintForOwnerIdToSubscriptions: migrated (0.0032s) ==
3310== 20170316000000 QueueableJobsCreate: migrating ==============================
3311-- create_table(:queueable_jobs, {:id=>:integer})
3312 -> 0.0047s
3313== 20170316000000 QueueableJobsCreate: migrated (0.0048s) =====================
3315== 20170316000001 QueueableJobsIndexJobId: migrating ==========================
3316-- add_index(:queueable_jobs, :job_id, {:algorithm=>:concurrently})
3317 -> 0.0051s
3318== 20170316000001 QueueableJobsIndexJobId: migrated (0.0052s) =================
3320== 20170318000000 PullRequestsCreate: migrating ===============================
3321-- create_table(:pull_requests, {:id=>:integer})
3322 -> 0.0080s
3323== 20170318000000 PullRequestsCreate: migrated (0.0081s) ======================
3325== 20170318000001 RequestsAddPullRequestId: migrating =========================
3326-- change_table(:requests)
3327 -> 0.0010s
3328== 20170318000001 RequestsAddPullRequestId: migrated (0.0010s) ================
3330== 20170318000002 BuildsAddPullRequestId: migrating ===========================
3331-- change_table(:builds)
3332 -> 0.0008s
3333== 20170318000002 BuildsAddPullRequestId: migrated (0.0008s) ==================
3335== 20170322000000 AddIndexOnRequestsRepositoryIdAndIdDesc: migrating ==========
3336-- execute("CREATE INDEX CONCURRENTLY index_requests_on_repository_id_and_id_desc ON requests (repository_id, id DESC);")
3337 -> 0.0043s
3338== 20170322000000 AddIndexOnRequestsRepositoryIdAndIdDesc: migrated (0.0043s) =
3340== 20170331000000 AddIndexRepositoryIdOnPullRequests: migrating ===============
3341-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_pull_requests_on_repository_id_and_number ON pull_requests (repository_id, (number::integer));")
3342 -> 0.0040s
3343== 20170331000000 AddIndexRepositoryIdOnPullRequests: migrated (0.0040s) ======
3345== 20170401000000 OwnerGroupsCreate: migrating ================================
3346-- create_table(:owner_groups, {:id=>:integer})
3347 -> 0.0057s
3348== 20170401000000 OwnerGroupsCreate: migrated (0.0057s) =======================
3350== 20170401000001 OwnerGroupsIndexOwnerIdOwnerType: migrating =================
3351-- execute("CREATE INDEX CONCURRENTLY index_owner_groups_on_owner_type_and_owner_id ON owner_groups (owner_type, owner_id);")
3352 -> 0.0050s
3353== 20170401000001 OwnerGroupsIndexOwnerIdOwnerType: migrated (0.0050s) ========
3355== 20170401000002 OwnerGroupsIndexUuid: migrating =============================
3356-- execute("CREATE INDEX CONCURRENTLY index_owner_groups_on_uuid ON owner_groups (uuid);")
3357 -> 0.0041s
3358== 20170401000002 OwnerGroupsIndexUuid: migrated (0.0041s) ====================
3360== 20170405000000 TagsCreate: migrating =======================================
3361-- create_table(:tags, {:id=>:integer})
3362 -> 0.0055s
3363== 20170405000000 TagsCreate: migrated (0.0056s) ==============================
3365== 20170405000001 RequestsAddBranchIdAndTagId: migrating ======================
3366-- change_table(:requests)
3367 -> 0.0114s
3368== 20170405000001 RequestsAddBranchIdAndTagId: migrated (0.0114s) =============
3370== 20170405000002 CommitsAddBranchIdAndTagId: migrating =======================
3371-- change_table(:commits)
3372 -> 0.0056s
3373== 20170405000002 CommitsAddBranchIdAndTagId: migrated (0.0060s) ==============
3375== 20170405000003 BuildsAddBranchIdAndTagId: migrating ========================
3376-- change_table(:builds)
3377 -> 0.0058s
3378== 20170405000003 BuildsAddBranchIdAndTagId: migrated (0.0060s) ===============
3380== 20170408000000 RequestsAddSenderId: migrating ==============================
3381-- change_table(:requests)
3382 -> 0.0079s
3383== 20170408000000 RequestsAddSenderId: migrated (0.0081s) =====================
3385== 20170408000001 BuildsAddSenderId: migrating ================================
3386-- change_table(:builds)
3387 -> 0.0015s
3388== 20170408000001 BuildsAddSenderId: migrated (0.0016s) =======================
3390== 20170410000000 JobsIndexStageId: migrating =================================
3391-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_stage_id ON jobs (stage_id);")
3392 -> 0.0045s
3393== 20170410000000 JobsIndexStageId: migrated (0.0045s) ========================
3395== 20170411000000 TagsIndexRepoIdAndName: migrating ===========================
3396-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_tags_on_repository_id_and_name ON tags (repository_id, name);")
3397 -> 0.0040s
3398== 20170411000000 TagsIndexRepoIdAndName: migrated (0.0041s) ==================
3400== 20170419093249 AddSourceToSubscriptions: migrating =========================
3401-- execute(" CREATE TYPE source_type AS ENUM ('manual', 'stripe', 'github', 'unknown');\n")
3402 -> 0.0013s
3403-- add_column(:subscriptions, :source, :source_type, {:default=>"unknown", :null=>false})
3404 -> 0.0017s
3405== 20170419093249 AddSourceToSubscriptions: migrated (0.0032s) ================
3407== 20170531125700 AddIndexOnBuildsSenderTypeAndSenderId: migrating ============
3408-- execute("CREATE INDEX CONCURRENTLY index_builds_on_sender_type_and_sender_id ON builds (sender_type, sender_id);")
3409 -> 0.0051s
3410== 20170531125700 AddIndexOnBuildsSenderTypeAndSenderId: migrated (0.0052s) ===
3412== 20170601163700 DropIndexOnRepositoriesBuildsAndCommits: migrating ==========
3413-- execute("DROP INDEX CONCURRENTLY index_repositories_on_lower_owner_name")
3414 -> 0.0027s
3415-- execute("DROP INDEX CONCURRENTLY index_repositories_on_owner_type")
3416 -> 0.0027s
3417-- execute("DROP INDEX CONCURRENTLY index_commits_on_repository_id")
3418 -> 0.0029s
3419-- execute("DROP INDEX CONCURRENTLY index_builds_on_number")
3420 -> 0.0023s
3421== 20170601163700 DropIndexOnRepositoriesBuildsAndCommits: migrated (0.0108s) =
3423== 20170601164400 AddIndexOnBuildsAndStages: migrating ========================
3424-- execute("CREATE INDEX CONCURRENTLY index_builds_on_repository_id_and_branch_and_event_type_and_id ON builds (repository_id, branch, event_type, id)")
3425 -> 0.0048s
3426-- execute("CREATE INDEX CONCURRENTLY index_stages_on_build_id ON stages (build_id)")
3427 -> 0.0053s
3428== 20170601164400 AddIndexOnBuildsAndStages: migrated (0.0102s) ===============
3430== 20170609174400 DropUnusedIndexesOnJobsAndBuilds: migrating =================
3431-- execute("DROP INDEX CONCURRENTLY index_jobs_on_repository_id")
3432 -> 0.0028s
3433-- execute("DROP INDEX CONCURRENTLY index_jobs_on_queued_at")
3434 -> 0.0027s
3435-- execute("DROP INDEX CONCURRENTLY index_jobs_on_queue")
3436 -> 0.0027s
3437-- execute("DROP INDEX CONCURRENTLY index_jobs_on_owner_id")
3438 -> 0.0029s
3439-- execute("DROP INDEX CONCURRENTLY index_builds_on_branch")
3440 -> 0.0030s
3441-- execute("DROP INDEX CONCURRENTLY index_builds_on_event_type")
3442 -> 0.0026s
3443-- execute("DROP INDEX CONCURRENTLY index_builds_on_owner_id")
3444 -> 0.0024s
3445== 20170609174400 DropUnusedIndexesOnJobsAndBuilds: migrated (0.0193s) ========
3447== 20170613000000 CreateTrials: migrating =====================================
3448-- create_table(:trials, {:id=>:integer})
3449 -> 0.0073s
3450-- execute("CREATE INDEX CONCURRENTLY index_trials_on_owner ON trials(owner_id, owner_type)")
3451 -> 0.0046s
3452== 20170613000000 CreateTrials: migrated (0.0120s) ============================
3454== 20170620144500 AddIndexesOnBuildsAndJobsAndBranches: migrating =============
3455-- execute("CREATE INDEX CONCURRENTLY index_builds_on_repository_id_and_branch_and_id_desc ON builds (repository_id, branch, id DESC)")
3456 -> 0.0048s
3457-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_owner_id_and_owner_type_and_state ON jobs (owner_id, owner_type, state)")
3458 -> 0.0042s
3459-- execute("CREATE INDEX CONCURRENTLY index_branches_on_repository_id ON branches (repository_id)")
3460 -> 0.0041s
3461== 20170620144500 AddIndexesOnBuildsAndJobsAndBranches: migrated (0.0132s) ====
3463== 20170621142300 RemovePlansTable: migrating =================================
3464-- drop_table(:plans)
3465 -> 0.0010s
3466== 20170621142300 RemovePlansTable: migrated (0.0011s) ========================
3468== 20170713162000 AddCcLastDigitsToInvoices: migrating ========================
3469-- change_table(:invoices)
3470 -> 0.0008s
3471== 20170713162000 AddCcLastDigitsToInvoices: migrated (0.0009s) ===============
3473== 20170822171600 CreateMessages: migrating ===================================
3474-- create_table("messages", {:force=>:cascade, :id=>:integer})
3475 -> 0.0065s
3476-- execute("CREATE INDEX CONCURRENTLY index_messages_on_subject_type_and_subject_id ON messages(subject_type, subject_id)")
3477 -> 0.0038s
3478== 20170822171600 CreateMessages: migrated (0.0104s) ==========================
3480== 20170831000000 CreateTrialAllowances: migrating ============================
3481-- create_table(:trial_allowances, {:id=>:integer})
3482 -> 0.0060s
3483-- add_index(:trial_allowances, :trial_id)
3484 -> 0.0023s
3485-- add_index(:trial_allowances, [:creator_id, :creator_type])
3486 -> 0.0023s
3487== 20170831000000 CreateTrialAllowances: migrated (0.0107s) ===================
3489== 20170911172800 AddIndexOnJobsUpdatedAt: migrating ==========================
3490-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_updated_at ON jobs (updated_at)")
3491 -> 0.0047s
3492== 20170911172800 AddIndexOnJobsUpdatedAt: migrated (0.0047s) =================
3494== 20171017104500 AddConcurrencyToSubscriptions: migrating ====================
3495-- change_table(:subscriptions)
3496 -> 0.0008s
3497== 20171017104500 AddConcurrencyToSubscriptions: migrated (0.0009s) ===========
3499== 20171024000000 AddAbuseTable: migrating ====================================
3500-- create_table(:abuses, {:id=>:integer})
3501 -> 0.0071s
3502-- execute("CREATE INDEX CONCURRENTLY index_abuses_on_owner ON abuses(owner_id)")
3503 -> 0.0050s
3504== 20171024000000 AddAbuseTable: migrated (0.0122s) ===========================
3506== 20171025000000 AddUpdatedAtTriggerToBuildsAndJobs: migrating ===============
3507-- execute(" CREATE FUNCTION set_updated_at() RETURNS trigger AS $$\n BEGIN\n IF TG_OP = 'INSERT' OR\n (TG_OP = 'UPDATE' AND NEW.* IS DISTINCT FROM OLD.*) THEN\n NEW.updated_at := statement_timestamp();\n END IF;\n RETURN NEW;\n END;\n $$ LANGUAGE plpgsql;\n\n CREATE TRIGGER set_updated_at_on_builds\n BEFORE INSERT OR UPDATE ON builds\n FOR EACH ROW\n EXECUTE PROCEDURE set_updated_at();\n\n CREATE TRIGGER set_updated_at_on_jobs\n BEFORE INSERT OR UPDATE ON jobs\n FOR EACH ROW\n EXECUTE PROCEDURE set_updated_at();\n")
3508 -> 0.0009s
3509== 20171025000000 AddUpdatedAtTriggerToBuildsAndJobs: migrated (0.0010s) ======
3511== 20171103000000 UpdateIndexOnAbuses: migrating ==============================
3512-- index_exists?(:abuses, :owner, {:name=>"index_abuses_on_owner"})
3513 -> 0.0014s
3514-- index_exists?(:abuses, [:owner_id, :owner_type, :level], {:name=>"index_abuses_on_owner_id_and_owner_type_and_level"})
3515 -> 0.0011s
3516-- add_index(:abuses, [:owner_id, :owner_type, :level], {:unique=>true, :algorithm=>:concurrently})
3517 -> 0.0043s
3518== 20171103000000 UpdateIndexOnAbuses: migrated (0.0070s) =====================
3520== 20171211000000 AddRepositoryIdBranchEventTypeIndexOnBuilds: migrating ======
3521-- execute("CREATE INDEX CONCURRENTLY index_builds_on_repository_id_and_branch_and_event_type ON builds (repository_id, branch, event_type) WHERE state IN ('created', 'queued', 'received')")
3522 -> 0.0049s
3523== 20171211000000 AddRepositoryIdBranchEventTypeIndexOnBuilds: migrated (0.0049s)
3525== 20180212000000 UsersAddSuspended: migrating ================================
3526-- add_column(:users, :suspended, :boolean, {:default=>false})
3527 -> 0.0038s
3528== 20180212000000 UsersAddSuspended: migrated (0.0039s) =======================
3530== 20180213000000 UsersAddSuspendedAt: migrating ==============================
3531-- add_column(:users, :suspended_at, :timestamp, {:precision=>nil})
3532 -> 0.0018s
3533== 20180213000000 UsersAddSuspendedAt: migrated (0.0021s) =====================
3535== 20180222000000 AddComIdAndOrgId: migrating =================================
3536-- add_column(:branches, :org_id, :integer)
3537 -> 0.0021s
3538-- add_column(:builds, :org_id, :integer)
3539 -> 0.0013s
3540-- add_column(:commits, :org_id, :integer)
3541 -> 0.0012s
3542-- add_column(:crons, :org_id, :integer)
3543 -> 0.0009s
3544-- add_column(:jobs, :org_id, :integer)
3545 -> 0.0012s
3546-- add_column(:organizations, :org_id, :integer)
3547 -> 0.0010s
3548-- add_column(:permissions, :org_id, :integer)
3549 -> 0.0010s
3550-- add_column(:pull_requests, :org_id, :integer)
3551 -> 0.0010s
3552-- add_column(:repositories, :org_id, :integer)
3553 -> 0.0011s
3554-- add_column(:requests, :org_id, :integer)
3555 -> 0.0009s
3556-- add_column(:ssl_keys, :org_id, :integer)
3557 -> 0.0011s
3558-- add_column(:stages, :org_id, :integer)
3559 -> 0.0010s
3560-- add_column(:tags, :org_id, :integer)
3561 -> 0.0008s
3562-- add_column(:users, :org_id, :integer)
3563 -> 0.0011s
3564-- add_column(:branches, :com_id, :integer)
3565 -> 0.0010s
3566-- add_column(:builds, :com_id, :integer)
3567 -> 0.0010s
3568-- add_column(:commits, :com_id, :integer)
3569 -> 0.0010s
3570-- add_column(:crons, :com_id, :integer)
3571 -> 0.0010s
3572-- add_column(:jobs, :com_id, :integer)
3573 -> 0.0005s
3574-- add_column(:organizations, :com_id, :integer)
3575 -> 0.0015s
3576-- add_column(:permissions, :com_id, :integer)
3577 -> 0.0011s
3578-- add_column(:pull_requests, :com_id, :integer)
3579 -> 0.0009s
3580-- add_column(:repositories, :com_id, :integer)
3581 -> 0.0011s
3582-- add_column(:requests, :com_id, :integer)
3583 -> 0.0010s
3584-- add_column(:ssl_keys, :com_id, :integer)
3585 -> 0.0011s
3586-- add_column(:stages, :com_id, :integer)
3587 -> 0.0010s
3588-- add_column(:tags, :com_id, :integer)
3589 -> 0.0009s
3590-- add_column(:users, :com_id, :integer)
3591 -> 0.0010s
3592== 20180222000000 AddComIdAndOrgId: migrated (0.0328s) ========================
3594== 20180222000001 AddComIdAndOrgIdIndices: migrating ==========================
3595-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_branches_on_org_id ON branches USING btree (org_id)")
3596 -> 0.0049s
3597-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_builds_on_org_id ON builds USING btree (org_id)")
3598 -> 0.0042s
3599-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_jobs_on_org_id ON jobs USING btree (org_id)")
3600 -> 0.0044s
3601-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_commits_on_org_id ON commits USING btree (org_id)")
3602 -> 0.0043s
3603-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_crons_on_org_id ON crons USING btree (org_id)")
3604 -> 0.0040s
3605-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_organizations_on_org_id ON organizations USING btree (org_id)")
3606 -> 0.0041s
3607-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_permissions_on_org_id ON permissions USING btree (org_id)")
3608 -> 0.0039s
3609-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_pull_requests_on_org_id ON pull_requests USING btree (org_id)")
3610 -> 0.0035s
3611-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_repositories_on_org_id ON repositories USING btree (org_id)")
3612 -> 0.0033s
3613-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_requests_on_org_id ON requests USING btree (org_id)")
3614 -> 0.0041s
3615-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_ssl_keys_on_org_id ON ssl_keys USING btree (org_id)")
3616 -> 0.0038s
3617-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_stages_on_org_id ON stages USING btree (org_id)")
3618 -> 0.0037s
3619-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_tags_on_org_id ON tags USING btree (org_id)")
3620 -> 0.0036s
3621-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_users_on_org_id ON users USING btree (org_id)")
3622 -> 0.0041s
3623-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_branches_on_com_id ON branches USING btree (com_id)")
3624 -> 0.0042s
3625-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_builds_on_com_id ON builds USING btree (com_id)")
3626 -> 0.0038s
3627-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_jobs_on_com_id ON jobs USING btree (com_id)")
3628 -> 0.0039s
3629-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_commits_on_com_id ON commits USING btree (com_id)")
3630 -> 0.0042s
3631-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_crons_on_com_id ON crons USING btree (com_id)")
3632 -> 0.0041s
3633-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_organizations_on_com_id ON organizations USING btree (com_id)")
3634 -> 0.0039s
3635-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_permissions_on_com_id ON permissions USING btree (com_id)")
3636 -> 0.0038s
3637-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_pull_requests_on_com_id ON pull_requests USING btree (com_id)")
3638 -> 0.0039s
3639-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_repositories_on_com_id ON repositories USING btree (com_id)")
3640 -> 0.0041s
3641-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_requests_on_com_id ON requests USING btree (com_id)")
3642 -> 0.0039s
3643-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_ssl_keys_on_com_id ON ssl_keys USING btree (com_id)")
3644 -> 0.0040s
3645-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_stages_on_com_id ON stages USING btree (com_id)")
3646 -> 0.0042s
3647-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_tags_on_com_id ON tags USING btree (com_id)")
3648 -> 0.0043s
3649-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_users_on_com_id ON users USING btree (com_id)")
3650 -> 0.0044s
3651== 20180222000001 AddComIdAndOrgIdIndices: migrated (0.1141s) =================
3653== 20180222000002 AddMigrating: migrating =====================================
3654-- add_column(:repositories, :migrating, :boolean)
3655 -> 0.0008s
3656-- add_column(:repositories, :migrated_at, :timestamp, {:precision=>nil})
3657 -> 0.0005s
3658-- add_column(:organizations, :migrating, :boolean)
3659 -> 0.0004s
3660-- add_column(:organizations, :migrated_at, :timestamp, {:precision=>nil})
3661 -> 0.0003s
3662-- add_column(:users, :migrating, :boolean)
3663 -> 0.0004s
3664-- add_column(:users, :migrated_at, :timestamp, {:precision=>nil})
3665 -> 0.0003s
3666== 20180222000002 AddMigrating: migrated (0.0029s) ============================
3668== 20180222000003 DropFkRepositoriesCurrentBuildId: migrating =================
3669-- execute("ALTER TABLE repositories DROP CONSTRAINT fk_repositories_current_build_id")
3670 -> 0.0008s
3671== 20180222000003 DropFkRepositoriesCurrentBuildId: migrated (0.0008s) ========
3673== 20180222000009 CreateRepoCounts: migrating =================================
3674-- create_table(:repo_counts, {:id=>false})
3675 -> 0.0031s
3676-- add_index(:repo_counts, :repository_id)
3677 -> 0.0022s
3678== 20180222000009 CreateRepoCounts: migrated (0.0054s) ========================
3680== 20180222000012 CreateRepoCountsTriggers: migrating =========================
3681-- execute("create or replace function count_requests() returns trigger as $$\ndeclare\n c text;\n r record;\nbegin\n if tg_argv[0]::int > 0 then r := new; else r := old; end if;\n if r.repository_id is not null then\n insert into repo_counts(repository_id, requests)\n values(r.repository_id, tg_argv[0]::int);\n end if;\n return r;\nexception when others then\n get stacked diagnostics c = pg_exception_context;\n raise warning '% context: %s', sqlerrm, c;\n return r;\nend;\n$$\nlanguage plpgsql;\ndrop trigger if exists trg_count_request_inserted on requests;\ncreate trigger trg_count_request_inserted after insert on requests\nfor each row when (now() > '2018-01-01 00:00:00') execute procedure count_requests(1);\ndrop trigger if exists trg_count_request_deleted on requests;\ncreate trigger trg_count_request_deleted after delete on requests\nfor each row when (now() > '2018-01-01 00:00:00') execute procedure count_requests('-1');\n\ncreate or replace function count_commits() returns trigger as $$\ndeclare\n c text;\n r record;\nbegin\n if tg_argv[0]::int > 0 then r := new; else r := old; end if;\n if r.repository_id is not null then\n insert into repo_counts(repository_id, commits)\n values(r.repository_id, tg_argv[0]::int);\n end if;\n return r;\nexception when others then\n get stacked diagnostics c = pg_exception_context;\n raise warning '% context: %s', sqlerrm, c;\n return r;\nend;\n$$\nlanguage plpgsql;\ndrop trigger if exists trg_count_commit_inserted on commits;\ncreate trigger trg_count_commit_inserted after insert on commits\nfor each row when (now() > '2018-01-01 00:00:00') execute procedure count_commits(1);\ndrop trigger if exists trg_count_commit_deleted on commits;\ncreate trigger trg_count_commit_deleted after delete on commits\nfor each row when (now() > '2018-01-01 00:00:00') execute procedure count_commits('-1');\n\ncreate or replace function count_branches() returns trigger as $$\ndeclare\n c text;\n r record;\nbegin\n if tg_argv[0]::int > 0 then r := new; else r := old; end if;\n if r.repository_id is not null then\n insert into repo_counts(repository_id, branches)\n values(r.repository_id, tg_argv[0]::int);\n end if;\n return r;\nexception when others then\n get stacked diagnostics c = pg_exception_context;\n raise warning '% context: %s', sqlerrm, c;\n return r;\nend;\n$$\nlanguage plpgsql;\ndrop trigger if exists trg_count_branch_inserted on branches;\ncreate trigger trg_count_branch_inserted after insert on branches\nfor each row when (now() > '2018-01-01 00:00:00') execute procedure count_branches(1);\ndrop trigger if exists trg_count_branch_deleted on branches;\ncreate trigger trg_count_branch_deleted after delete on branches\nfor each row when (now() > '2018-01-01 00:00:00') execute procedure count_branches('-1');\n\ncreate or replace function count_pull_requests() returns trigger as $$\ndeclare\n c text;\n r record;\nbegin\n if tg_argv[0]::int > 0 then r := new; else r := old; end if;\n if r.repository_id is not null then\n insert into repo_counts(repository_id, pull_requests)\n values(r.repository_id, tg_argv[0]::int);\n end if;\n return r;\nexception when others then\n get stacked diagnostics c = pg_exception_context;\n raise warning '% context: %s', sqlerrm, c;\n return r;\nend;\n$$\nlanguage plpgsql;\ndrop trigger if exists trg_count_pull_request_inserted on pull_requests;\ncreate trigger trg_count_pull_request_inserted after insert on pull_requests\nfor each row when (now() > '2018-01-01 00:00:00') execute procedure count_pull_requests(1);\ndrop trigger if exists trg_count_pull_request_deleted on pull_requests;\ncreate trigger trg_count_pull_request_deleted after delete on pull_requests\nfor each row when (now() > '2018-01-01 00:00:00') execute procedure count_pull_requests('-1');\n\ncreate or replace function count_tags() returns trigger as $$\ndeclare\n c text;\n r record;\nbegin\n if tg_argv[0]::int > 0 then r := new; else r := old; end if;\n if r.repository_id is not null is not null then\n insert into repo_counts(repository_id, tags)\n values(r.repository_id, tg_argv[0]::int);\n end if;\n return r;\nexception when others then\n get stacked diagnostics c = pg_exception_context;\n raise warning '% context: %s', sqlerrm, c;\n return r;\nend;\n$$\nlanguage plpgsql;\ndrop trigger if exists trg_count_tag_inserted on tags;\ncreate trigger trg_count_tag_inserted after insert on tags\nfor each row when (now() > '2018-01-01 00:00:00') execute procedure count_tags(1);\ndrop trigger if exists trg_count_tag_deleted on tags;\ncreate trigger trg_count_tag_deleted after delete on tags\nfor each row when (now() > '2018-01-01 00:00:00') execute procedure count_tags('-1');\n\ncreate or replace function count_builds() returns trigger as $$\ndeclare\n c text;\n r record;\nbegin\n if tg_argv[0]::int > 0 then r := new; else r := old; end if;\n if r.repository_id is not null then\n insert into repo_counts(repository_id, builds)\n values(r.repository_id, tg_argv[0]::int);\n end if;\n return r;\nexception when others then\n get stacked diagnostics c = pg_exception_context;\n raise warning '% context: %s', sqlerrm, c;\n return r;\nend;\n$$\nlanguage plpgsql;\ndrop trigger if exists trg_count_build_inserted on builds;\ncreate trigger trg_count_build_inserted after insert on builds\nfor each row when (now() > '2018-01-01 00:00:00') execute procedure count_builds(1);\ndrop trigger if exists trg_count_build_deleted on builds;\ncreate trigger trg_count_build_deleted after delete on builds\nfor each row when (now() > '2018-01-01 00:00:00') execute procedure count_builds('-1');\n\n-- -- todo stages really should have a repository_id\n-- create or replace function count_stages() returns trigger as $$\n-- declare\n-- c text;\n-- r record;\n-- build record;\n-- begin\n-- if tg_argv[0]::int > 0 then r := new; else r := old; end if;\n-- select repository_id from builds as b where b.id = r.build_id into build;\n-- if build.repository_id is not null then\n-- insert into repo_counts(repository_id, stages)\n-- values(build.repository_id, tg_argv[0]::int);\n-- end if;\n-- return r;\n-- exception when others then\n-- get stacked diagnostics c = pg_exception_context;\n-- raise warning '% context: %s', sqlerrm, c;\n-- return r;\n-- end;\n-- $$\n-- language plpgsql;\n-- drop trigger if exists trg_count_stage_inserted on stages;\n-- create trigger trg_count_stage_inserted after insert on stages\n-- for each row when (now() > '2018-01-01 00:00:00') execute procedure count_stages(1);\n-- drop trigger if exists trg_count_stage_deleted on stages;\n-- create trigger trg_count_stage_deleted after delete on stages\n-- for each row when (now() > '2018-01-01 00:00:00') execute procedure count_stages('-1');\n\ncreate or replace function count_jobs() returns trigger as $$\ndeclare\n c text;\n r record;\nbegin\n if tg_argv[0]::int > 0 then r := new; else r := old; end if;\n if r.repository_id is not null then\n insert into repo_counts(repository_id, jobs)\n values(r.repository_id, tg_argv[0]::int);\n end if;\n return r;\nexception when others then\n get stacked diagnostics c = pg_exception_context;\n raise warning '% context: %s', sqlerrm, c;\n return r;\nend;\n$$\nlanguage plpgsql;\ndrop trigger if exists trg_count_job_inserted on jobs;\ncreate trigger trg_count_job_inserted after insert on jobs\nfor each row when (now() > '2018-01-01 00:00:00') execute procedure count_jobs(1);\ndrop trigger if exists trg_count_job_deleted on jobs;\ncreate trigger trg_count_job_deleted after delete on jobs\nfor each row when (now() > '2018-01-01 00:00:00') execute procedure count_jobs('-1');\n\ndrop function if exists count_requests(_start int, _end int);\ncreate or replace function count_requests(_start int, _end int)\nreturns table (repository_id int, requests bigint, range varchar) as $$\nbegin\n return query select t.repository_id, count(id) as requests, ('requests' || ':' || _start || ':' || _end)::varchar as range\n from requests as t\n where t.id between _start and _end and t.created_at <= '2018-01-01 00:00:00' and t.repository_id is not null\n group by t.repository_id;\nend;\n$$\nlanguage plpgsql;\n\ndrop function if exists count_commits(_start int, _end int);\ncreate or replace function count_commits(_start int, _end int)\nreturns table (repository_id int, commits bigint, range varchar) as $$\nbegin\n return query select r.id, count(t.id) as commits, ('commits' || ':' || _start || ':' || _end)::varchar as range\n from commits as t\n join repositories as r on t.repository_id = r.id\n where t.id between _start and _end and t.created_at <= '2018-01-01 00:00:00' and t.repository_id is not null\n group by r.id;\nend;\n$$\nlanguage plpgsql;\n\ndrop function if exists count_branches(_start int, _end int);\ncreate or replace function count_branches(_start int, _end int)\nreturns table (repository_id int, branches bigint, range varchar) as $$\nbegin\n return query select r.id, count(t.id) as branches, ('branches' || ':' || _start || ':' || _end)::varchar as range\n from branches as t\n join repositories as r on t.repository_id = r.id\n where t.id between _start and _end and t.created_at <= '2018-01-01 00:00:00' and t.repository_id is not null\n group by r.id;\nend;\n$$\nlanguage plpgsql;\n\ndrop function if exists count_pull_requests(_start int, _end int);\ncreate or replace function count_pull_requests(_start int, _end int)\nreturns table (repository_id int, pull_requests bigint, range varchar) as $$\nbegin\n return query select r.id, count(t.id) as pull_requests, ('pull_requests' || ':' || _start || ':' || _end)::varchar as range\n from pull_requests as t\n join repositories as r on t.repository_id = r.id\n where t.id between _start and _end and t.created_at <= '2018-01-01 00:00:00' and t.repository_id is not null\n group by r.id;\nend;\n$$\nlanguage plpgsql;\n\ndrop function if exists count_tags(_start int, _end int);\ncreate or replace function count_tags(_start int, _end int)\nreturns table (repository_id int, tags bigint, range varchar) as $$\nbegin\n return query select r.id, count(t.id) as tags, ('tags' || ':' || _start || ':' || _end)::varchar as range\n from tags as t\n join repositories as r on t.repository_id = r.id\n where t.id between _start and _end and t.created_at <= '2018-01-01 00:00:00' and t.repository_id is not null\n group by r.id;\nend;\n$$\nlanguage plpgsql;\n\ndrop function if exists count_builds(_start int, _end int);\ncreate or replace function count_builds(_start int, _end int)\nreturns table (repository_id int, builds bigint, range varchar) as $$\nbegin\n return query select t.repository_id, count(id) as builds, ('builds' || ':' || _start || ':' || _end)::varchar as range\n from builds as t\n where t.id between _start and _end and t.created_at <= '2018-01-01 00:00:00' and t.repository_id is not null\n group by t.repository_id;\nend;\n$$\nlanguage plpgsql;\n\n-- drop function if exists count_stages(_start int, _end int);\n-- create or replace function count_stages(_start int, _end int)\n-- returns table (repository_id int, stages bigint, range varchar) as $$\n-- begin\n-- return query select b.repository_id, count(t.id) as stages, ('stages' || ':' || _start || ':' || _end)::varchar as range\n-- from stages as t\n-- join builds as b on t.build_id = b.id\n-- where t.id between _start and _end and b.created_at <= '2018-01-01 00:00:00' and b.repository_id is not null\n-- group by b.repository_id;\n-- end;\n-- $$\n-- language plpgsql;\n\ndrop function if exists count_jobs(_start int, _end int);\ncreate or replace function count_jobs(_start int, _end int)\nreturns table (repository_id int, jobs bigint, range varchar) as $$\nbegin\n return query select t.repository_id, count(id) as jobs, ('jobs' || ':' || _start || ':' || _end)::varchar as range\n from jobs as t\n where t.id between _start and _end and t.created_at <= '2018-01-01 00:00:00' and t.repository_id is not null\n group by t.repository_id;\nend;\n$$\nlanguage plpgsql;\n\ndrop function if exists count_all_requests(_count int, _start int, _end int);\ncreate or replace function count_all_requests(_count int, _start int, _end int) returns boolean as $$\ndeclare max int;\nbegin\n select id + _count from requests order by id desc limit 1 into max;\n for i in _start.._end by _count loop\n if i > max then exit; end if;\n begin\n raise notice 'counting requests %', i;\n insert into repo_counts(repository_id, requests, range)\n select * from count_requests(i, i + _count - 1);\n exception when unique_violation then end;\n end loop;\n\n return true;\nend\n$$\nlanguage plpgsql;\n\ndrop function if exists count_all_commits(_count int, _start int, _end int);\ncreate or replace function count_all_commits(_count int, _start int, _end int) returns boolean as $$\ndeclare max int;\nbegin\n select id + _count from commits order by id desc limit 1 into max;\n\n for i in _start.._end by _count loop\n if i > max then exit; end if;\n begin\n raise notice 'counting commits %', i;\n insert into repo_counts(repository_id, commits, range)\n select * from count_commits(i, i + _count - 1);\n exception when unique_violation then end;\n end loop;\n\n return true;\nend\n$$\nlanguage plpgsql;\n\ndrop function if exists count_all_branches(_count int, _start int, _end int);\ncreate or replace function count_all_branches(_count int, _start int, _end int) returns boolean as $$\ndeclare max int;\nbegin\n select id + _count from branches order by id desc limit 1 into max;\n\n for i in _start.._end by _count loop\n if i > max then exit; end if;\n begin\n raise notice 'counting branches %', i;\n insert into repo_counts(repository_id, branches, range)\n select * from count_branches(i, i + _count - 1);\n exception when unique_violation then end;\n end loop;\n\n return true;\nend\n$$\nlanguage plpgsql;\n\ndrop function if exists count_all_pull_requests(_count int, _start int, _end int);\ncreate or replace function count_all_pull_requests(_count int, _start int, _end int) returns boolean as $$\ndeclare max int;\nbegin\n select id + _count from pull_requests order by id desc limit 1 into max;\n\n for i in _start.._end by _count loop\n if i > max then exit; end if;\n begin\n raise notice 'counting pull_requests %', i;\n insert into repo_counts(repository_id, pull_requests, range)\n select * from count_pull_requests(i, i + _count - 1);\n exception when unique_violation then end;\n end loop;\n\n return true;\nend\n$$\nlanguage plpgsql;\n\ndrop function if exists count_all_tags(_count int, _start int, _end int);\ncreate or replace function count_all_tags(_count int, _start int, _end int) returns boolean as $$\ndeclare max int;\nbegin\n select id + _count from tags order by id desc limit 1 into max;\n\n for i in _start.._end by _count loop\n if i > max then exit; end if;\n begin\n raise notice 'counting tags %', i;\n insert into repo_counts(repository_id, tags, range)\n select * from count_tags(i, i + _count - 1);\n exception when unique_violation then end;\n end loop;\n\n return true;\nend\n$$\nlanguage plpgsql;\n\ndrop function if exists count_all_builds(_count int, _start int, _end int);\ncreate or replace function count_all_builds(_count int, _start int, _end int) returns boolean as $$\ndeclare max int;\nbegin\n select id + _count from builds order by id desc limit 1 into max;\n\n for i in _start.._end by _count loop\n if i > max then exit; end if;\n begin\n raise notice 'counting builds %', i;\n insert into repo_counts(repository_id, builds, range)\n select * from count_builds(i, i + _count - 1);\n exception when unique_violation then end;\n end loop;\n\n return true;\nend\n$$\nlanguage plpgsql;\n\n-- drop function if exists count_all_stages(_count int, _start int, _end int);\n-- create or replace function count_all_stages(_count int, _start int, _end int) returns boolean as $$\n-- declare max int;\n-- begin\n-- select id + _count from stages order by id desc limit 1 into max;\n--\n-- for i in _start.._end by _count loop\n-- if i > max then exit; end if;\n-- begin\n-- raise notice 'counting stages %', i;\n-- insert into repo_counts(repository_id, stages, range)\n-- select * from count_stages(i, i + _count - 1);\n-- exception when unique_violation then end;\n-- end loop;\n--\n-- return true;\n-- end\n-- $$\n-- language plpgsql;\n\ndrop function if exists count_all_jobs(_count int, _start int, _end int);\ncreate or replace function count_all_jobs(_count int, _start int, _end int) returns boolean as $$\ndeclare max int;\nbegin\n select id + _count from jobs order by id desc limit 1 into max;\n\n for i in _start.._end by _count loop\n if i > max then exit; end if;\n begin\n raise notice 'counting jobs %', i;\n insert into repo_counts(repository_id, jobs, range)\n select * from count_jobs(i, i + _count - 1);\n exception when unique_violation then end;\n end loop;\n\n return true;\nend\n$$\nlanguage plpgsql;\n\n\ncreate or replace function agg_all_repo_counts()\nreturns boolean as $$\nbegin\n with src as (\n select cnt.repository_id\n from repo_counts cnt\n group by cnt.repository_id\n having count(1) > 1\n ),\n del as (\n delete from repo_counts cnt\n using src\n where cnt.repository_id = src.repository_id\n returning cnt.*\n ),\n agg as (\n select\n del.repository_id,\n sum(del.requests)::integer as requests,\n sum(del.commits)::integer as commits,\n sum(del.branches)::integer as branches,\n sum(del.pull_requests)::integer as pull_requests,\n sum(del.tags)::integer as tags,\n sum(del.builds)::integer as builds,\n -- sum(del.stages)::integer as stages,\n sum(del.jobs)::integer as jobs\n from del\n group by del.repository_id\n )\n insert into repo_counts(\n repository_id,\n requests,\n commits,\n branches,\n pull_requests,\n tags,\n builds,\n -- stages,\n jobs\n )\n select\n agg.repository_id,\n agg.requests,\n agg.commits,\n agg.branches,\n agg.pull_requests,\n agg.tags,\n agg.builds,\n -- agg.stages,\n agg.jobs\n from agg;\n\n return true;\nend;\n$$\nlanguage plpgsql;\n\ncreate or replace function agg_repo_counts(_repo_id int)\nreturns boolean as $$\nbegin\n with src as (\n select cnt.repository_id\n from repo_counts cnt\n where cnt.repository_id = _repo_id\n group by cnt.repository_id\n having count(1) > 1\n ),\n del as (\n delete from repo_counts cnt\n using src\n where cnt.repository_id = src.repository_id\n returning cnt.*\n ),\n agg as (\n select\n del.repository_id,\n sum(del.requests)::integer as requests,\n sum(del.commits)::integer as commits,\n sum(del.branches)::integer as branches,\n sum(del.pull_requests)::integer as pull_requests,\n sum(del.tags)::integer as tags,\n sum(del.builds)::integer as builds,\n -- sum(del.stages)::integer as stages,\n sum(del.jobs)::integer as jobs\n from del\n group by del.repository_id\n )\n insert into repo_counts(\n repository_id,\n requests,\n commits,\n branches,\n pull_requests,\n tags,\n builds,\n -- stages,\n jobs\n )\n select\n agg.repository_id,\n agg.requests,\n agg.commits,\n agg.branches,\n agg.pull_requests,\n agg.tags,\n agg.builds,\n -- agg.stages,\n agg.jobs\n from agg\n where agg.requests > 0 or agg.builds > 0 or agg.jobs > 0;\n\n return true;\nend;\n$$\nlanguage plpgsql;\n")
3682 -> 0.0188s
3683== 20180222000012 CreateRepoCountsTriggers: migrated (0.0194s) ================
3685== 20180222164100 DropAnnotations: migrating ==================================
3686-- drop_table(:annotations)
3687 -> 0.0028s
3688-- drop_table(:annotation_providers)
3689 -> 0.0026s
3690== 20180222164100 DropAnnotations: migrated (0.0055s) =========================
3692== 20180305143800 IndexBuildsOnRepositoryIdWhereStateNotFinished: migrating ===
3693-- execute("CREATE INDEX CONCURRENTLY index_builds_on_repository_id_where_state_not_finished ON builds (repository_id) WHERE state IN ('created', 'queued', 'received', 'started');")
3694 -> 0.0047s
3695== 20180305143800 IndexBuildsOnRepositoryIdWhereStateNotFinished: migrated (0.0048s)
3697== 20180321102400 IndexJobsOnRepositoryIdWhereStateRunning: migrating =========
3698-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_repository_id_where_state_running ON jobs (repository_id) WHERE state IN ('queued', 'received', 'started')")
3699 -> 0.0046s
3700== 20180321102400 IndexJobsOnRepositoryIdWhereStateRunning: migrated (0.0047s)
3702== 20180330000000 CreateRequestPayloads: migrating ============================
3703-- create_table(:request_payloads, {:id=>:integer})
3704 -> 0.0077s
3705-- add_index(:request_payloads, :request_id)
3706 -> 0.0027s
3707-- add_index(:request_payloads, [:created_at, :archived])
3708 -> 0.0027s
3709== 20180330000000 CreateRequestPayloads: migrated (0.0134s) ===================
3711== 20180331000000 CreateConfigs: migrating ====================================
3712-- create_table(:request_configs, {:id=>:integer})
3713 -> 0.0074s
3714-- create_table(:build_configs, {:id=>:integer})
3715 -> 0.0067s
3716-- create_table(:job_configs, {:id=>:integer})
3717 -> 0.0062s
3718-- add_index(:request_configs, [:repository_id, :key])
3719 -> 0.0028s
3720-- add_index(:build_configs, [:repository_id, :key])
3721 -> 0.0027s
3722-- add_index(:job_configs, [:repository_id, :key])
3723 -> 0.0026s
3724-- add_column(:requests, :config_id, :integer)
3725 -> 0.0007s
3726-- add_column(:builds, :config_id, :integer)
3727 -> 0.0006s
3728-- add_column(:jobs, :config_id, :integer)
3729 -> 0.0005s
3730== 20180331000000 CreateConfigs: migrated (0.0310s) ===========================
3732== 20180404000001 CreateInstallations: migrating ==============================
3733-- create_table(:installations, {:id=>:integer})
3734 -> 0.0123s
3735-- change_table(:repositories)
3736 -> 0.0014s
3737== 20180404000001 CreateInstallations: migrated (0.0139s) =====================
3739== 20180410000000 RequestsDropPayload: migrating ==============================
3740-- remove_column(:requests, :payload, :text)
3741 -> 0.0012s
3742== 20180410000000 RequestsDropPayload: migrated (0.0012s) =====================
3744== 20180413000000 IndexBranchesOnRepositoryIdAndNameAndId: migrating ==========
3745-- execute("CREATE INDEX CONCURRENTLY index_branches_on_repository_id_and_name_and_id ON branches (repository_id, name, id)")
3746 -> 0.0100s
3747-- execute("DROP INDEX CONCURRENTLY index_branches_on_repository_id_and_name")
3748 -> 0.0028s
3749== 20180413000000 IndexBranchesOnRepositoryIdAndNameAndId: migrated (0.0129s) =
3751== 20180417000000 IndexBuildsOrganizationsUsersOnUpdatedAt: migrating =========
3752-- execute("CREATE INDEX CONCURRENTLY index_builds_on_updated_at ON builds (updated_at)")
3753 -> 0.0046s
3754-- execute("CREATE INDEX CONCURRENTLY index_users_on_updated_at ON users (updated_at)")
3755 -> 0.0046s
3756-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_updated_at ON repositories (updated_at)")
3757 -> 0.0049s
3758-- execute("CREATE INDEX CONCURRENTLY index_organizations_on_updated_at ON organizations (updated_at)")
3759 -> 0.0042s
3760== 20180417000000 IndexBuildsOrganizationsUsersOnUpdatedAt: migrated (0.0185s)
3762== 20180420000000 ConstraintsAndIndexesForGhApps: migrating ===================
3763-- execute("CREATE UNIQUE INDEX CONCURRENTLY github_id_installations_idx ON installations (github_id)")
3764 -> 0.0044s
3765-- execute("CREATE INDEX CONCURRENTLY managed_repositories_idx ON repositories (managed_by_installation_at)")
3766 -> 0.0045s
3767-- execute("CREATE UNIQUE INDEX CONCURRENTLY owner_installations_idx ON installations (owner_id, owner_type) WHERE removed_by_id IS NULL")
3768 -> 0.0045s
3769== 20180420000000 ConstraintsAndIndexesForGhApps: migrated (0.0135s) ==========
3771== 20180425000000 IndexActiveOnOrg: migrating =================================
3772-- execute("CREATE INDEX CONCURRENTLY index_active_on_org ON repositories (active_on_org)")
3773 -> 0.0049s
3774== 20180425000000 IndexActiveOnOrg: migrated (0.0050s) ========================
3776== 20180425100000 AddRemovedAtOnInstallations: migrating ======================
3777-- add_column(:installations, :removed_at, :timestamp, {:precision=>nil})
3778 -> 0.0009s
3779== 20180425100000 AddRemovedAtOnInstallations: migrated (0.0009s) =============
3781== 20180429000000 IndexRepositoriesOnOwnerNameAndName: migrating ==============
3782-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_owner_name_and_name ON repositories (owner_name, name) WHERE invalidated_at IS NULL")
3783 -> 0.0054s
3784== 20180429000000 IndexRepositoriesOnOwnerNameAndName: migrated (0.0054s) =====
3786== 20180501000000 IndexJobsOnOwnerWhereStateRunning: migrating ================
3787-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_owner_where_state_running ON jobs (owner_id, owner_type) WHERE state IN ('queued', 'received', 'started')")
3788 -> 0.0047s
3789== 20180501000000 IndexJobsOnOwnerWhereStateRunning: migrated (0.0047s) =======
3791== 20180517000000 IndexRequestsConfigId: migrating ============================
3792-- execute("CREATE INDEX CONCURRENTLY index_requests_on_config_id ON requests (config_id)")
3793 -> 0.0048s
3794== 20180517000000 IndexRequestsConfigId: migrated (0.0049s) ===================
3796== 20180517000001 IndexBuildsConfigId: migrating ==============================
3797-- execute("CREATE INDEX CONCURRENTLY index_builds_on_config_id ON requests (config_id)")
3798 -> 0.0046s
3799== 20180517000001 IndexBuildsConfigId: migrated (0.0046s) =====================
3801== 20180517000002 IndexJobsConfigId: migrating ================================
3802-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_config_id ON requests (config_id)")
3803 -> 0.0046s
3804== 20180517000002 IndexJobsConfigId: migrated (0.0047s) =======================
3806== 20180518000000 IndexBuildsOnMultiple: migrating ============================
3807-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_builds_on_repo_branch_event_type_and_private ON builds (repository_id, branch, event_type, private)")
3808 -> 0.0051s
3809== 20180518000000 IndexBuildsOnMultiple: migrated (0.0051s) ===================
3811== 20180522000000 AddActiveFlagToCrons: migrating =============================
3812-- change_table(:crons)
3813 -> 0.0018s
3814-- add_index(:crons, :next_run, {:where=>"(active IS TRUE)", :algorithm=>:concurrently})
3815 -> 0.0041s
3816== 20180522000000 AddActiveFlagToCrons: migrated (0.0061s) ====================
3818== 20180531000000 CreateRequestYamlConfigs: migrating =========================
3819-- create_table(:request_yaml_configs, {:id=>:integer})
3820 -> 0.0077s
3821-- add_index(:request_yaml_configs, [:repository_id, :key])
3822 -> 0.0035s
3823-- add_column(:requests, :yaml_config_id, :integer)
3824 -> 0.0013s
3825== 20180531000000 CreateRequestYamlConfigs: migrated (0.0127s) ================
3827== 20180606000000 IndexCommitsOnRepositoryId: migrating =======================
3828-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_commits_on_repository_id ON commits (repository_id)")
3829 -> 0.0047s
3830== 20180606000000 IndexCommitsOnRepositoryId: migrated (0.0047s) ==============
3832== 20180606000001 IndexJobsOnRepositoryId: migrating ==========================
3833-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_jobs_on_repository_id ON jobs (repository_id)")
3834 -> 0.0044s
3835== 20180606000001 IndexJobsOnRepositoryId: migrated (0.0044s) =================
3837== 20180614000000 DropRequestsConfig: migrating ===============================
3838-- remove_column(:requests, :config)
3839 -> 0.0010s
3840== 20180614000000 DropRequestsConfig: migrated (0.0010s) ======================
3842== 20180614000001 DropBuildsConfig: migrating =================================
3843-- remove_column(:builds, :config)
3844 -> 0.0008s
3845== 20180614000001 DropBuildsConfig: migrated (0.0009s) ========================
3847== 20180614000002 DropJobsConfig: migrating ===================================
3848-- remove_column(:jobs, :config)
3849 -> 0.0008s
3850== 20180614000002 DropJobsConfig: migrated (0.0009s) ==========================
3852== 20180620000000 IndexBuildsOnRepositoryIdEventTypeId: migrating =============
3853-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_builds_on_repository_id_event_type_id ON builds (repository_id, event_type, id DESC)")
3854 -> 0.0050s
3855== 20180620000000 IndexBuildsOnRepositoryIdEventTypeId: migrated (0.0051s) ====
3857== 20180725000000 CreateCancellations: migrating ==============================
3858-- create_table(:cancellations, {:id=>:integer})
3859 -> 0.0097s
3860== 20180725000000 CreateCancellations: migrated (0.0101s) =====================
3862== 20180726000000 CommitsIndexAuthorEmail: migrating ==========================
3863-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_commits_on_author_email ON commits (author_email)")
3864 -> 0.0040s
3865== 20180726000000 CommitsIndexAuthorEmail: migrated (0.0040s) =================
3867== 20180726000001 CommitsIndexCommitterEmail: migrating =======================
3868-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_commits_on_committer_email ON commits (committer_email)")
3869 -> 0.0040s
3870== 20180726000001 CommitsIndexCommitterEmail: migrated (0.0041s) ==============
3872== 20180801000001 UsersAddRedactedAt: migrating ===============================
3873-- change_table(:users)
3874 -> 0.0009s
3875== 20180801000001 UsersAddRedactedAt: migrated (0.0009s) ======================
3877== 20180822000000 CreateEmailUnsubscribes: migrating ==========================
3878-- create_table(:email_unsubscribes, {:id=>:integer})
3879 -> 0.0134s
3880== 20180822000000 CreateEmailUnsubscribes: migrated (0.0135s) =================
3882== 20180823000000 AddPreferences: migrating ===================================
3883-- change_table(:users)
3884 -> 0.0022s
3885== 20180823000000 AddPreferences: migrated (0.0022s) ==========================
3887== 20180828000000 ChangePreferencesDefault: migrating =========================
3888-- change_column_default(:users, :preferences, {})
3889 -> 0.0068s
3890== 20180828000000 ChangePreferencesDefault: migrated (0.0069s) ================
3892== 20180829000000 MakeEmailUnsubscribesIdBigint: migrating ====================
3893-- change_column(:email_unsubscribes, :id, :bigint)
3894 -> 0.0133s
3895== 20180829000000 MakeEmailUnsubscribesIdBigint: migrated (0.0134s) ===========
3897== 20180830000001 JobsAddRestartedAt: migrating ===============================
3898-- change_table(:jobs)
3899 -> 0.0017s
3900== 20180830000001 JobsAddRestartedAt: migrated (0.0017s) ======================
3902== 20180830000002 BuildsAddRestartedAt: migrating =============================
3903-- change_table(:builds)
3904 -> 0.0049s
3905== 20180830000002 BuildsAddRestartedAt: migrated (0.0051s) ====================
3907== 20180830000003 JobVersionsCreate: migrating ================================
3908-- create_table(:job_versions, {:id=>:integer})
3909 -> 0.0119s
3910== 20180830000003 JobVersionsCreate: migrated (0.0123s) =======================
3912== 20180903000000 JobConfigsIndexConfigResourcesGpu: migrating ================
3913-- execute("CREATE OR REPLACE FUNCTION is_json(text) RETURNS boolean LANGUAGE plpgsql immutable AS $$\n BEGIN\n perform $1::json;\n return true;\n EXCEPTION WHEN invalid_text_representation THEN\n return false;\n END\n$$;\n")
3914 -> 0.0017s
3915-- execute("CREATE INDEX CONCURRENTLY index_job_configs_on_config_resources_gpu ON job_configs (((config ->> 'resources')::jsonb ->> 'gpu')) WHERE is_json((config ->> 'resources')::text) AND ((config ->> 'resources')::jsonb ->> 'gpu') IS NOT NULL;\n")
3916 -> 0.0055s
3917== 20180903000000 JobConfigsIndexConfigResourcesGpu: migrated (0.0074s) =======
3919== 20180903000001 FixIndexesOnBuildsAndJobsConfigId: migrating ================
3920-- execute("DROP INDEX index_builds_on_config_id")
3921 -> 0.0023s
3922-- execute("CREATE INDEX CONCURRENTLY index_builds_on_config_id ON builds (config_id)")
3923 -> 0.0051s
3924-- execute("DROP INDEX index_jobs_on_config_id")
3925 -> 0.0016s
3926-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_config_id ON jobs (config_id)")
3927 -> 0.0052s
3928== 20180903000001 FixIndexesOnBuildsAndJobsConfigId: migrated (0.0147s) =======
3930== 20180904000001 CreateJobConfigsGpu: migrating ==============================
3931-- execute("CREATE MATERIALIZED VIEW job_configs_gpu AS\nSELECT id FROM job_configs WHERE\n is_json((config ->> 'resources')::text) AND\n ((config ->> 'resources')::jsonb ->> 'gpu') IS NOT NULL;\n")
3932 -> 0.0028s
3933== 20180904000001 CreateJobConfigsGpu: migrated (0.0029s) =====================
3935== 20180906000000 AddIndexUsersPreferencesBuildEmails: migrating ==============
3936-- execute("CREATE INDEX CONCURRENTLY user_preferences_build_emails_false ON users (id) WHERE preferences->>'build_emails' = 'false';\n")
3937 -> 0.0060s
3938== 20180906000000 AddIndexUsersPreferencesBuildEmails: migrated (0.0063s) =====
3940== 20181002115306 DeleteDuplicateRecordsFromMemberships: migrating ============
3941-- execute("DELETE FROM memberships WHERE id in (\n\tSELECT a.id FROM\n\t\t(SELECT m.id, row_number() OVER (ORDER BY m.id) as rnum\n FROM (SELECT user_id, organization_id\n FROM memberships\n GROUP BY (user_id, organization_id)\n HAVING count(*) > 1) t\n INNER JOIN memberships m ON m.user_id = t.user_id AND m.organization_id = t.organization_id) AS a\n WHERE mod(a.rnum, 2) = 0);\n")
3942 -> 0.0068s
3943== 20181002115306 DeleteDuplicateRecordsFromMemberships: migrated (0.0071s) ===
3945== 20181002115307 AddConstraintOnOrganizationAndUserToMemberships: migrating ==
3946-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_organization_id_and_user_id_on_memberships ON memberships USING btree (organization_id, user_id);\n")
3947 -> 0.0042s
3948== 20181002115307 AddConstraintOnOrganizationAndUserToMemberships: migrated (0.0042s)
3950== 20181018000000 IndexBuildsOnCreatedAt: migrating ===========================
3951-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_builds_on_created_at ON builds (created_at)")
3952 -> 0.0043s
3953== 20181018000000 IndexBuildsOnCreatedAt: migrated (0.0043s) ==================
3955== 20181029120000 AddMigrationStatusColumnToRepositories: migrating ===========
3956-- add_column(:repositories, :migration_status, :string)
3957 -> 0.0007s
3958== 20181029120000 AddMigrationStatusColumnToRepositories: migrated (0.0008s) ==
3960== 20181113120000 AddGithubGuidColumnToRequests: migrating ====================
3961-- add_column(:requests, :github_guid, :text)
3962 -> 0.0012s
3963-- add_index(:requests, :github_guid, {:algorithm=>:concurrently, :unique=>true})
3964 -> 0.0044s
3965== 20181113120000 AddGithubGuidColumnToRequests: migrated (0.0058s) ===========
3967== 20181116800000 AddConstraintsToMultipleTables: migrating ===================
3968-- execute("ALTER TABLE repositories ADD CONSTRAINT fk_repositories_on_current_build_id FOREIGN KEY (current_build_id) REFERENCES builds(id) ON DELETE SET NULL NOT VALID")
3969 -> 0.0010s
3970-- execute("ALTER TABLE repositories ADD CONSTRAINT fk_repositories_on_last_build_id FOREIGN KEY (last_build_id) REFERENCES builds(id) ON DELETE SET NULL NOT VALID")
3971 -> 0.0007s
3972-- execute("ALTER TABLE builds ADD CONSTRAINT fk_builds_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID")
3973 -> 0.0006s
3974-- execute("ALTER TABLE builds ADD CONSTRAINT fk_builds_on_commit_id FOREIGN KEY (commit_id) REFERENCES commits(id) NOT VALID")
3975 -> 0.0005s
3976-- execute("ALTER TABLE builds ADD CONSTRAINT fk_builds_on_request_id FOREIGN KEY (request_id) REFERENCES requests(id) NOT VALID")
3977 -> 0.0006s
3978-- execute("ALTER TABLE builds ADD CONSTRAINT fk_builds_on_pull_request_id FOREIGN KEY (pull_request_id) REFERENCES pull_requests(id) NOT VALID")
3979 -> 0.0006s
3980-- execute("ALTER TABLE builds ADD CONSTRAINT fk_builds_on_branch_id FOREIGN KEY (branch_id) REFERENCES branches(id) NOT VALID")
3981 -> 0.0006s
3982-- execute("ALTER TABLE builds ADD CONSTRAINT fk_builds_on_tag_id FOREIGN KEY (tag_id) REFERENCES tags(id) NOT VALID")
3983 -> 0.0007s
3984-- execute("ALTER TABLE builds ADD CONSTRAINT fk_builds_on_config_id FOREIGN KEY (config_id) REFERENCES build_configs(id) NOT VALID")
3985 -> 0.0006s
3986-- execute("ALTER TABLE jobs ADD CONSTRAINT fk_jobs_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID")
3987 -> 0.0005s
3988-- execute("ALTER TABLE jobs ADD CONSTRAINT fk_jobs_on_commit_id FOREIGN KEY (commit_id) REFERENCES commits(id) NOT VALID")
3989 -> 0.0066s
3990-- execute("ALTER TABLE jobs ADD CONSTRAINT fk_jobs_on_stage_id FOREIGN KEY (stage_id) REFERENCES stages(id) NOT VALID")
3991 -> 0.0079s
3992-- execute("ALTER TABLE jobs ADD CONSTRAINT fk_jobs_on_config_id FOREIGN KEY (config_id) REFERENCES job_configs(id) NOT VALID")
3993 -> 0.0027s
3994-- execute("ALTER TABLE branches ADD CONSTRAINT fk_branches_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID")
3995 -> 0.0026s
3996-- execute("ALTER TABLE branches ADD CONSTRAINT fk_branches_on_last_build_id FOREIGN KEY (last_build_id) REFERENCES builds(id) ON DELETE SET NULL NOT VALID")
3997 -> 0.0015s
3998-- execute("ALTER TABLE tags ADD CONSTRAINT fk_tags_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID")
3999 -> 0.0019s
4000-- execute("ALTER TABLE tags ADD CONSTRAINT fk_tags_on_last_build_id FOREIGN KEY (last_build_id) REFERENCES builds(id) ON DELETE SET NULL NOT VALID")
4001 -> 0.0018s
4002-- execute("ALTER TABLE commits ADD CONSTRAINT fk_commits_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID")
4003 -> 0.0017s
4004-- execute("ALTER TABLE commits ADD CONSTRAINT fk_commits_on_branch_id FOREIGN KEY (branch_id) REFERENCES branches(id) NOT VALID")
4005 -> 0.0012s
4006-- execute("ALTER TABLE commits ADD CONSTRAINT fk_commits_on_tag_id FOREIGN KEY (tag_id) REFERENCES tags(id) NOT VALID")
4007 -> 0.0017s
4008-- execute("ALTER TABLE crons ADD CONSTRAINT fk_crons_on_branch_id FOREIGN KEY (branch_id) REFERENCES branches(id) NOT VALID")
4009 -> 0.0019s
4010-- execute("ALTER TABLE job_configs ADD CONSTRAINT fk_job_configs_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID")
4011 -> 0.0015s
4012-- execute("ALTER TABLE build_configs ADD CONSTRAINT fk_build_configs_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID")
4013 -> 0.0012s
4014-- execute("ALTER TABLE pull_requests ADD CONSTRAINT fk_pull_requests_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID")
4015 -> 0.0018s
4016-- execute("ALTER TABLE ssl_keys ADD CONSTRAINT fk_ssl_keys_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID")
4017 -> 0.0016s
4018-- execute("ALTER TABLE requests ADD CONSTRAINT fk_requests_on_commit_id FOREIGN KEY (commit_id) REFERENCES commits(id) NOT VALID")
4019 -> 0.0017s
4020-- execute("ALTER TABLE requests ADD CONSTRAINT fk_requests_on_pull_request_id FOREIGN KEY (pull_request_id) REFERENCES pull_requests(id) NOT VALID")
4021 -> 0.0015s
4022-- execute("ALTER TABLE requests ADD CONSTRAINT fk_requests_on_branch_id FOREIGN KEY (branch_id) REFERENCES branches(id) NOT VALID")
4023 -> 0.0015s
4024-- execute("ALTER TABLE requests ADD CONSTRAINT fk_requests_on_tag_id FOREIGN KEY (tag_id) REFERENCES tags(id) NOT VALID")
4025 -> 0.0015s
4026-- execute("ALTER TABLE requests ADD CONSTRAINT fk_requests_on_config_id FOREIGN KEY (config_id) REFERENCES request_configs(id) NOT VALID")
4027 -> 0.0016s
4028-- execute("ALTER TABLE stages ADD CONSTRAINT fk_stages_on_build_id FOREIGN KEY (build_id) REFERENCES builds(id) NOT VALID")
4029 -> 0.0015s
4030== 20181116800000 AddConstraintsToMultipleTables: migrated (0.0569s) ==========
4032== 20181116800001 ValidateConstraints: migrating ==============================
4033-- execute("ALTER TABLE repositories VALIDATE CONSTRAINT fk_repositories_on_current_build_id")
4034 -> 0.0026s
4035-- execute("ALTER TABLE repositories VALIDATE CONSTRAINT fk_repositories_on_last_build_id")
4036 -> 0.0016s
4037-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_builds_on_repository_id")
4038 -> 0.0016s
4039-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_builds_on_commit_id")
4040 -> 0.0016s
4041-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_builds_on_request_id")
4042 -> 0.0016s
4043-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_builds_on_pull_request_id")
4044 -> 0.0015s
4045-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_builds_on_branch_id")
4046 -> 0.0016s
4047-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_builds_on_tag_id")
4048 -> 0.0013s
4049-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_builds_on_config_id")
4050 -> 0.0014s
4051-- execute("ALTER TABLE jobs VALIDATE CONSTRAINT fk_jobs_on_repository_id")
4052 -> 0.0017s
4053-- execute("ALTER TABLE jobs VALIDATE CONSTRAINT fk_jobs_on_commit_id")
4054 -> 0.0012s
4055-- execute("ALTER TABLE jobs VALIDATE CONSTRAINT fk_jobs_on_stage_id")
4056 -> 0.0012s
4057-- execute("ALTER TABLE jobs VALIDATE CONSTRAINT fk_jobs_on_config_id")
4058 -> 0.0012s
4059-- execute("ALTER TABLE branches VALIDATE CONSTRAINT fk_branches_on_repository_id")
4060 -> 0.0010s
4061-- execute("ALTER TABLE branches VALIDATE CONSTRAINT fk_branches_on_last_build_id")
4062 -> 0.0011s
4063-- execute("ALTER TABLE tags VALIDATE CONSTRAINT fk_tags_on_repository_id")
4064 -> 0.0009s
4065-- execute("ALTER TABLE tags VALIDATE CONSTRAINT fk_tags_on_last_build_id")
4066 -> 0.0010s
4067-- execute("ALTER TABLE commits VALIDATE CONSTRAINT fk_commits_on_repository_id")
4068 -> 0.0010s
4069-- execute("ALTER TABLE commits VALIDATE CONSTRAINT fk_commits_on_branch_id")
4070 -> 0.0008s
4071-- execute("ALTER TABLE commits VALIDATE CONSTRAINT fk_commits_on_tag_id")
4072 -> 0.0008s
4073-- execute("ALTER TABLE crons VALIDATE CONSTRAINT fk_crons_on_branch_id")
4074 -> 0.0012s
4075-- execute("ALTER TABLE job_configs VALIDATE CONSTRAINT fk_job_configs_on_repository_id")
4076 -> 0.0009s
4077-- execute("ALTER TABLE build_configs VALIDATE CONSTRAINT fk_build_configs_on_repository_id")
4078 -> 0.0009s
4079-- execute("ALTER TABLE pull_requests VALIDATE CONSTRAINT fk_pull_requests_on_repository_id")
4080 -> 0.0009s
4081-- execute("ALTER TABLE ssl_keys VALIDATE CONSTRAINT fk_ssl_keys_on_repository_id")
4082 -> 0.0011s
4083-- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_requests_on_commit_id")
4084 -> 0.0009s
4085-- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_requests_on_pull_request_id")
4086 -> 0.0010s
4087-- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_requests_on_branch_id")
4088 -> 0.0009s
4089-- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_requests_on_tag_id")
4090 -> 0.0009s
4091-- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_requests_on_config_id")
4092 -> 0.0011s
4093-- execute("ALTER TABLE stages VALIDATE CONSTRAINT fk_stages_on_build_id")
4094 -> 0.0010s
4095== 20181116800001 ValidateConstraints: migrated (0.0387s) =====================
4097== 20181126080000 AddIndexesForForeignKeys: migrating =========================
4098-- index_exists?(:builds, :branch_id)
4099 -> 0.0121s
4100-- add_index(:builds, :branch_id, {:algorithm=>:concurrently})
4101 -> 0.0055s
4102-- index_exists?(:builds, :commit_id)
4103 -> 0.0071s
4104-- add_index(:builds, :commit_id, {:algorithm=>:concurrently})
4105 -> 0.0052s
4106-- index_exists?(:builds, :pull_request_id)
4107 -> 0.0072s
4108-- add_index(:builds, :pull_request_id, {:algorithm=>:concurrently})
4109 -> 0.0047s
4110-- index_exists?(:builds, :tag_id)
4111 -> 0.0080s
4112-- add_index(:builds, :tag_id, {:algorithm=>:concurrently})
4113 -> 0.0045s
4114-- index_exists?(:jobs, :commit_id)
4115 -> 0.0061s
4116-- add_index(:jobs, :commit_id, {:algorithm=>:concurrently})
4117 -> 0.0050s
4118-- index_exists?(:branches, :last_build_id)
4119 -> 0.0027s
4120-- add_index(:branches, :last_build_id, {:algorithm=>:concurrently})
4121 -> 0.0044s
4122-- index_exists?(:tags, :repository_id)
4123 -> 0.0023s
4124-- add_index(:tags, :repository_id, {:algorithm=>:concurrently})
4125 -> 0.0043s
4126-- index_exists?(:tags, :last_build_id)
4127 -> 0.0025s
4128-- add_index(:tags, :last_build_id, {:algorithm=>:concurrently})
4129 -> 0.0047s
4130-- index_exists?(:commits, :tag_id)
4131 -> 0.0029s
4132-- add_index(:commits, :tag_id, {:algorithm=>:concurrently})
4133 -> 0.0045s
4134-- index_exists?(:commits, :branch_id)
4135 -> 0.0034s
4136-- add_index(:commits, :branch_id, {:algorithm=>:concurrently})
4137 -> 0.0045s
4138-- index_exists?(:job_configs, :repository_id)
4139 -> 0.0017s
4140-- add_index(:job_configs, :repository_id, {:algorithm=>:concurrently})
4141 -> 0.0043s
4142-- index_exists?(:build_configs, :repository_id)
4143 -> 0.0016s
4144-- add_index(:build_configs, :repository_id, {:algorithm=>:concurrently})
4145 -> 0.0051s
4146-- index_exists?(:pull_requests, :repository_id)
4147 -> 0.0023s
4148-- add_index(:pull_requests, :repository_id, {:algorithm=>:concurrently})
4149 -> 0.0044s
4150-- index_exists?(:requests, :pull_request_id)
4151 -> 0.0203s
4152-- add_index(:requests, :pull_request_id, {:algorithm=>:concurrently})
4153 -> 0.0055s
4154-- index_exists?(:requests, :tag_id)
4155 -> 0.0076s
4156-- add_index(:requests, :tag_id, {:algorithm=>:concurrently})
4157 -> 0.0050s
4158-- index_exists?(:requests, :branch_id)
4159 -> 0.0087s
4160-- add_index(:requests, :branch_id, {:algorithm=>:concurrently})
4161 -> 0.0053s
4162-- index_exists?(:repositories, :current_build_id)
4163 -> 0.0112s
4164-- add_index(:repositories, :current_build_id, {:algorithm=>:concurrently})
4165 -> 0.0057s
4166-- index_exists?(:repositories, :last_build_id)
4167 -> 0.0092s
4168-- add_index(:repositories, :last_build_id, {:algorithm=>:concurrently})
4169 -> 0.0057s
4170-- index_exists?(:crons, :branch_id)
4171 -> 0.0031s
4172-- add_index(:crons, :branch_id, {:algorithm=>:concurrently})
4173 -> 0.0045s
4174== 20181126080000 AddIndexesForForeignKeys: migrated (0.2162s) ================
4176== 20181128120000 AddUniqueIndexToBranchesOnRepositoryIdAndName: migrating ====
4177-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_branches_on_repository_id_and_name ON branches(repository_id, name)")
4178 -> 0.0045s
4179== 20181128120000 AddUniqueIndexToBranchesOnRepositoryIdAndName: migrated (0.0045s)
4181== 20181203075818 AddUniqueNameColumnToBranches: migrating ====================
4182-- add_column(:branches, :unique_name, :text)
4183 -> 0.0007s
4184== 20181203075818 AddUniqueNameColumnToBranches: migrated (0.0008s) ===========
4186== 20181203075819 AddSetUniqueNameTriggerToBranches: migrating ================
4187-- execute("DROP TRIGGER IF EXISTS set_unique_name_on_branches ON branches;\nDROP FUNCTION IF EXISTS set_unique_name();\nCREATE FUNCTION set_unique_name() RETURNS trigger AS $$\nDECLARE\n disable boolean;\nBEGIN\n disable := 'f';\n IF TG_OP = 'INSERT' OR TG_OP = 'UPDATE' THEN\n BEGIN\n disable := current_setting('set_unique_name_on_branches.disable');\n EXCEPTION\n WHEN others THEN\n set set_unique_name_on_branches.disable = 'f';\n END;\n\n IF NOT disable THEN\n NEW.unique_name := NEW.name;\n END IF;\n END IF;\n RETURN NEW;\nEND;\n$$ LANGUAGE plpgsql;\n\nCREATE TRIGGER set_unique_name_on_branches\nBEFORE INSERT OR UPDATE ON branches\nFOR EACH ROW\nEXECUTE PROCEDURE set_unique_name();\n")
4188 -> 0.0009s
4189== 20181203075819 AddSetUniqueNameTriggerToBranches: migrated (0.0010s) =======
4191== 20181203080356 CreateIndexOnBranchesUniqueNameAndRepositoryId: migrating ===
4192-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_branches_repository_id_unique_name ON branches(repository_id, unique_name) WHERE unique_name IS NOT NULL")
4193 -> 0.0051s
4194== 20181203080356 CreateIndexOnBranchesUniqueNameAndRepositoryId: migrated (0.0052s)
4196== 20181205152712 AddUniqueIndexToCronsOnBranchId: migrating ==================
4197-- execute("DROP INDEX CONCURRENTLY index_crons_on_branch_id")
4198 -> 0.0025s
4199-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_crons_on_branch_id ON crons(branch_id)")
4200 -> 0.0042s
4201== 20181205152712 AddUniqueIndexToCronsOnBranchId: migrated (0.0068s) =========
4203== 20190102000000 AddOrganizationPreferences: migrating =======================
4204-- change_table(:organizations)
4205 -> 0.0012s
4206== 20190102000000 AddOrganizationPreferences: migrated (0.0012s) ==============
4208== 20190102000001 ChangeOrganizationPreferencesDefault: migrating =============
4209-- change_column_default(:organizations, :preferences, {})
4210 -> 0.0024s
4211== 20190102000001 ChangeOrganizationPreferencesDefault: migrated (0.0024s) ====
4213== 20190109000000 CreateBetaMigrationRequestTable: migrating ==================
4214-- create_table(:beta_migration_requests, {:id=>:integer})
4215 -> 0.0059s
4216-- add_index(:beta_migration_requests, [:owner_type, :owner_id])
4217 -> 0.0025s
4218== 20190109000000 CreateBetaMigrationRequestTable: migrated (0.0086s) =========
4220== 20190118000000 AddBetaMigrationRequestColumnToOrganizations: migrating =====
4221-- add_column(:organizations, :beta_migration_request_id, :integer)
4222 -> 0.0007s
4223== 20190118000000 AddBetaMigrationRequestColumnToOrganizations: migrated (0.0008s)
4225== 20190204000000 MakeSubscriptionOwnerNotNullable: migrating =================
4226-- change_column_null(:subscriptions, :owner_type, false)
4227 -> 0.0006s
4228-- change_column_null(:subscriptions, :owner_id, false)
4229 -> 0.0005s
4230== 20190204000000 MakeSubscriptionOwnerNotNullable: migrated (0.0011s) ========
4232== 20190313000000 RequestRawConfigsCreate: migrating ==========================
4233-- create_table(:request_raw_configs, {:id=>:integer})
4234 -> 0.0057s
4235-- add_index(:request_raw_configs, [:repository_id, :key])
4236 -> 0.0025s
4237-- create_table(:request_raw_configurations, {:id=>:integer})
4238 -> 0.0053s
4239-- add_index(:request_raw_configurations, :request_id)
4240 -> 0.0024s
4241-- add_index(:request_raw_configurations, :request_raw_config_id)
4242 -> 0.0023s
4243== 20190313000000 RequestRawConfigsCreate: migrated (0.0185s) =================
4245== 20190329093854 CreateGatekeeperWorkers: migrating ==========================
4246-- create_table(:gatekeeper_workers)
4247 -> 0.0035s
4248-- execute("INSERT INTO gatekeeper_workers(id) SELECT generate_series(1,200) as id;")
4249 -> 0.0008s
4250== 20190329093854 CreateGatekeeperWorkers: migrated (0.0044s) =================
4252== 20190409133118 AddUniqueNumberColumnToBuilds: migrating ====================
4253-- add_column(:builds, :unique_number, :int)
4254 -> 0.0008s
4255== 20190409133118 AddUniqueNumberColumnToBuilds: migrated (0.0008s) ===========
4257== 20190409133320 AddSetUniqueNumberTriggerToBuilds: migrating ================
4258-- execute("DROP TRIGGER IF EXISTS set_unique_number_on_builds ON builds;\nDROP FUNCTION IF EXISTS set_unique_number();\nCREATE FUNCTION set_unique_number() RETURNS trigger AS $$\nDECLARE\n disable boolean;\nBEGIN\n disable := 'f';\n IF TG_OP = 'INSERT' OR TG_OP = 'UPDATE' THEN\n BEGIN\n disable := current_setting('set_unique_number_on_builds.disable');\n EXCEPTION\n WHEN others THEN\n set set_unique_number_on_builds.disable = 'f';\n END;\n\n IF NOT disable THEN\n IF NEW.unique_number IS NULL OR NEW.unique_number > 0 THEN\n NEW.unique_number := NEW.number;\n END IF;\n END IF;\n END IF;\n RETURN NEW;\nEND;\n$$ LANGUAGE plpgsql;\n\nCREATE TRIGGER set_unique_number_on_builds\nBEFORE INSERT OR UPDATE ON builds\nFOR EACH ROW\nEXECUTE PROCEDURE set_unique_number();\n")
4259 -> 0.0009s
4260== 20190409133320 AddSetUniqueNumberTriggerToBuilds: migrated (0.0010s) =======
4262== 20190409133444 CreateUniqueIndexOnRepositoryIdAndNumberOnBuilds: migrating =
4263-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_builds_repository_id_unique_number ON builds(repository_id, unique_number) WHERE unique_number IS NOT NULL")
4264 -> 0.0045s
4265== 20190409133444 CreateUniqueIndexOnRepositoryIdAndNumberOnBuilds: migrated (0.0045s)
4267== 20190410121039 MakeSetUniqueNumberTriggerRunOnlyOnInsert: migrating ========
4268-- execute(" DROP TRIGGER set_unique_number_on_builds ON builds;\n CREATE TRIGGER set_unique_number_on_builds\n BEFORE INSERT ON builds\n FOR EACH ROW\n EXECUTE PROCEDURE set_unique_number();\n")
4269 -> 0.0008s
4270== 20190410121039 MakeSetUniqueNumberTriggerRunOnlyOnInsert: migrated (0.0008s)
4272== 20190416071629 RemoveUniqueNameFromBranches: migrating =====================
4273-- execute("drop index concurrently index_branches_repository_id_unique_name;")
4274 -> 0.0022s
4275-- execute("DROP TRIGGER IF EXISTS set_unique_name_on_branches ON branches;\nDROP FUNCTION IF EXISTS set_unique_name();\n\n")
4276 -> 0.0009s
4277-- remove_column(:branches, :unique_name)
4278 -> 0.0009s
4279== 20190416071629 RemoveUniqueNameFromBranches: migrated (0.0042s) ============
4281== 20190417072423 AlterBuildsUniqueNumberIndex: migrating =====================
4282-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_builds_repository_id_unique_number_new ON builds(repository_id, unique_number) WHERE unique_number IS NOT NULL AND unique_number > 0")
4283 -> 0.0043s
4284-- execute("DROP INDEX CONCURRENTLY index_builds_repository_id_unique_number")
4285 -> 0.0023s
4286-- execute("ALTER INDEX index_builds_repository_id_unique_number_new RENAME TO index_builds_repository_id_unique_number")
4287 -> 0.0010s
4288== 20190417072423 AlterBuildsUniqueNumberIndex: migrated (0.0077s) ============
4290== 20190417072838 ReinstallSetUniqueNumberTrigger: migrating ==================
4291-- execute("DROP TRIGGER IF EXISTS set_unique_number_on_builds ON builds;\nDROP FUNCTION IF EXISTS set_unique_number();\n")
4292 -> 0.0073s
4293-- execute("DROP TRIGGER IF EXISTS set_unique_number_on_builds ON builds;\nDROP FUNCTION IF EXISTS set_unique_number();\nCREATE FUNCTION set_unique_number() RETURNS trigger AS $$\nDECLARE\n disable boolean;\nBEGIN\n disable := 'f';\n IF TG_OP = 'INSERT' OR TG_OP = 'UPDATE' THEN\n BEGIN\n disable := current_setting('set_unique_number_on_builds.disable');\n EXCEPTION\n WHEN others THEN\n set set_unique_number_on_builds.disable = 'f';\n END;\n\n IF NOT disable THEN\n IF NEW.unique_number IS NULL OR NEW.unique_number > 0 THEN\n NEW.unique_number := NEW.number;\n END IF;\n END IF;\n END IF;\n RETURN NEW;\nEND;\n$$ LANGUAGE plpgsql;\n\nCREATE TRIGGER set_unique_number_on_builds\nBEFORE INSERT OR UPDATE ON builds\nFOR EACH ROW\nEXECUTE PROCEDURE set_unique_number();\n")
4294 -> 0.0036s
4295== 20190417072838 ReinstallSetUniqueNumberTrigger: migrated (0.0154s) =========
4297== 20190502175059 AddMergeableStateToPullRequests: migrating ==================
4298-- add_column(:pull_requests, :mergeable_state, :string)
4299 -> 0.0021s
4300== 20190502175059 AddMergeableStateToPullRequests: migrated (0.0024s) =========
4302== 20190510121000 AddReposIndexOnLowerOwnerNameAndName: migrating =============
4303-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_repositories_on_lower_owner_name_and_name ON repositories (LOWER(owner_name), LOWER(name)) WHERE invalidated_at IS NULL")
4304 -> 0.0047s
4305== 20190510121000 AddReposIndexOnLowerOwnerNameAndName: migrated (0.0048s) ====
4307== 20190605121000 AddHistoryMigrationStatusToRepositories: migrating ==========
4308-- add_column(:repositories, :history_migration_status, :string)
4309 -> 0.0017s
4310== 20190605121000 AddHistoryMigrationStatusToRepositories: migrated (0.0019s) =
4312== 20190605155459 AddPullRequestMergeableToRequests: migrating ================
4313-- add_column(:requests, :pull_request_mergeable, :string)
4314 -> 0.0035s
4315== 20190605155459 AddPullRequestMergeableToRequests: migrated (0.0037s) =======
4317== 20190613120000 SoftDeleteRepositoryAlongWithItsData: migrating =============
4318-- execute("create table if not exists deleted_builds (like builds)")
4319 -> 0.0052s
4320-- execute("create table if not exists deleted_stages (like stages)")
4321 -> 0.0041s
4322-- execute("create table if not exists deleted_jobs (like jobs)")
4323 -> 0.0043s
4324-- execute("create table if not exists deleted_requests (like requests)")
4325 -> 0.0036s
4326-- execute("create table if not exists deleted_commits (like commits)")
4327 -> 0.0028s
4328-- execute("create table if not exists deleted_pull_requests (like pull_requests)")
4329 -> 0.0030s
4330-- execute("create table if not exists deleted_job_configs (like job_configs)")
4331 -> 0.0026s
4332-- execute("create table if not exists deleted_build_configs (like build_configs)")
4333 -> 0.0030s
4334-- execute("create table if not exists deleted_request_configs (like request_configs)")
4335 -> 0.0028s
4336-- execute("create table if not exists deleted_request_payloads (like request_payloads)")
4337 -> 0.0055s
4338-- execute("create table if not exists deleted_ssl_keys (like ssl_keys)")
4339 -> 0.0032s
4340-- execute("create table if not exists deleted_tags (like tags)")
4341 -> 0.0030s
4342-- execute("DROP FUNCTION IF EXISTS soft_delete_repo_data(bigint);\nCREATE FUNCTION soft_delete_repo_data(r_id bigint) RETURNS void AS $$\nDECLARE\n request_raw_config_ids bigint[];\n request_raw_configuration_ids bigint[];\n request_yaml_config_ids bigint[];\n request_config_ids bigint[];\n tag_ids bigint[];\n ssl_key_ids bigint[];\n build_config_ids bigint[];\n job_config_ids bigint[];\n build_ids bigint[];\n pull_request_ids bigint[];\n commit_ids bigint[];\n request_ids bigint[];\n request_payload_ids bigint[];\n stage_ids bigint[];\n job_ids bigint[];\nBEGIN\n SELECT INTO job_ids array_agg(id) FROM jobs WHERE repository_id = r_id;\n SELECT INTO stage_ids array_agg(id) FROM stages WHERE build_id IN (SELECT id FROM builds WHERE repository_id = r_id);\n SELECT INTO request_payload_ids array_agg(id) FROM request_payloads WHERE request_id IN (SELECT id FROM requests WHERE repository_id = r_id);\n SELECT INTO request_ids array_agg(id) FROM requests WHERE repository_id = r_id;\n SELECT INTO commit_ids array_agg(id) FROM commits WHERE repository_id = r_id;\n SELECT INTO pull_request_ids array_agg(id) FROM pull_requests WHERE repository_id = r_id;\n SELECT INTO build_ids array_agg(id) FROM builds WHERE repository_id = r_id;\n SELECT INTO job_config_ids array_agg(id) FROM job_configs WHERE repository_id = r_id;\n SELECT INTO build_config_ids array_agg(id) FROM build_configs WHERE repository_id = r_id;\n SELECT INTO ssl_key_ids array_agg(id) FROM ssl_keys WHERE repository_id = r_id;\n SELECT INTO tag_ids array_agg(id) FROM tags WHERE repository_id = r_id;\n SELECT INTO request_config_ids array_agg(id) FROM request_configs WHERE repository_id = r_id;\n SELECT INTO request_yaml_config_ids array_agg(id) FROM request_yaml_configs WHERE repository_id = r_id;\n SELECT INTO request_raw_configuration_ids array_agg(id) FROM request_raw_configurations WHERE request_id = ANY(request_ids);\n SELECT INTO request_raw_config_ids array_agg(id) FROM request_raw_configs WHERE id IN (SELECT request_raw_config_id FROM request_raw_configurations WHERE request_id = ANY(request_ids));\n\n INSERT INTO deleted_jobs SELECT * FROM jobs WHERE id = ANY(job_ids);\n INSERT INTO deleted_stages SELECT * FROM stages WHERE id = ANY(stage_ids);\n INSERT INTO deleted_request_payloads SELECT * FROM request_payloads WHERE id = ANY(request_payload_ids);\n INSERT INTO deleted_requests SELECT * FROM requests WHERE id = ANY(request_ids);\n INSERT INTO deleted_commits SELECT * FROM commits WHERE id = ANY(commit_ids);\n INSERT INTO deleted_pull_requests SELECT * FROM pull_requests WHERE id = ANY(pull_request_ids);\n INSERT INTO deleted_builds SELECT * FROM builds WHERE id = ANY(build_ids);\n INSERT INTO deleted_job_configs SELECT * FROM job_configs WHERE id = ANY(job_config_ids);\n INSERT INTO deleted_build_configs SELECT * FROM build_configs WHERE id = ANY(build_config_ids);\n INSERT INTO deleted_ssl_keys SELECT * FROM ssl_keys WHERE id = ANY(ssl_key_ids);\n INSERT INTO deleted_tags SELECT * FROM tags WHERE id = ANY(tag_ids);\n INSERT INTO deleted_request_configs SELECT * FROM request_configs WHERE id = ANY(request_config_ids);\n INSERT INTO deleted_request_yaml_configs SELECT * FROM request_yaml_configs WHERE id = ANY(request_yaml_config_ids);\n INSERT INTO deleted_request_raw_configurations SELECT * FROM request_raw_configurations WHERE id = ANY(request_raw_configuration_ids);\n INSERT INTO deleted_request_raw_configs SELECT * FROM request_raw_configs WHERE id = ANY(request_raw_config_ids);\n\n DELETE FROM jobs WHERE id = ANY(job_ids);\n DELETE FROM stages WHERE id = ANY(stage_ids);\n DELETE FROM request_payloads WHERE id = ANY(request_payload_ids);\n DELETE FROM requests WHERE id = ANY(request_ids);\n DELETE FROM commits WHERE id = ANY(commit_ids);\n DELETE FROM pull_requests WHERE id = ANY(pull_request_ids);\n DELETE FROM builds WHERE id = ANY(build_ids);\n DELETE FROM job_configs WHERE id = ANY(job_config_ids);\n DELETE FROM build_configs WHERE id = ANY(build_config_ids);\n DELETE FROM ssl_keys WHERE id = ANY(ssl_key_ids);\n DELETE FROM tags WHERE id = ANY(tag_ids);\n DELETE FROM request_configs WHERE id = ANY(request_config_ids);\n DELETE FROM request_yaml_configs WHERE id = ANY(request_yaml_config_ids);\n DELETE FROM request_raw_configurations WHERE id = ANY(request_raw_configuration_ids);\n DELETE FROM request_raw_configs WHERE id = ANY(request_raw_config_ids);\nEND;\n$$ LANGUAGE plpgsql;\n")
4343 -> 0.0017s
4344== 20190613120000 SoftDeleteRepositoryAlongWithItsData: migrated (0.0458s) ====
4346== 20190618082559 AddVcsTypeToUser: migrating =================================
4347-- add_column(:users, :vcs_type, :string, {:default=>nil})
4348 -> 0.0014s
4349-- execute("ALTER TABLE users ALTER COLUMN vcs_type SET DEFAULT 'GithubUser'")
4350 -> 0.0004s
4351-- select_value("SELECT id FROM users ORDER BY id DESC LIMIT 1")
4352 -> 0.0009s
4353-- execute("UPDATE users SET vcs_type = 'GithubUser' WHERE id BETWEEN 0 AND 5000")
4354 -> 0.0008s
4355== 20190618082559 AddVcsTypeToUser: migrated (0.0054s) ========================
4357== 20190701082559 AddVcsTypeToRepository: migrating ===========================
4358-- add_column(:repositories, :vcs_type, :string, {:default=>nil})
4359 -> 0.0012s
4360-- execute("ALTER TABLE repositories ALTER COLUMN vcs_type SET DEFAULT 'GithubRepository'")
4361 -> 0.0004s
4362-- select_value("SELECT id FROM repositories ORDER BY id DESC LIMIT 1")
4363 -> 0.0009s
4364-- execute("UPDATE repositories SET vcs_type = 'GithubRepository' WHERE id BETWEEN 0 AND 5000")
4365 -> 0.0007s
4366== 20190701082559 AddVcsTypeToRepository: migrated (0.0047s) ==================
4368== 20190704082559 AddVcsTypeToOrganization: migrating =========================
4369-- add_column(:organizations, :vcs_type, :string, {:default=>nil})
4370 -> 0.0012s
4371-- execute("ALTER TABLE organizations ALTER COLUMN vcs_type SET DEFAULT 'GithubOrganization'")
4372 -> 0.0004s
4373-- select_value("SELECT id FROM organizations ORDER BY id DESC LIMIT 1")
4374 -> 0.0010s
4375-- execute("UPDATE organizations SET vcs_type = 'GithubOrganization' WHERE id BETWEEN 0 AND 5000")
4376 -> 0.0006s
4377== 20190704082559 AddVcsTypeToOrganization: migrated (0.0047s) ================
4379== 20190718092750 AddDeleteCascadeToForeignKeys: migrating ====================
4380-- execute("ALTER TABLE builds ADD CONSTRAINT fk_new_builds_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) ON DELETE CASCADE NOT VALID")
4381 -> 0.0012s
4382-- execute("ALTER TABLE builds ADD CONSTRAINT fk_new_builds_on_commit_id FOREIGN KEY (commit_id) REFERENCES commits(id) ON DELETE CASCADE NOT VALID")
4383 -> 0.0009s
4384-- execute("ALTER TABLE builds ADD CONSTRAINT fk_new_builds_on_request_id FOREIGN KEY (request_id) REFERENCES requests(id) ON DELETE CASCADE NOT VALID")
4385 -> 0.0010s
4386-- execute("ALTER TABLE builds ADD CONSTRAINT fk_new_builds_on_pull_request_id FOREIGN KEY (pull_request_id) REFERENCES pull_requests(id) ON DELETE CASCADE NOT VALID")
4387 -> 0.0012s
4388-- execute("ALTER TABLE builds ADD CONSTRAINT fk_new_builds_on_branch_id FOREIGN KEY (branch_id) REFERENCES branches(id) ON DELETE CASCADE NOT VALID")
4389 -> 0.0012s
4390-- execute("ALTER TABLE builds ADD CONSTRAINT fk_new_builds_on_tag_id FOREIGN KEY (tag_id) REFERENCES tags(id) ON DELETE CASCADE NOT VALID")
4391 -> 0.0013s
4392-- execute("ALTER TABLE builds ADD CONSTRAINT fk_new_builds_on_config_id FOREIGN KEY (config_id) REFERENCES build_configs(id) ON DELETE CASCADE NOT VALID")
4393 -> 0.0011s
4394-- execute("ALTER TABLE jobs ADD CONSTRAINT fk_new_jobs_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) ON DELETE CASCADE NOT VALID")
4395 -> 0.0012s
4396-- execute("ALTER TABLE jobs ADD CONSTRAINT fk_new_jobs_on_commit_id FOREIGN KEY (commit_id) REFERENCES commits(id) ON DELETE CASCADE NOT VALID")
4397 -> 0.0008s
4398-- execute("ALTER TABLE jobs ADD CONSTRAINT fk_new_jobs_on_stage_id FOREIGN KEY (stage_id) REFERENCES stages(id) ON DELETE CASCADE NOT VALID")
4399 -> 0.0010s
4400-- execute("ALTER TABLE jobs ADD CONSTRAINT fk_new_jobs_on_config_id FOREIGN KEY (config_id) REFERENCES job_configs(id) ON DELETE CASCADE NOT VALID")
4401 -> 0.0011s
4402-- execute("ALTER TABLE branches ADD CONSTRAINT fk_new_branches_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) ON DELETE CASCADE NOT VALID")
4403 -> 0.0017s
4404-- execute("ALTER TABLE tags ADD CONSTRAINT fk_new_tags_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) ON DELETE CASCADE NOT VALID")
4405 -> 0.0018s
4406-- execute("ALTER TABLE commits ADD CONSTRAINT fk_new_commits_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) ON DELETE CASCADE NOT VALID")
4407 -> 0.0018s
4408-- execute("ALTER TABLE commits ADD CONSTRAINT fk_new_commits_on_branch_id FOREIGN KEY (branch_id) REFERENCES branches(id) ON DELETE CASCADE NOT VALID")
4409 -> 0.0019s
4410-- execute("ALTER TABLE commits ADD CONSTRAINT fk_new_commits_on_tag_id FOREIGN KEY (tag_id) REFERENCES tags(id) ON DELETE CASCADE NOT VALID")
4411 -> 0.0009s
4412-- execute("ALTER TABLE crons ADD CONSTRAINT fk_new_crons_on_branch_id FOREIGN KEY (branch_id) REFERENCES branches(id) ON DELETE CASCADE NOT VALID")
4413 -> 0.0020s
4414-- execute("ALTER TABLE job_configs ADD CONSTRAINT fk_new_job_configs_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) ON DELETE CASCADE NOT VALID")
4415 -> 0.0016s
4416-- execute("ALTER TABLE build_configs ADD CONSTRAINT fk_new_build_configs_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) ON DELETE CASCADE NOT VALID")
4417 -> 0.0020s
4418-- execute("ALTER TABLE pull_requests ADD CONSTRAINT fk_new_pull_requests_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) ON DELETE CASCADE NOT VALID")
4419 -> 0.0019s
4420-- execute("ALTER TABLE ssl_keys ADD CONSTRAINT fk_new_ssl_keys_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) ON DELETE CASCADE NOT VALID")
4421 -> 0.0018s
4422-- execute("ALTER TABLE requests ADD CONSTRAINT fk_new_requests_on_commit_id FOREIGN KEY (commit_id) REFERENCES commits(id) ON DELETE CASCADE NOT VALID")
4423 -> 0.0008s
4424-- execute("ALTER TABLE requests ADD CONSTRAINT fk_new_requests_on_pull_request_id FOREIGN KEY (pull_request_id) REFERENCES pull_requests(id) ON DELETE CASCADE NOT VALID")
4425 -> 0.0020s
4426-- execute("ALTER TABLE requests ADD CONSTRAINT fk_new_requests_on_branch_id FOREIGN KEY (branch_id) REFERENCES branches(id) ON DELETE CASCADE NOT VALID")
4427 -> 0.0018s
4428-- execute("ALTER TABLE requests ADD CONSTRAINT fk_new_requests_on_tag_id FOREIGN KEY (tag_id) REFERENCES tags(id) ON DELETE CASCADE NOT VALID")
4429 -> 0.0020s
4430-- execute("ALTER TABLE requests ADD CONSTRAINT fk_new_requests_on_config_id FOREIGN KEY (config_id) REFERENCES request_configs(id) ON DELETE CASCADE NOT VALID")
4431 -> 0.0016s
4432-- execute("ALTER TABLE stages ADD CONSTRAINT fk_new_stages_on_build_id FOREIGN KEY (build_id) REFERENCES builds(id) ON DELETE CASCADE NOT VALID")
4433 -> 0.0013s
4434-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_new_builds_on_repository_id")
4435 -> 0.0018s
4436-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_new_builds_on_commit_id")
4437 -> 0.0018s
4438-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_new_builds_on_request_id")
4439 -> 0.0018s
4440-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_new_builds_on_pull_request_id")
4441 -> 0.0017s
4442-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_new_builds_on_branch_id")
4443 -> 0.0016s
4444-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_new_builds_on_tag_id")
4445 -> 0.0013s
4446-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_new_builds_on_config_id")
4447 -> 0.0014s
4448-- execute("ALTER TABLE jobs VALIDATE CONSTRAINT fk_new_jobs_on_repository_id")
4449 -> 0.0016s
4450-- execute("ALTER TABLE jobs VALIDATE CONSTRAINT fk_new_jobs_on_commit_id")
4451 -> 0.0012s
4452-- execute("ALTER TABLE jobs VALIDATE CONSTRAINT fk_new_jobs_on_stage_id")
4453 -> 0.0058s
4454-- execute("ALTER TABLE jobs VALIDATE CONSTRAINT fk_new_jobs_on_config_id")
4455 -> 0.0018s
4456-- execute("ALTER TABLE branches VALIDATE CONSTRAINT fk_new_branches_on_repository_id")
4457 -> 0.0015s
4458-- execute("ALTER TABLE tags VALIDATE CONSTRAINT fk_new_tags_on_repository_id")
4459 -> 0.0010s
4460-- execute("ALTER TABLE commits VALIDATE CONSTRAINT fk_new_commits_on_repository_id")
4461 -> 0.0014s
4462-- execute("ALTER TABLE commits VALIDATE CONSTRAINT fk_new_commits_on_branch_id")
4463 -> 0.0012s
4464-- execute("ALTER TABLE commits VALIDATE CONSTRAINT fk_new_commits_on_tag_id")
4465 -> 0.0011s
4466-- execute("ALTER TABLE crons VALIDATE CONSTRAINT fk_new_crons_on_branch_id")
4467 -> 0.0012s
4468-- execute("ALTER TABLE job_configs VALIDATE CONSTRAINT fk_new_job_configs_on_repository_id")
4469 -> 0.0013s
4470-- execute("ALTER TABLE build_configs VALIDATE CONSTRAINT fk_new_build_configs_on_repository_id")
4471 -> 0.0012s
4472-- execute("ALTER TABLE pull_requests VALIDATE CONSTRAINT fk_new_pull_requests_on_repository_id")
4473 -> 0.0012s
4474-- execute("ALTER TABLE ssl_keys VALIDATE CONSTRAINT fk_new_ssl_keys_on_repository_id")
4475 -> 0.0010s
4476-- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_new_requests_on_commit_id")
4477 -> 0.0011s
4478-- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_new_requests_on_pull_request_id")
4479 -> 0.0009s
4480-- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_new_requests_on_branch_id")
4481 -> 0.0008s
4482-- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_new_requests_on_tag_id")
4483 -> 0.0007s
4484-- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_new_requests_on_config_id")
4485 -> 0.0007s
4486-- execute("ALTER TABLE stages VALIDATE CONSTRAINT fk_new_stages_on_build_id")
4487 -> 0.0008s
4488-- execute("ALTER TABLE builds DROP CONSTRAINT fk_builds_on_repository_id")
4489 -> 0.0008s
4490-- execute("ALTER TABLE builds DROP CONSTRAINT fk_builds_on_commit_id")
4491 -> 0.0007s
4492-- execute("ALTER TABLE builds DROP CONSTRAINT fk_builds_on_request_id")
4493 -> 0.0007s
4494-- execute("ALTER TABLE builds DROP CONSTRAINT fk_builds_on_pull_request_id")
4495 -> 0.0007s
4496-- execute("ALTER TABLE builds DROP CONSTRAINT fk_builds_on_branch_id")
4497 -> 0.0007s
4498-- execute("ALTER TABLE builds DROP CONSTRAINT fk_builds_on_tag_id")
4499 -> 0.0007s
4500-- execute("ALTER TABLE builds DROP CONSTRAINT fk_builds_on_config_id")
4501 -> 0.0007s
4502-- execute("ALTER TABLE jobs DROP CONSTRAINT fk_jobs_on_repository_id")
4503 -> 0.0008s
4504-- execute("ALTER TABLE jobs DROP CONSTRAINT fk_jobs_on_commit_id")
4505 -> 0.0007s
4506-- execute("ALTER TABLE jobs DROP CONSTRAINT fk_jobs_on_stage_id")
4507 -> 0.0007s
4508-- execute("ALTER TABLE jobs DROP CONSTRAINT fk_jobs_on_config_id")
4509 -> 0.0007s
4510-- execute("ALTER TABLE branches DROP CONSTRAINT fk_branches_on_repository_id")
4511 -> 0.0009s
4512-- execute("ALTER TABLE tags DROP CONSTRAINT fk_tags_on_repository_id")
4513 -> 0.0007s
4514-- execute("ALTER TABLE commits DROP CONSTRAINT fk_commits_on_repository_id")
4515 -> 0.0008s
4516-- execute("ALTER TABLE commits DROP CONSTRAINT fk_commits_on_branch_id")
4517 -> 0.0007s
4518-- execute("ALTER TABLE commits DROP CONSTRAINT fk_commits_on_tag_id")
4519 -> 0.0006s
4520-- execute("ALTER TABLE crons DROP CONSTRAINT fk_crons_on_branch_id")
4521 -> 0.0007s
4522-- execute("ALTER TABLE job_configs DROP CONSTRAINT fk_job_configs_on_repository_id")
4523 -> 0.0007s
4524-- execute("ALTER TABLE build_configs DROP CONSTRAINT fk_build_configs_on_repository_id")
4525 -> 0.0007s
4526-- execute("ALTER TABLE pull_requests DROP CONSTRAINT fk_pull_requests_on_repository_id")
4527 -> 0.0007s
4528-- execute("ALTER TABLE ssl_keys DROP CONSTRAINT fk_ssl_keys_on_repository_id")
4529 -> 0.0007s
4530-- execute("ALTER TABLE requests DROP CONSTRAINT fk_requests_on_commit_id")
4531 -> 0.0007s
4532-- execute("ALTER TABLE requests DROP CONSTRAINT fk_requests_on_pull_request_id")
4533 -> 0.0007s
4534-- execute("ALTER TABLE requests DROP CONSTRAINT fk_requests_on_branch_id")
4535 -> 0.0007s
4536-- execute("ALTER TABLE requests DROP CONSTRAINT fk_requests_on_tag_id")
4537 -> 0.0007s
4538-- execute("ALTER TABLE requests DROP CONSTRAINT fk_requests_on_config_id")
4539 -> 0.0007s
4540-- execute("ALTER TABLE stages DROP CONSTRAINT fk_stages_on_build_id")
4541 -> 0.0007s
4542-- execute("ALTER TABLE builds RENAME CONSTRAINT fk_new_builds_on_repository_id TO fk_builds_on_repository_id")
4543 -> 0.0005s
4544-- execute("ALTER TABLE builds RENAME CONSTRAINT fk_new_builds_on_commit_id TO fk_builds_on_commit_id")
4545 -> 0.0004s
4546-- execute("ALTER TABLE builds RENAME CONSTRAINT fk_new_builds_on_request_id TO fk_builds_on_request_id")
4547 -> 0.0004s
4548-- execute("ALTER TABLE builds RENAME CONSTRAINT fk_new_builds_on_pull_request_id TO fk_builds_on_pull_request_id")
4549 -> 0.0004s
4550-- execute("ALTER TABLE builds RENAME CONSTRAINT fk_new_builds_on_branch_id TO fk_builds_on_branch_id")
4551 -> 0.0004s
4552-- execute("ALTER TABLE builds RENAME CONSTRAINT fk_new_builds_on_tag_id TO fk_builds_on_tag_id")
4553 -> 0.0004s
4554-- execute("ALTER TABLE builds RENAME CONSTRAINT fk_new_builds_on_config_id TO fk_builds_on_config_id")
4555 -> 0.0004s
4556-- execute("ALTER TABLE jobs RENAME CONSTRAINT fk_new_jobs_on_repository_id TO fk_jobs_on_repository_id")
4557 -> 0.0003s
4558-- execute("ALTER TABLE jobs RENAME CONSTRAINT fk_new_jobs_on_commit_id TO fk_jobs_on_commit_id")
4559 -> 0.0004s
4560-- execute("ALTER TABLE jobs RENAME CONSTRAINT fk_new_jobs_on_stage_id TO fk_jobs_on_stage_id")
4561 -> 0.0004s
4562-- execute("ALTER TABLE jobs RENAME CONSTRAINT fk_new_jobs_on_config_id TO fk_jobs_on_config_id")
4563 -> 0.0005s
4564-- execute("ALTER TABLE branches RENAME CONSTRAINT fk_new_branches_on_repository_id TO fk_branches_on_repository_id")
4565 -> 0.0003s
4566-- execute("ALTER TABLE tags RENAME CONSTRAINT fk_new_tags_on_repository_id TO fk_tags_on_repository_id")
4567 -> 0.0004s
4568-- execute("ALTER TABLE commits RENAME CONSTRAINT fk_new_commits_on_repository_id TO fk_commits_on_repository_id")
4569 -> 0.0004s
4570-- execute("ALTER TABLE commits RENAME CONSTRAINT fk_new_commits_on_branch_id TO fk_commits_on_branch_id")
4571 -> 0.0003s
4572-- execute("ALTER TABLE commits RENAME CONSTRAINT fk_new_commits_on_tag_id TO fk_commits_on_tag_id")
4573 -> 0.0004s
4574-- execute("ALTER TABLE crons RENAME CONSTRAINT fk_new_crons_on_branch_id TO fk_crons_on_branch_id")
4575 -> 0.0003s
4576-- execute("ALTER TABLE job_configs RENAME CONSTRAINT fk_new_job_configs_on_repository_id TO fk_job_configs_on_repository_id")
4577 -> 0.0003s
4578-- execute("ALTER TABLE build_configs RENAME CONSTRAINT fk_new_build_configs_on_repository_id TO fk_build_configs_on_repository_id")
4579 -> 0.0003s
4580-- execute("ALTER TABLE pull_requests RENAME CONSTRAINT fk_new_pull_requests_on_repository_id TO fk_pull_requests_on_repository_id")
4581 -> 0.0003s
4582-- execute("ALTER TABLE ssl_keys RENAME CONSTRAINT fk_new_ssl_keys_on_repository_id TO fk_ssl_keys_on_repository_id")
4583 -> 0.0003s
4584-- execute("ALTER TABLE requests RENAME CONSTRAINT fk_new_requests_on_commit_id TO fk_requests_on_commit_id")
4585 -> 0.0003s
4586-- execute("ALTER TABLE requests RENAME CONSTRAINT fk_new_requests_on_pull_request_id TO fk_requests_on_pull_request_id")
4587 -> 0.0004s
4588-- execute("ALTER TABLE requests RENAME CONSTRAINT fk_new_requests_on_branch_id TO fk_requests_on_branch_id")
4589 -> 0.0003s
4590-- execute("ALTER TABLE requests RENAME CONSTRAINT fk_new_requests_on_tag_id TO fk_requests_on_tag_id")
4591 -> 0.0004s
4592-- execute("ALTER TABLE requests RENAME CONSTRAINT fk_new_requests_on_config_id TO fk_requests_on_config_id")
4593 -> 0.0005s
4594-- execute("ALTER TABLE stages RENAME CONSTRAINT fk_new_stages_on_build_id TO fk_stages_on_build_id")
4595 -> 0.0003s
4596== 20190718092750 AddDeleteCascadeToForeignKeys: migrated (0.1095s) ===========
4598== 20190718100426 UpdateSoftDeleteProcedure: migrating ========================
4599-- execute("DROP FUNCTION IF EXISTS soft_delete_repo_data(bigint);\nCREATE FUNCTION soft_delete_repo_data(r_id bigint) RETURNS void AS $$\nDECLARE\n request_raw_config_ids bigint[];\n request_raw_configuration_ids bigint[];\n request_yaml_config_ids bigint[];\n request_config_ids bigint[];\n tag_ids bigint[];\n ssl_key_ids bigint[];\n build_config_ids bigint[];\n job_config_ids bigint[];\n build_ids bigint[];\n pull_request_ids bigint[];\n commit_ids bigint[];\n request_ids bigint[];\n request_payload_ids bigint[];\n stage_ids bigint[];\n job_ids bigint[];\nBEGIN\n SELECT INTO job_ids array_agg(id) FROM jobs WHERE repository_id = r_id;\n SELECT INTO stage_ids array_agg(id) FROM stages WHERE build_id IN (SELECT id FROM builds WHERE repository_id = r_id);\n SELECT INTO request_payload_ids array_agg(id) FROM request_payloads WHERE request_id IN (SELECT id FROM requests WHERE repository_id = r_id);\n SELECT INTO request_ids array_agg(id) FROM requests WHERE repository_id = r_id;\n SELECT INTO commit_ids array_agg(id) FROM commits WHERE repository_id = r_id;\n SELECT INTO pull_request_ids array_agg(id) FROM pull_requests WHERE repository_id = r_id;\n SELECT INTO build_ids array_agg(id) FROM builds WHERE repository_id = r_id;\n SELECT INTO job_config_ids array_agg(id) FROM job_configs WHERE repository_id = r_id;\n SELECT INTO build_config_ids array_agg(id) FROM build_configs WHERE repository_id = r_id;\n SELECT INTO ssl_key_ids array_agg(id) FROM ssl_keys WHERE repository_id = r_id;\n SELECT INTO tag_ids array_agg(id) FROM tags WHERE repository_id = r_id;\n SELECT INTO request_config_ids array_agg(id) FROM request_configs WHERE repository_id = r_id;\n SELECT INTO request_yaml_config_ids array_agg(id) FROM request_yaml_configs WHERE repository_id = r_id;\n SELECT INTO request_raw_configuration_ids array_agg(id) FROM request_raw_configurations WHERE request_id = ANY(request_ids);\n SELECT INTO request_raw_config_ids array_agg(id) FROM request_raw_configs WHERE id IN (SELECT request_raw_config_id FROM request_raw_configurations WHERE request_id = ANY(request_ids));\n\n INSERT INTO deleted_jobs SELECT * FROM jobs WHERE id = ANY(job_ids);\n INSERT INTO deleted_stages SELECT * FROM stages WHERE id = ANY(stage_ids);\n INSERT INTO deleted_request_payloads SELECT * FROM request_payloads WHERE id = ANY(request_payload_ids);\n INSERT INTO deleted_requests SELECT * FROM requests WHERE id = ANY(request_ids);\n INSERT INTO deleted_commits SELECT * FROM commits WHERE id = ANY(commit_ids);\n INSERT INTO deleted_pull_requests SELECT * FROM pull_requests WHERE id = ANY(pull_request_ids);\n INSERT INTO deleted_builds SELECT * FROM builds WHERE id = ANY(build_ids);\n INSERT INTO deleted_job_configs SELECT * FROM job_configs WHERE id = ANY(job_config_ids);\n INSERT INTO deleted_build_configs SELECT * FROM build_configs WHERE id = ANY(build_config_ids);\n INSERT INTO deleted_ssl_keys SELECT * FROM ssl_keys WHERE id = ANY(ssl_key_ids);\n INSERT INTO deleted_tags SELECT * FROM tags WHERE id = ANY(tag_ids);\n INSERT INTO deleted_request_configs SELECT * FROM request_configs WHERE id = ANY(request_config_ids);\n INSERT INTO deleted_request_yaml_configs SELECT * FROM request_yaml_configs WHERE id = ANY(request_yaml_config_ids);\n INSERT INTO deleted_request_raw_configurations SELECT * FROM request_raw_configurations WHERE id = ANY(request_raw_configuration_ids);\n INSERT INTO deleted_request_raw_configs SELECT * FROM request_raw_configs WHERE id = ANY(request_raw_config_ids);\n\n DELETE FROM jobs WHERE id = ANY(job_ids);\n DELETE FROM stages WHERE id = ANY(stage_ids);\n DELETE FROM request_payloads WHERE id = ANY(request_payload_ids);\n DELETE FROM requests WHERE id = ANY(request_ids);\n DELETE FROM commits WHERE id = ANY(commit_ids);\n DELETE FROM pull_requests WHERE id = ANY(pull_request_ids);\n DELETE FROM builds WHERE id = ANY(build_ids);\n DELETE FROM job_configs WHERE id = ANY(job_config_ids);\n DELETE FROM build_configs WHERE id = ANY(build_config_ids);\n DELETE FROM ssl_keys WHERE id = ANY(ssl_key_ids);\n DELETE FROM tags WHERE id = ANY(tag_ids);\n DELETE FROM request_configs WHERE id = ANY(request_config_ids);\n DELETE FROM request_yaml_configs WHERE id = ANY(request_yaml_config_ids);\n DELETE FROM request_raw_configurations WHERE id = ANY(request_raw_configuration_ids);\n DELETE FROM request_raw_configs WHERE id = ANY(request_raw_config_ids);\nEND;\n$$ LANGUAGE plpgsql;\n")
4600 -> 0.0020s
4601== 20190718100426 UpdateSoftDeleteProcedure: migrated (0.0028s) ===============
4603== 20190725103113 UpdateSoftDelete: migrating =================================
4604-- execute("create table deleted_request_yaml_configs (like request_yaml_configs)")
4605 -> 0.0072s
4606-- execute("DROP FUNCTION IF EXISTS soft_delete_repo_data(bigint);\nCREATE FUNCTION soft_delete_repo_data(r_id bigint) RETURNS void AS $$\nDECLARE\n request_raw_config_ids bigint[];\n request_raw_configuration_ids bigint[];\n request_yaml_config_ids bigint[];\n request_config_ids bigint[];\n tag_ids bigint[];\n ssl_key_ids bigint[];\n build_config_ids bigint[];\n job_config_ids bigint[];\n build_ids bigint[];\n pull_request_ids bigint[];\n commit_ids bigint[];\n request_ids bigint[];\n request_payload_ids bigint[];\n stage_ids bigint[];\n job_ids bigint[];\nBEGIN\n SELECT INTO job_ids array_agg(id) FROM jobs WHERE repository_id = r_id;\n SELECT INTO stage_ids array_agg(id) FROM stages WHERE build_id IN (SELECT id FROM builds WHERE repository_id = r_id);\n SELECT INTO request_payload_ids array_agg(id) FROM request_payloads WHERE request_id IN (SELECT id FROM requests WHERE repository_id = r_id);\n SELECT INTO request_ids array_agg(id) FROM requests WHERE repository_id = r_id;\n SELECT INTO commit_ids array_agg(id) FROM commits WHERE repository_id = r_id;\n SELECT INTO pull_request_ids array_agg(id) FROM pull_requests WHERE repository_id = r_id;\n SELECT INTO build_ids array_agg(id) FROM builds WHERE repository_id = r_id;\n SELECT INTO job_config_ids array_agg(id) FROM job_configs WHERE repository_id = r_id;\n SELECT INTO build_config_ids array_agg(id) FROM build_configs WHERE repository_id = r_id;\n SELECT INTO ssl_key_ids array_agg(id) FROM ssl_keys WHERE repository_id = r_id;\n SELECT INTO tag_ids array_agg(id) FROM tags WHERE repository_id = r_id;\n SELECT INTO request_config_ids array_agg(id) FROM request_configs WHERE repository_id = r_id;\n SELECT INTO request_yaml_config_ids array_agg(id) FROM request_yaml_configs WHERE repository_id = r_id;\n SELECT INTO request_raw_configuration_ids array_agg(id) FROM request_raw_configurations WHERE request_id = ANY(request_ids);\n SELECT INTO request_raw_config_ids array_agg(id) FROM request_raw_configs WHERE id IN (SELECT request_raw_config_id FROM request_raw_configurations WHERE request_id = ANY(request_ids));\n\n INSERT INTO deleted_jobs SELECT * FROM jobs WHERE id = ANY(job_ids);\n INSERT INTO deleted_stages SELECT * FROM stages WHERE id = ANY(stage_ids);\n INSERT INTO deleted_request_payloads SELECT * FROM request_payloads WHERE id = ANY(request_payload_ids);\n INSERT INTO deleted_requests SELECT * FROM requests WHERE id = ANY(request_ids);\n INSERT INTO deleted_commits SELECT * FROM commits WHERE id = ANY(commit_ids);\n INSERT INTO deleted_pull_requests SELECT * FROM pull_requests WHERE id = ANY(pull_request_ids);\n INSERT INTO deleted_builds SELECT * FROM builds WHERE id = ANY(build_ids);\n INSERT INTO deleted_job_configs SELECT * FROM job_configs WHERE id = ANY(job_config_ids);\n INSERT INTO deleted_build_configs SELECT * FROM build_configs WHERE id = ANY(build_config_ids);\n INSERT INTO deleted_ssl_keys SELECT * FROM ssl_keys WHERE id = ANY(ssl_key_ids);\n INSERT INTO deleted_tags SELECT * FROM tags WHERE id = ANY(tag_ids);\n INSERT INTO deleted_request_configs SELECT * FROM request_configs WHERE id = ANY(request_config_ids);\n INSERT INTO deleted_request_yaml_configs SELECT * FROM request_yaml_configs WHERE id = ANY(request_yaml_config_ids);\n INSERT INTO deleted_request_raw_configurations SELECT * FROM request_raw_configurations WHERE id = ANY(request_raw_configuration_ids);\n INSERT INTO deleted_request_raw_configs SELECT * FROM request_raw_configs WHERE id = ANY(request_raw_config_ids);\n\n DELETE FROM jobs WHERE id = ANY(job_ids);\n DELETE FROM stages WHERE id = ANY(stage_ids);\n DELETE FROM request_payloads WHERE id = ANY(request_payload_ids);\n DELETE FROM requests WHERE id = ANY(request_ids);\n DELETE FROM commits WHERE id = ANY(commit_ids);\n DELETE FROM pull_requests WHERE id = ANY(pull_request_ids);\n DELETE FROM builds WHERE id = ANY(build_ids);\n DELETE FROM job_configs WHERE id = ANY(job_config_ids);\n DELETE FROM build_configs WHERE id = ANY(build_config_ids);\n DELETE FROM ssl_keys WHERE id = ANY(ssl_key_ids);\n DELETE FROM tags WHERE id = ANY(tag_ids);\n DELETE FROM request_configs WHERE id = ANY(request_config_ids);\n DELETE FROM request_yaml_configs WHERE id = ANY(request_yaml_config_ids);\n DELETE FROM request_raw_configurations WHERE id = ANY(request_raw_configuration_ids);\n DELETE FROM request_raw_configs WHERE id = ANY(request_raw_config_ids);\nEND;\n$$ LANGUAGE plpgsql;\n")
4607 -> 0.0038s
4608== 20190725103113 UpdateSoftDelete: migrated (0.0123s) ========================
4610== 20190725105934 AddOrgIdToConfigs: migrating ================================
4611-- add_column(:job_configs, :org_id, :bigint)
4612 -> 0.0025s
4613-- add_column(:deleted_job_configs, :org_id, :bigint)
4614 -> 0.0025s
4615-- add_column(:build_configs, :org_id, :bigint)
4616 -> 0.0021s
4617-- add_column(:deleted_build_configs, :org_id, :bigint)
4618 -> 0.0021s
4619-- add_column(:request_configs, :org_id, :bigint)
4620 -> 0.0020s
4621-- add_column(:deleted_request_configs, :org_id, :bigint)
4622 -> 0.0020s
4623-- add_column(:request_yaml_configs, :org_id, :bigint)
4624 -> 0.0017s
4625-- add_column(:deleted_request_yaml_configs, :org_id, :bigint)
4626 -> 0.0018s
4627-- add_column(:request_payloads, :org_id, :bigint)
4628 -> 0.0017s
4629-- add_column(:deleted_request_payloads, :org_id, :bigint)
4630 -> 0.0017s
4631-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_job_configs_on_org_id ON job_configs (org_id)")
4632 -> 0.0048s
4633-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_build_configs_on_org_id ON build_configs (org_id)")
4634 -> 0.0043s
4635-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_request_configs_on_org_id ON request_configs (org_id)")
4636 -> 0.0043s
4637-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_request_yaml_configs_on_org_id ON request_yaml_configs (org_id)")
4638 -> 0.0039s
4639-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_request_payloads_on_org_id ON request_payloads (org_id)")
4640 -> 0.0042s
4641== 20190725105934 AddOrgIdToConfigs: migrated (0.0434s) =======================
4643== 20190729105934 AddOrgAndComIdsToRawConfigs: migrating ======================
4644-- add_column(:request_raw_configs, :org_id, :bigint)
4645 -> 0.0013s
4646-- add_column(:request_raw_configurations, :org_id, :bigint)
4647 -> 0.0012s
4648-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_request_raw_configs_on_org_id ON request_raw_configs (org_id)")
4649 -> 0.0039s
4650-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_request_raw_configurations_on_org_id ON request_raw_configurations (org_id)")
4651 -> 0.0039s
4652== 20190729105934 AddOrgAndComIdsToRawConfigs: migrated (0.0105s) =============
4654== 20190801120510 AddMoreDeletedTables: migrating =============================
4655-- execute("create table if not exists deleted_request_raw_configs (like request_raw_configs)")
4656 -> 0.0035s
4657-- execute("create table if not exists deleted_request_raw_configurations (like request_raw_configurations)")
4658 -> 0.0031s
4659-- execute("DROP FUNCTION IF EXISTS soft_delete_repo_data(bigint);\nCREATE FUNCTION soft_delete_repo_data(r_id bigint) RETURNS void AS $$\nDECLARE\n request_raw_config_ids bigint[];\n request_raw_configuration_ids bigint[];\n request_yaml_config_ids bigint[];\n request_config_ids bigint[];\n tag_ids bigint[];\n ssl_key_ids bigint[];\n build_config_ids bigint[];\n job_config_ids bigint[];\n build_ids bigint[];\n pull_request_ids bigint[];\n commit_ids bigint[];\n request_ids bigint[];\n request_payload_ids bigint[];\n stage_ids bigint[];\n job_ids bigint[];\nBEGIN\n SELECT INTO job_ids array_agg(id) FROM jobs WHERE repository_id = r_id;\n SELECT INTO stage_ids array_agg(id) FROM stages WHERE build_id IN (SELECT id FROM builds WHERE repository_id = r_id);\n SELECT INTO request_payload_ids array_agg(id) FROM request_payloads WHERE request_id IN (SELECT id FROM requests WHERE repository_id = r_id);\n SELECT INTO request_ids array_agg(id) FROM requests WHERE repository_id = r_id;\n SELECT INTO commit_ids array_agg(id) FROM commits WHERE repository_id = r_id;\n SELECT INTO pull_request_ids array_agg(id) FROM pull_requests WHERE repository_id = r_id;\n SELECT INTO build_ids array_agg(id) FROM builds WHERE repository_id = r_id;\n SELECT INTO job_config_ids array_agg(id) FROM job_configs WHERE repository_id = r_id;\n SELECT INTO build_config_ids array_agg(id) FROM build_configs WHERE repository_id = r_id;\n SELECT INTO ssl_key_ids array_agg(id) FROM ssl_keys WHERE repository_id = r_id;\n SELECT INTO tag_ids array_agg(id) FROM tags WHERE repository_id = r_id;\n SELECT INTO request_config_ids array_agg(id) FROM request_configs WHERE repository_id = r_id;\n SELECT INTO request_yaml_config_ids array_agg(id) FROM request_yaml_configs WHERE repository_id = r_id;\n SELECT INTO request_raw_configuration_ids array_agg(id) FROM request_raw_configurations WHERE request_id = ANY(request_ids);\n SELECT INTO request_raw_config_ids array_agg(id) FROM request_raw_configs WHERE id IN (SELECT request_raw_config_id FROM request_raw_configurations WHERE request_id = ANY(request_ids));\n\n INSERT INTO deleted_jobs SELECT * FROM jobs WHERE id = ANY(job_ids);\n INSERT INTO deleted_stages SELECT * FROM stages WHERE id = ANY(stage_ids);\n INSERT INTO deleted_request_payloads SELECT * FROM request_payloads WHERE id = ANY(request_payload_ids);\n INSERT INTO deleted_requests SELECT * FROM requests WHERE id = ANY(request_ids);\n INSERT INTO deleted_commits SELECT * FROM commits WHERE id = ANY(commit_ids);\n INSERT INTO deleted_pull_requests SELECT * FROM pull_requests WHERE id = ANY(pull_request_ids);\n INSERT INTO deleted_builds SELECT * FROM builds WHERE id = ANY(build_ids);\n INSERT INTO deleted_job_configs SELECT * FROM job_configs WHERE id = ANY(job_config_ids);\n INSERT INTO deleted_build_configs SELECT * FROM build_configs WHERE id = ANY(build_config_ids);\n INSERT INTO deleted_ssl_keys SELECT * FROM ssl_keys WHERE id = ANY(ssl_key_ids);\n INSERT INTO deleted_tags SELECT * FROM tags WHERE id = ANY(tag_ids);\n INSERT INTO deleted_request_configs SELECT * FROM request_configs WHERE id = ANY(request_config_ids);\n INSERT INTO deleted_request_yaml_configs SELECT * FROM request_yaml_configs WHERE id = ANY(request_yaml_config_ids);\n INSERT INTO deleted_request_raw_configurations SELECT * FROM request_raw_configurations WHERE id = ANY(request_raw_configuration_ids);\n INSERT INTO deleted_request_raw_configs SELECT * FROM request_raw_configs WHERE id = ANY(request_raw_config_ids);\n\n DELETE FROM jobs WHERE id = ANY(job_ids);\n DELETE FROM stages WHERE id = ANY(stage_ids);\n DELETE FROM request_payloads WHERE id = ANY(request_payload_ids);\n DELETE FROM requests WHERE id = ANY(request_ids);\n DELETE FROM commits WHERE id = ANY(commit_ids);\n DELETE FROM pull_requests WHERE id = ANY(pull_request_ids);\n DELETE FROM builds WHERE id = ANY(build_ids);\n DELETE FROM job_configs WHERE id = ANY(job_config_ids);\n DELETE FROM build_configs WHERE id = ANY(build_config_ids);\n DELETE FROM ssl_keys WHERE id = ANY(ssl_key_ids);\n DELETE FROM tags WHERE id = ANY(tag_ids);\n DELETE FROM request_configs WHERE id = ANY(request_config_ids);\n DELETE FROM request_yaml_configs WHERE id = ANY(request_yaml_config_ids);\n DELETE FROM request_raw_configurations WHERE id = ANY(request_raw_configuration_ids);\n DELETE FROM request_raw_configs WHERE id = ANY(request_raw_config_ids);\nEND;\n$$ LANGUAGE plpgsql;\n")
4660 -> 0.0021s
4661== 20190801120510 AddMoreDeletedTables: migrated (0.0092s) ====================
4663== 20190815152336 AddComIdToMoreTables: migrating =============================
4664-- add_column(:request_configs, :com_id, :bigint)
4665 -> 0.0013s
4666-- add_column(:request_yaml_configs, :com_id, :bigint)
4667 -> 0.0013s
4668-- add_column(:deleted_request_configs, :com_id, :bigint)
4669 -> 0.0012s
4670-- add_column(:deleted_request_yaml_configs, :com_id, :bigint)
4671 -> 0.0012s
4672-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_request_configs_on_com_id ON request_configs (com_id)")
4673 -> 0.0049s
4674-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_request_yaml_configs_on_com_id ON request_yaml_configs (com_id)")
4675 -> 0.0047s
4676== 20190815152336 AddComIdToMoreTables: migrated (0.0151s) ====================
4678== 20190815164320 AddComIdToBuildConfigs: migrating ===========================
4679-- add_column(:build_configs, :com_id, :bigint)
4680 -> 0.0015s
4681-- add_column(:deleted_build_configs, :com_id, :bigint)
4682 -> 0.0013s
4683-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_build_configs_on_com_id ON build_configs (com_id)")
4684 -> 0.0041s
4685== 20190815164320 AddComIdToBuildConfigs: migrated (0.0072s) ==================
4687== 20190815172205 AddComIdToJobConfigs: migrating =============================
4688-- add_column(:job_configs, :com_id, :bigint)
4689 -> 0.0015s
4690-- add_column(:deleted_job_configs, :com_id, :bigint)
4691 -> 0.0015s
4692-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_job_configs_on_com_id ON job_configs (com_id)")
4693 -> 0.0045s
4694== 20190815172205 AddComIdToJobConfigs: migrated (0.0078s) ====================
4696== 20190819082558 AddVcsIdToUser: migrating ===================================
4697-- add_column(:users, :vcs_id, :string, {:default=>nil})
4698 -> 0.0020s
4699-- execute("CREATE INDEX CONCURRENTLY index_users_on_vcs_id_and_vcs_type ON users (vcs_id, vcs_type);")
4700 -> 0.0046s
4701== 20190819082558 AddVcsIdToUser: migrated (0.0069s) ==========================
4703== 20190819082559 AddVcsIdToRepository: migrating =============================
4704-- add_column(:repositories, :vcs_id, :string, {:default=>nil})
4705 -> 0.0022s
4706-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_vcs_id_and_vcs_type ON repositories (vcs_id, vcs_type);")
4707 -> 0.0044s
4708== 20190819082559 AddVcsIdToRepository: migrated (0.0068s) ====================
4710== 20190820082431 AddVcsIdToOrganization: migrating ===========================
4711-- add_column(:organizations, :vcs_id, :string, {:default=>nil})
4712 -> 0.0021s
4713-- execute("CREATE INDEX CONCURRENTLY index_organizations_on_vcs_id_and_vcs_type ON organizations (vcs_id, vcs_type);")
4714 -> 0.0046s
4715== 20190820082431 AddVcsIdToOrganization: migrated (0.0070s) ==================
4717== 20190913092543 CopyVcsIdForRepository: migrating ===========================
4718-- select_value("SELECT id FROM repositories ORDER BY id DESC LIMIT 1")
4719 -> 0.0011s
4720-- execute("UPDATE \"repositories\" SET vcs_id = github_id WHERE id BETWEEN 0 AND 5000")
4721 -> 0.0011s
4722== 20190913092543 CopyVcsIdForRepository: migrated (0.0031s) ==================
4724== 20190913092554 CopyVcsIdForUser: migrating =================================
4725-- select_value("SELECT id FROM users ORDER BY id DESC LIMIT 1")
4726 -> 0.0009s
4727-- execute("UPDATE \"users\" SET vcs_id = github_id WHERE id BETWEEN 0 AND 5000")
4728 -> 0.0010s
4729== 20190913092554 CopyVcsIdForUser: migrated (0.0026s) ========================
4731== 20190913092565 CopyVcsIdForOrganization: migrating =========================
4732-- select_value("SELECT id FROM organizations ORDER BY id DESC LIMIT 1")
4733 -> 0.0009s
4734-- execute("UPDATE \"organizations\" SET vcs_id = github_id WHERE id BETWEEN 0 AND 5000")
4735 -> 0.0010s
4736== 20190913092565 CopyVcsIdForOrganization: migrated (0.0026s) ================
4738== 20190920160300 MessagesAddTypeSourceLine: migrating ========================
4739-- add_column(:messages, :type, :string, {:default=>nil})
4740 -> 0.0019s
4741-- add_column(:messages, :src, :string, {:default=>nil})
4742 -> 0.0019s
4743-- add_column(:messages, :line, :integer, {:default=>nil})
4744 -> 0.0014s
4745== 20190920160300 MessagesAddTypeSourceLine: migrated (0.0056s) ===============
4747== 20191112000000 ReposAddFork: migrating =====================================
4748-- add_column(:repositories, :fork, :boolean, {:default=>nil})
4749 -> 0.0020s
4750== 20191112000000 ReposAddFork: migrated (0.0022s) ============================
4752== 20191112172015 AddVcsIndexToRepositories: migrating ========================
4753-- add_index(:repositories, [:vcs_type, :vcs_id], {:algorithm=>:concurrently})
4754 -> 0.0050s
4755== 20191112172015 AddVcsIndexToRepositories: migrated (0.0051s) ===============
4757== 20191112172332 AddVcsIndexToUsers: migrating ===============================
4758-- add_index(:users, [:vcs_type, :vcs_id], {:algorithm=>:concurrently})
4759 -> 0.0048s
4760== 20191112172332 AddVcsIndexToUsers: migrated (0.0049s) ======================
4762== 20191219091445 AddHeadRepoVcsIdToPullRequest: migrating ====================
4763-- add_column(:pull_requests, :head_repo_vcs_id, :string, {:default=>nil})
4764 -> 0.0022s
4765-- execute("CREATE INDEX CONCURRENTLY index_pull_requests_on_head_repo_vcs_id ON pull_requests (head_repo_vcs_id);")
4766 -> 0.0045s
4767== 20191219091445 AddHeadRepoVcsIdToPullRequest: migrated (0.0069s) ===========
4769== 20191219091446 AddHeadRepoVcsIdToDeletedPullRequest: migrating =============
4770-- add_column(:deleted_pull_requests, :head_repo_vcs_id, :string, {:default=>nil})
4771 -> 0.0016s
4772-- execute("CREATE INDEX CONCURRENTLY index_deleted_pull_requests_on_head_repo_vcs_id ON deleted_pull_requests (head_repo_vcs_id);")
4773 -> 0.0041s
4774== 20191219091446 AddHeadRepoVcsIdToDeletedPullRequest: migrated (0.0058s) ====
4776== 20200122000000 AddConfigsJson: migrating ===================================
4777-- add_column(:request_configs, :config_json, :json)
4778 -> 0.0011s
4779-- add_column(:build_configs, :config_json, :json)
4780 -> 0.0006s
4781-- add_column(:job_configs, :config_json, :json)
4782 -> 0.0007s
4783-- add_column(:deleted_request_configs, :config_json, :json)
4784 -> 0.0007s
4785-- add_column(:deleted_build_configs, :config_json, :json)
4786 -> 0.0006s
4787-- add_column(:deleted_job_configs, :config_json, :json)
4788 -> 0.0006s
4789== 20200122000000 AddConfigsJson: migrated (0.0046s) ==========================
4791== 20200127000000 DropJobConfigsGpu: migrating ================================
4792-- execute("DROP MATERIALIZED VIEW job_configs_gpu\n")
4793 -> 0.0011s
4794== 20200127000000 DropJobConfigsGpu: migrated (0.0012s) =======================
4796== 20200127000001 RenameConfigsJson: migrating ================================
4797-- remove_column(:request_configs, :config)
4798 -> 0.0012s
4799-- rename_column(:request_configs, :config_json, :config)
4800 -> 0.0063s
4801-- remove_column(:build_configs, :config)
4802 -> 0.0013s
4803-- rename_column(:build_configs, :config_json, :config)
4804 -> 0.0067s
4805-- remove_column(:job_configs, :config)
4806 -> 0.0015s
4807-- rename_column(:job_configs, :config_json, :config)
4808 -> 0.0070s
4809-- remove_column(:deleted_request_configs, :config)
4810 -> 0.0015s
4811-- rename_column(:deleted_request_configs, :config_json, :config)
4812 -> 0.0022s
4813-- remove_column(:deleted_build_configs, :config)
4814 -> 0.0011s
4815-- rename_column(:deleted_build_configs, :config_json, :config)
4816 -> 0.0024s
4817-- remove_column(:deleted_job_configs, :config)
4818 -> 0.0008s
4819-- rename_column(:deleted_job_configs, :config_json, :config)
4820 -> 0.0029s
4821== 20200127000001 RenameConfigsJson: migrated (0.0380s) =======================
4823== 20200214144655 AddIndexToJobVersionsOnJobId: migrating =====================
4824-- add_index(:job_versions, :job_id, {:algorithm=>:concurrently})
4825 -> 0.0056s
4826== 20200214144655 AddIndexToJobVersionsOnJobId: migrated (0.0061s) ============
4828== 20200225085734 AddVcsSlugToRepository: migrating ===========================
4829-- add_column(:repositories, :vcs_slug, :string, {:default=>nil})
4830 -> 0.0019s
4831== 20200225085734 AddVcsSlugToRepository: migrated (0.0021s) ==================
4833== 20200227085734 AddVcsSourceHostToRepository: migrating =====================
4834-- add_column(:repositories, :vcs_source_host, :string, {:default=>nil})
4835 -> 0.0097s
4836== 20200227085734 AddVcsSourceHostToRepository: migrated (0.0098s) ============
4838== 20200227085736 AddVcsIndexes: migrating ====================================
4839-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_lower_slug_or_on_lower_owner_name ON repositories (LOWER(vcs_slug), LOWER(owner_name), LOWER(name), LOWER(vcs_type)) WHERE invalidated_at IS NULL")
4840 -> 0.0052s
4841== 20200227085736 AddVcsIndexes: migrated (0.0053s) ===========================
4843== 20200227085737 AddRepositoryNameAndSlugIndex: migrating ====================
4844-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_slug_or_names ON repositories (vcs_slug, owner_name, name) WHERE invalidated_at IS NULL")
4845 -> 0.0047s
4846== 20200227085737 AddRepositoryNameAndSlugIndex: migrated (0.0049s) ===========
4848== 20200227085742 AddPullRequestSourceData: migrating =========================
4849-- add_column(:pull_requests, :base_repo_slug, :string, {:default=>nil})
4850 -> 0.0022s
4851-- add_column(:pull_requests, :base_repo_vcs_id, :string, {:default=>nil})
4852 -> 0.0020s
4853-- add_column(:pull_requests, :base_ref, :string, {:default=>nil})
4854 -> 0.0019s
4855-- add_column(:deleted_pull_requests, :base_repo_slug, :string, {:default=>nil})
4856 -> 0.0015s
4857-- add_column(:deleted_pull_requests, :base_repo_vcs_id, :string, {:default=>nil})
4858 -> 0.0016s
4859-- add_column(:deleted_pull_requests, :base_ref, :string, {:default=>nil})
4860 -> 0.0017s
4861== 20200227085742 AddPullRequestSourceData: migrated (0.0115s) ================
4863== 20200312184018 AddUserUtmParamsTable: migrating ============================
4864-- create_table(:user_utm_params)
4865 -> 0.0120s
4866== 20200312184018 AddUserUtmParamsTable: migrated (0.0121s) ===================
4868== 20200316085738 AddRepositoryVcsSlugIndex: migrating ========================
4869-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_lower_vcs_slug ON repositories (LOWER(vcs_slug))")
4870 -> 0.0060s
4871-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_lower_vcs_slug_valid ON repositories (LOWER(vcs_slug)) WHERE invalidated_at IS NULL")
4872 -> 0.0054s
4873== 20200316085738 AddRepositoryVcsSlugIndex: migrated (0.0117s) ===============
4875== 20200325115329 AddMultipleJobStateIndexesOrderByNewest: migrating ==========
4876-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_booting_jobs_on_repository_id_order_by_newest on jobs (repository_id, id desc) where state = 'booting'")
4877 -> 0.0060s
4878-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_canceled_jobs_on_repository_id_order_by_newest on jobs (repository_id, id desc) where state = 'canceled'")
4879 -> 0.0060s
4880-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_created_jobs_on_repository_id_order_by_newest on jobs (repository_id, id desc) where state = 'created'")
4881 -> 0.0051s
4882-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_errored_jobs_on_repository_id_order_by_newest on jobs (repository_id, id desc) where state = 'errored'")
4883 -> 0.0052s
4884-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_failed_jobs_on_repository_id_order_by_newest on jobs (repository_id, id desc) where state = 'failed'")
4885 -> 0.0049s
4886-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_passed_jobs_on_repository_id_order_by_newest on jobs (repository_id, id desc) where state = 'passed'")
4887 -> 0.0056s
4888-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_queued_jobs_on_repository_id_order_by_newest on jobs (repository_id, id desc) where state = 'queued'")
4889 -> 0.0056s
4890-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_received_jobs_on_repository_id_order_by_newest on jobs (repository_id, id desc) where state = 'received'")
4891 -> 0.0058s
4892-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_started_jobs_on_repository_id_order_by_newest on jobs (repository_id, id desc) where state = 'started'")
4893 -> 0.0058s
4894== 20200325115329 AddMultipleJobStateIndexesOrderByNewest: migrated (0.0508s) =
4896== 20200325130013 AddFunctionMostRecentJobIdsForUserRepositoriesByStates: migrating
4897-- execute("\n CREATE OR REPLACE FUNCTION\n most_recent_job_ids_for_user_repositories_by_states(uid int, states varchar default '') RETURNS table (id bigint) AS\n $BODY$\n DECLARE\n rid int;\n BEGIN\n SET LOCAL work_mem = '16MB';\n IF states <> '' THEN\n RETURN QUERY WITH matrix AS (\n SELECT repository_id, replace(replace(job_state::varchar, '(', ''), ')', '') as job_state\n FROM permissions p\n CROSS JOIN (\n SELECT unnest(regexp_split_to_array(states, ','))\n ) AS job_state\n WHERE p.user_id = uid\n )\n SELECT recent.id\n FROM matrix m\n CROSS JOIN LATERAL (\n SELECT job_id AS id, repository_id\n FROM most_recent_job_ids_for_repository_by_state(m.repository_id, m.job_state::varchar)\n ) AS recent\n ORDER BY id desc;\n ELSE\n for rid in\n SELECT repository_id\n FROM permissions\n WHERE user_id = uid\n LOOP\n RETURN QUERY select j.id from jobs j where repository_id = rid order by j.id desc limit 100;\n END LOOP;\n END IF;\n END\n $BODY$\n LANGUAGE plpgsql;\n ")
4898 -> 0.0013s
4899== 20200325130013 AddFunctionMostRecentJobIdsForUserRepositoriesByStates: migrated (0.0014s)
4901== 20200330110527 AddFunctionMostRecentJobIdsForRepositoryByState: migrating ==
4902-- execute("\n CREATE OR REPLACE FUNCTION\n most_recent_job_ids_for_repository_by_state(rid int, st varchar) RETURNS table (job_id bigint, repository_id int) AS\n $BODY$\n DECLARE\n BEGIN\n RETURN QUERY select j.id, j.repository_id from jobs j where j.repository_id = rid and j.state = st order by j.id desc limit 100;\n END\n $BODY$\n LANGUAGE plpgsql;\n ")
4903 -> 0.0023s
4904== 20200330110527 AddFunctionMostRecentJobIdsForRepositoryByState: migrated (0.0026s)
4906== 20200406121218 AddIndexJobsOnRepositoryIdOrderByNewest: migrating ==========
4907-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_jobs_on_repository_id_order_by_newest on jobs (repository_id, id desc)")
4908 -> 0.0053s
4909== 20200406121218 AddIndexJobsOnRepositoryIdOrderByNewest: migrated (0.0054s) =
4911== 20200424000000 RequestRawConfigurationsAddMergeMode: migrating =============
4912-- add_column(:request_raw_configurations, :merge_mode, :string, {:default=>nil})
4913 -> 0.0018s
4914-- add_column(:deleted_request_raw_configurations, :merge_mode, :string, {:default=>nil})
4915 -> 0.0032s
4916== 20200424000000 RequestRawConfigurationsAddMergeMode: migrated (0.0052s) ====
4918== 20200527123653 AddColumnPriorityToTableJobsAndDeletedJobs: migrating =======
4919-- add_column(:jobs, :priority, :integer, {:default=>nil})
4920 -> 0.0018s
4921-- add_column(:deleted_jobs, :priority, :integer, {:default=>nil})
4922 -> 0.0017s
4923== 20200527123653 AddColumnPriorityToTableJobsAndDeletedJobs: migrated (0.0037s)
4925== 20200928143126 AddBuildTriggerPermissions: migrating =======================
4926-- add_column(:memberships, :build_permission, :boolean, {:default=>nil})
4927 -> 0.0017s
4928-- add_column(:permissions, :build, :boolean, {:default=>nil})
4929 -> 0.0017s
4930== 20200928143126 AddBuildTriggerPermissions: migrated (0.0036s) ==============
4932== 20202427123653 AddColumnHasLocalRegistrationToTableSubscriptions: migrating
4933-- add_column(:subscriptions, :has_local_registration, :boolean, {:default=>nil})
4934 -> 0.0016s
4935== 20202427123653 AddColumnHasLocalRegistrationToTableSubscriptions: migrated (0.0017s)
4937== 20210203130200 CreateBuildBackupsTable: migrating ==========================
4938-- create_table(:build_backups, {:id=>:integer})
4939 -> 0.0071s
4940== 20210203130200 CreateBuildBackupsTable: migrated (0.0073s) =================
4942== 20210203143155 AddConfirmationFieldsToUser: migrating ======================
4943-- add_column(:users, :confirmed_at, :timestamp, {:precision=>nil})
4944 -> 0.0021s
4945-- add_column(:users, :token_expires_at, :timestamp, {:precision=>nil})
4946 -> 0.0013s
4947-- add_column(:users, :confirmation_token, :string)
4948 -> 0.0012s
4949-- add_index(:users, :confirmation_token)
4950 -> 0.0034s
4951== 20210203143155 AddConfirmationFieldsToUser: migrated (0.0083s) =============
4953== 20210203143406 ConfirmCurrentUsers: migrating ==============================
4954== 20210203143406 ConfirmCurrentUsers: migrated (0.0000s) =====================
4956== 20210614140633 AddServerTypeToRepositories: migrating ======================
4957-- add_column(:repositories, :server_type, :string, {:limit=>20})
4958 -> 0.0013s
4959== 20210614140633 AddServerTypeToRepositories: migrated (0.0014s) =============
4961== 20220610092916 MostRecentJobIdsForUserRepositoriesByStatesLw: migrating ====
4962-- execute("\n CREATE OR REPLACE FUNCTION\n most_recent_job_ids_for_user_repositories_by_states_lw(uid int, states varchar default '') RETURNS table (id bigint)\n LANGUAGE plpgsql\n AS $$\n DECLARE\n rid int;\n BEGIN\n SET LOCAL work_mem = '16MB';\n IF states <> '' THEN\n for rid in\n SELECT repository_id\n FROM permissions\n WHERE user_id = uid\n LOOP\n RETURN QUERY select j.id from jobs j where repository_id = rid and state in (SELECT unnest(regexp_split_to_array(states, ','))) order by j.id desc limit 100;\n END LOOP;\n ELSE\n for rid in\n SELECT repository_id\n FROM permissions\n WHERE user_id = uid\n LOOP\n RETURN QUERY select j.id from jobs j where repository_id = rid order by j.id desc limit 100;\n END LOOP;\n END IF;\n END\n $$;\n ")
4963 -> 0.0012s
4964== 20220610092916 MostRecentJobIdsForUserRepositoriesByStatesLw: migrated (0.0013s)
4966== 20220621151453 AddColumnRestartedByToTableJobs: migrating ==================
4967-- add_column(:jobs, :restarted_by, :integer, {:default=>nil})
4968 -> 0.0016s
4969-- add_column(:deleted_jobs, :restarted_by, :integer, {:default=>nil})
4970 -> 0.0011s
4971== 20220621151453 AddColumnRestartedByToTableJobs: migrated (0.0028s) =========
4973== 20220722162400 CreateAuditsTable: migrating ================================
4974-- create_table(:audits)
4975 -> 0.0080s
4976== 20220722162400 CreateAuditsTable: migrated (0.0081s) =======================
4978== 20220825140522 CreateCustomKeysTable: migrating ============================
4979-- create_table(:custom_keys)
4980 -> 0.0069s
4981== 20220825140522 CreateCustomKeysTable: migrated (0.0070s) ===================
4983== 20220905144600 AddScanFailedAtToRepositories: migrating ====================
4984-- add_column(:repositories, :scan_failed_at, :timestamp)
4985 -> 0.0011s
4986== 20220905144600 AddScanFailedAtToRepositories: migrated (0.0011s) ===========
4988== 20221214171030 AddPurposeColumnToTokens: migrating =========================
4989-- add_column(:tokens, :purpose, :integer, {:limit=>4, :default=>0})
4990 -> 0.0016s
4991== 20221214171030 AddPurposeColumnToTokens: migrated (0.0016s) ================
4993== 20230208161446 AddCloneUrlToRepositories: migrating ========================
4994-- add_column(:repositories, :clone_url, :string)
4995 -> 0.0007s
4996== 20230208161446 AddCloneUrlToRepositories: migrated (0.0007s) ===============
4998== 20230505055250 RolifyCreateRoles: migrating ================================
4999-- create_table(:roles)
5000 -> 0.0103s
5001-- create_table(:role_names)
5002 -> 0.0065s
5003-- create_table(:users_roles, {:id=>false})
5004 -> 0.0063s
5005-- add_index(:roles, :name)
5006 -> 0.0055s
5007-- add_index(:role_names, :name)
5008 -> 0.0027s
5009-- add_index(:roles, [:name, :resource_type, :resource_id])
5010 -> 0.0029s
5011-- add_index(:users_roles, [:user_id, :role_id])
5012 -> 0.0025s
5013== 20230505055250 RolifyCreateRoles: migrated (0.0373s) =======================
5015== 20230505060110 CreatePolicies: migrating ===================================
5016-- create_table(:policy_permissions)
5017 -> 0.0071s
5018-- create_table(:role_permissions, {:id=>false})
5019 -> 0.0060s
5020-- add_index(:policy_permissions, :name)
5021 -> 0.0023s
5022-- add_index(:role_permissions, [:role_name_id, :policy_permission_id])
5023 -> 0.0022s
5024== 20230505060110 CreatePolicies: migrated (0.0180s) ==========================
5026== 20230713115855 CreatePermissionsSync: migrating ============================
5027-- create_table(:permissions_syncs)
5028 -> 0.0126s
5029== 20230713115855 CreatePermissionsSync: migrated (0.0126s) ===================
5031== 20231005111642 CreatePermissionsIndex: migrating ===========================
5032-- add_index(:permissions_syncs, [:user_id, :resource_type, :resource_id], {:name=>"index_permissions_syncs_on_user_and_resource"})
5033 -> 0.0025s
5034-- add_index(:role_names, :role_type)
5035 -> 0.0022s
5036== 20231005111642 CreatePermissionsIndex: migrated (0.0048s) ==================
5038== 20240823085523 AddVmsizeToJobs: migrating ==================================
5039-- add_column(:jobs, :vm_size, :string)
5040 -> 0.0009s
5041-- add_column(:deleted_jobs, :vm_size, :string)
5042 -> 0.0005s
5043== 20240823085523 AddVmsizeToJobs: migrated (0.0014s) =========================
5045== 20250206092313 LastActivityAtOnUser: migrating =============================
5046-- add_column(:users, :last_activity_at, :timestamp)
5047 -> 0.0008s
5048== 20250206092313 LastActivityAtOnUser: migrated (0.0008s) ====================
5050 sets unique_number on INSERT
5051 does not set unique_number on INSERT if 0 is given as a value
5052 sets unique_number on UPDATE
5053 does not set unique_number on UPDATE if unique_number is 0
5055set_updated_at trigger
5056 jobs
5057 sets updated_at on INSERT
5058 sets updated_at on UPDATE
5059 works also for new columns
5060 builds
5061 sets updated_at on INSERT
5062 sets updated_at on UPDATE
5063 works also for new columns
5065soft delete repo
5066 ensure that soft delete tables have the same fields that the originals
5067 soft deleting a repo moves all of the related data to deleted_* tables
5069Rake tasks
5070 rake db:create
5071 migrates the main db
5072 rake db:schema:load
5073 loads the main schema
5075Deprecation Warnings:
5077Using `should` from rspec-expectations' old `:should` syntax without explicitly enabling the syntax is deprecated. Use the new `:expect` syntax or explicitly enable `:should` with `config.expect_with(:rspec) { |c| c.syntax = :should }` instead. Called from /home/travis/build/travis-ci/travis-migrations/spec/soft_delete_repo_spec.rb:118:in `block (2 levels) in <top (required)>'.
5080If you need more of the backtrace for any of these deprecations to
5081identify where to make the necessary changes, you can configure
5082`config.raise_errors_for_deprecations!`, and it will turn the
5083deprecation warnings into errors, giving you the full backtrace.
50851 deprecation warning total
5087Finished in 45.49 seconds (files took 0.3922 seconds to load)
508819 examples, 0 failures
5090The command "bundle exec rspec spec" exited with 0.
cache.2
5091store build cache
50920.00s1.52snothing changed
after_success
50940.21s$ script/upload_structure.rb
5095<internal:/home/travis/.rvm/rubies/ruby-3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require': cannot load such file -- s3 (LoadError)
5096 from <internal:/home/travis/.rvm/rubies/ruby-3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
5097 from script/upload_structure.rb:5:in `<main>'
5099Done. Your build exited with 0.
Top