master cron Merge pull request #297 from travis-ci/release_240902

Release 2024 09 02

Dominik authored GitHub committed

Cron job event #3847 passed

  • Ran for
AMD64
Ruby: 3.2.2
Git
Raw log
Scroll to End of Log
0.00s0.21s0.12s0.06s0.00s
worker_info
1Worker information
2hostname: 720442e1-c70c-4388-a8da-81e8c3ca628f@1.worker-n2-com-f8c4bb956-cnsdw.gce-production-1
3version: deploy_2024.10.02-2-gc32b553 https://github.com/travis-ci/worker/tree/c32b553e81363378d09787f52103ea9bcadf253c
4instance: travis-job-d7fd4d4a-9678-46d3-baf1-e1ce881512db travis-ci-ubuntu-2004-1726220016-655c8cb5 (via amqp)
5startup: 5.936600082s
60.22s0.00s0.01s0.00s0.01s
system_info
7Build system information
8Build language: ruby
9Build dist: focal
10Build id: 273952517
11Job id: 629956728
12Runtime kernel version: 5.15.0-1068-gcp
13VM: default
14travis-build version: 6b157a1c
15Build image provisioning date and time
16Fri 13 Sep 2024 09:58:48 AM 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.23)
24Cookbooks Version
2539734fe https://github.com/travis-ci/travis-cookbooks/tree/39734fe
26git version
27git version 2.46.0
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.0
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/9.2.1 linux-x64 node-v16.20.2
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.39-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.16 (Ubuntu 13.16-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 Sep 04 2024 03:11:27)
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
108gimme version
109v1.5.4
110nvm version
1110.40.1
112perlbrew version
113/home/travis/perl5/perlbrew/bin/perlbrew - App::perlbrew/0.95
114phpenv version
115rbenv 1.3.0
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.0
132Pre-installed Go versions
1331.23.0
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.4
148v20.17.0
149v4.9.1
150v6.17.1
151v8.17.0
152phpenv versions
153 system
154 7.4
155* 7.4.6 (set by /home/travis/.phpenv/version)
156 hhvm-stable
157 hhvm
158composer --version
159Composer version 1.10.6 2020-05-06 10:28:10
160Pre-installed Ruby versions
161ruby-2.7.6
162ruby-3.3.5
1640.02s0.01s0.72s0.31s0.05s0.01s0.04s0.00s0.03s0.01s0.01s0.01s0.01s0.00s0.35sOK
1650.00s0.04s0.00s0.03s0.18s0.00s0.00s0.00s0.01s0.00s0.18s0.00s1.07s0.00s0.13s6.04s0.00s4.09s0.00s2.29s
docker_mtu_and_registry_mirrors
Docker
resolvconf
apt
166Adding APT Sources
1670.37s$ curl -sSL "https://www.postgresql.org/media/keys/ACCC4CF8.asc" | sudo -E apt-key add -
168OK
1690.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
17015.01s$ travis_apt_get_update
171Installing APT Packages
172PostgreSQL package is detected. Stopping postgresql service. See https://github.com/travis-ci/travis-ci/issues/5737 for more information.
173$ sudo systemctl stop postgresql
17414.34s$ sudo -E apt-get -yq --no-install-suggests --no-install-recommends $(travis_apt_get_options) install postgresql-11 postgresql-client-11
175Reading package lists...
176Building dependency tree...
177Reading state information...
178The following packages were automatically installed and are no longer required:
179 amd64-microcode intel-microcode iucode-tool libglu1-mesa
180 libjs-jquery-metadata libjs-jquery-tablesorter libnotify4 libwxbase3.0-0v5
181 libwxgtk3.0-gtk3-0v5 linux-modules-5.4.0-195-generic postgresql-client-12
182Use 'sudo apt autoremove' to remove them.
183Suggested packages:
184 postgresql-doc-11
185Recommended packages:
186 sysstat
187The following NEW packages will be installed:
188 postgresql-11 postgresql-client-11
1890 upgraded, 2 newly installed, 0 to remove and 129 not upgraded.
190Need to get 15.8 MB of archives.
191After this operation, 54.1 MB of additional disk space will be used.
192Get:1 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-client-11 amd64 11.22-8.pgdg20.04+1 [1,494 kB]
193Get:2 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-11 amd64 11.22-8.pgdg20.04+1 [14.3 MB]
194Preconfiguring packages ...
195Fetched 15.8 MB in 2s (8,602 kB/s)
196Selecting previously unselected package postgresql-client-11.
197(Reading database ... 154608 files and directories currently installed.)
198Preparing to unpack .../postgresql-client-11_11.22-8.pgdg20.04+1_amd64.deb ...
199Unpacking postgresql-client-11 (11.22-8.pgdg20.04+1) ...
200Selecting previously unselected package postgresql-11.
201Preparing to unpack .../postgresql-11_11.22-8.pgdg20.04+1_amd64.deb ...
202Unpacking postgresql-11 (11.22-8.pgdg20.04+1) ...
203Setting up postgresql-client-11 (11.22-8.pgdg20.04+1) ...
204Setting up postgresql-11 (11.22-8.pgdg20.04+1) ...
205Creating new PostgreSQL cluster 11/main ...
206/usr/lib/postgresql/11/bin/initdb -D /var/lib/postgresql/11/main --auth-local peer --auth-host md5
207The files belonging to this database system will be owned by user "postgres".
208This user must also own the server process.
210The database cluster will be initialized with locale "en_US.UTF-8".
211The default database encoding has accordingly been set to "UTF8".
212The default text search configuration will be set to "english".
214Data page checksums are disabled.
216fixing permissions on existing directory /var/lib/postgresql/11/main ... ok
217creating subdirectories ... ok
218selecting default max_connections ... 100
219selecting default shared_buffers ... 128MB
220selecting default timezone ... UTC
221selecting dynamic shared memory implementation ... posix
222creating configuration files ... ok
223running bootstrap script ... ok
224performing post-bootstrap initialization ... ok
225syncing data to disk ... ok
227Success. You can now start the database server using:
229 pg_ctlcluster 11 main start
231Processing triggers for postgresql-common (262.pgdg20.04+1) ...
232Building PostgreSQL dictionaries from installed myspell/hunspell packages...
233Removing obsolete dictionary files:
2343.01s
services
postgresql
2353.73s$ travis_setup_postgresql 11
236Starting PostgreSQL v11
237sudo systemctl start postgresql@11-main
git.checkout
2390.01s0.54s$ git clone --depth=50 --branch=master https://github.com/travis-ci/travis-migrations.git travis-ci/travis-migrations
240Cloning into 'travis-ci/travis-migrations'...
241$ cd travis-ci/travis-migrations
242$ git checkout -qf eceffad5926ead66098e9b887658be1e5b59c9ce
2440.01s
245Setting environment variables from repository settings
246$ export QUAY_ROBOT_HANDLE=[secure]
247$ export QUAY_ROBOT_TOKEN=[secure]
248$ export ARTIFACTS_BUCKET=travis-migrations-structure-dumps
249$ export ARTIFACTS_SECRET=[secure]
250$ export ARTIFACTS_KEY=[secure]
rvm
2523.12s$ rvm get head
253Downloading https://get.rvm.io
254Downloading https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer.asc
255Verifying /home/travis/.rvm/archives/rvm-installer.asc
256gpg: Signature made Tue 21 Feb 2023 11:35:16 PM UTC
257gpg: using RSA key 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
258gpg: Good signature from "Piotr Kuczynski <piotr.kuczynski@gmail.com>" [unknown]
259gpg: WARNING: This key is not certified with a trusted signature!
260gpg: There is no indication that the signature belongs to the owner.
261Primary key fingerprint: 7D2B AF1C F37B 13E2 069D 6956 105B D0E7 3949 9BDB
262GPG verified '/home/travis/.rvm/archives/rvm-installer'
263Downloading https://github.com/rvm/rvm/archive/master.tar.gz
264Upgrading the RVM installation in /home/travis/.rvm/
265 RVM PATH line found in /home/travis/.mkshrc /home/travis/.profile /home/travis/.zshrc.
266 RVM PATH line not found for Bash, rerun this command with '--auto-dotfiles' flag to fix it.
267 RVM sourcing line found in /home/travis/.profile /home/travis/.bashrc /home/travis/.zlogin.
268Upgrade of RVM in /home/travis/.rvm/ is complete.
270<warn>Thanks for installing RVM 🙏</warn>
271Please consider donating to our open collective to help us maintain RVM.
273👉 Donate: <code>https://opencollective.com/rvm/donate</code>
276RVM reloaded!
27721.15s$ rvm use 3.2.2 --install --binary --fuzzy
278curl: (22) The requested URL returned error: 404
279Required ruby-3.2.2 is not installed - installing.
280curl: (22) The requested URL returned error: 404
281Searching for binary rubies, this might take some time.
282Found remote file https://rubies.travis-ci.org/ubuntu/20.04/x86_64/ruby-3.2.2.tar.bz2
283Checking requirements for ubuntu.
284Requirements installation successful.
285ruby-3.2.2 - #configure
286ruby-3.2.2 - #download
287 % Total % Received % Xferd Average Speed Time Time Time Current
288 Dload Upload Total Spent Left Speed
289 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
290100 32.0M 100 32.0M 0 0 21.1M 0 0:00:01 0:00:01 --:--:-- 57.3M
291No checksum for downloaded archive, recording checksum in user configuration.
292ruby-3.2.2 - #validate archive
293ruby-3.2.2 - #extract
294ruby-3.2.2 - #validate binary
295ruby-3.2.2 - #setup
296ruby-3.2.2 - #gemset created /home/travis/.rvm/gems/ruby-3.2.2@global
297ruby-3.2.2 - #importing gemset /home/travis/.rvm/gemsets/global.gems..................................
298ruby-3.2.2 - #generating global wrappers........
299ruby-3.2.2 - #uninstalling gem rubygems-bundler-1.4.5.
300ruby-3.2.2 - #gemset created /home/travis/.rvm/gems/ruby-3.2.2
301ruby-3.2.2 - #importing gemset /home/travis/.rvm/gemsets/default.gems..............
302ruby-3.2.2 - #generating default wrappers........
303Using /home/travis/.rvm/gems/ruby-3.2.2
305$ export BUNDLE_GEMFILE=$PWD/Gemfile
cache.1
306Setting up build cache
307$ export CASHER_DIR=${TRAVIS_HOME}/.casher
3080.17s$ Installing caching utilities
3090.00s1.53sattempting to download cache archive
310fetching master/cache--linux-focal-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--rvm-3.2.2--gemfile-Gemfile.tgz
311found cache
3120.00s2.00sadding /home/travis/build/travis-ci/travis-migrations/vendor/bundle to cache
313creating directory /home/travis/build/travis-ci/travis-migrations/vendor/bundle
ruby.versions
316$ ruby --version
317ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux]
318$ rvm --version
319rvm 1.29.12-next (master) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
320$ bundle --version
321Bundler version 2.4.10
322$ gem --version
3233.4.10
before_install.1
3254.28s$ gem update --system
326Updating rubygems-update
327Successfully installed rubygems-update-3.6.3
328Installing RubyGems 3.6.3
329 Successfully built RubyGem
330 Name: bundler
331 Version: 2.6.3
332 File: bundler-2.6.3.gem
333Bundler 2.6.3 installed
334RubyGems 3.6.3 installed
335Regenerating binstubs
336Regenerating plugins
338# 3.6.3 / 2025-01-16
340## Enhancements:
342* Add credentials file path to `gem env`. Pull request
343 [#8375](https://github.com/rubygems/rubygems/pull/8375) by duckinator
344* Update SPDX license list as of 2024-12-30. Pull request
345 [#8387](https://github.com/rubygems/rubygems/pull/8387) by
346 github-actions[bot]
347* Installs bundler 2.6.3 as a default gem.
349## Bug fixes:
351* Fix `@licenses` array unmarshalling. Pull request
352 [#8411](https://github.com/rubygems/rubygems/pull/8411) by rykov
354# 3.6.2 / 2024-12-23
356## Security:
358* Fix Gem::SafeMarshal buffer overrun when given lengths larger than fit
359 into a byte. Pull request
360 [#8305](https://github.com/rubygems/rubygems/pull/8305) by segiddins
361* Improve type checking in marshal_load methods. Pull request
362 [#8306](https://github.com/rubygems/rubygems/pull/8306) by segiddins
364## Enhancements:
366* Skip rdoc hooks and their tests on newer rdoc versions. Pull request
367 [#8340](https://github.com/rubygems/rubygems/pull/8340) by
368 deivid-rodriguez
369* Installs bundler 2.6.2 as a default gem.
371## Bug fixes:
373* Fix serialized metadata including an empty `@original_platform`
374 attribute. Pull request
375 [#8355](https://github.com/rubygems/rubygems/pull/8355) by
376 deivid-rodriguez
378# 3.6.1 / 2024-12-17
380## Enhancements:
382* Installs bundler 2.6.1 as a default gem.
384## Bug fixes:
386* Fix `gem info` tagging some non default gems as default. Pull request
387 [#8321](https://github.com/rubygems/rubygems/pull/8321) by
388 deivid-rodriguez
390## Documentation:
392* Fix broken links. Pull request
393 [#8327](https://github.com/rubygems/rubygems/pull/8327) by st0012
395# 3.6.0 / 2024-12-16
397## Security:
399* Stop storing executable names in ivars. Pull request
400 [#8307](https://github.com/rubygems/rubygems/pull/8307) by segiddins
402## Breaking changes:
404* Drop ruby 3.0 support. Pull request
405 [#8091](https://github.com/rubygems/rubygems/pull/8091) by segiddins
407## Features:
409* Add --attestation option to gem push. Pull request
410 [#8239](https://github.com/rubygems/rubygems/pull/8239) by segiddins
412## Enhancements:
414* Skip unresolved deps warning on `Gem::Specification.reset` on benign
415 cases. Pull request
416 [#8309](https://github.com/rubygems/rubygems/pull/8309) by
417 deivid-rodriguez
418* Let `gem install <name>` suggest `<name>-ruby` and `ruby-<name>` when
419 providing "did you mean" suggestions. Pull request
420 [#8197](https://github.com/rubygems/rubygems/pull/8197) by duckinator
421* Update SPDX license list as of 2024-08-19. Pull request
422 [#8233](https://github.com/rubygems/rubygems/pull/8233) by
423 github-actions[bot]
424* Add `--target-rbconfig` option to `gem install` and `gem update`
425 commands. Pull request
426 [#7628](https://github.com/rubygems/rubygems/pull/7628) by kateinoigakukun
427* Skip nil-value keys to make metadata reproducible. Pull request
428 [#7129](https://github.com/rubygems/rubygems/pull/7129) by nobu
429* Allow disabling installation of compiled extensions into lib through
430 `Gem.configuration.install_extension_in_lib`. Pull request
431 [#6463](https://github.com/rubygems/rubygems/pull/6463) by hsbt
432* Installs bundler 2.6.0 as a default gem.
434## Bug fixes:
436* Set $0 to exe when running `gem exec` to fix name in CLI output. Pull
437 request [#8267](https://github.com/rubygems/rubygems/pull/8267) by adam12
438* Fix manifest in gem package using incorrect platform sometimes. Pull
439 request [#8202](https://github.com/rubygems/rubygems/pull/8202) by
440 deivid-rodriguez
442## Documentation:
444* Fix missing single quote in git source example. Pull request
445 [#8303](https://github.com/rubygems/rubygems/pull/8303) by nobu
446* Update the `gem install` demo in REAME to use a gem that just works on
447 Windows. Pull request
448 [#8262](https://github.com/rubygems/rubygems/pull/8262) by soda92
449* Unify rubygems and bundler docs directory. Pull request
450 [#8159](https://github.com/rubygems/rubygems/pull/8159) by hsbt
452# 3.5.23 / 2024-11-05
454## Enhancements:
456* Validate user input encoding of `gem` CLI arguments. Pull request
457 [#6471](https://github.com/rubygems/rubygems/pull/6471) by
458 deivid-rodriguez
459* Fix `gem update --system` leaving old default bundler executables
460 around. Pull request
461 [#8172](https://github.com/rubygems/rubygems/pull/8172) by
462 deivid-rodriguez
463* Installs bundler 2.5.23 as a default gem.
465## Bug fixes:
467* Fix commands with 2 MFA requests when webauthn is enabled. Pull request
468 [#8174](https://github.com/rubygems/rubygems/pull/8174) by
469 deivid-rodriguez
470* Make `--enable-load-relative` binstubs prolog work when Ruby is not
471 installed in the same directory as the binstub. Pull request
472 [#7872](https://github.com/rubygems/rubygems/pull/7872) by
473 deivid-rodriguez
475## Performance:
477* Speed up `gem install <nonexistent-gem>` by finding alternative name
478 suggestions faster. Pull request
479 [#8084](https://github.com/rubygems/rubygems/pull/8084) by duckinator
481## Documentation:
483* Add missing comma in documentation. Pull request
484 [#8152](https://github.com/rubygems/rubygems/pull/8152) by leoarnold
486# 3.5.22 / 2024-10-16
488## Enhancements:
490* Prevent `._*` files in packages generated from macOS. Pull request
491 [#8150](https://github.com/rubygems/rubygems/pull/8150) by
492 deivid-rodriguez
493* Fix `gem pristine etc` resetting gem twice sometimes. Pull request
494 [#8117](https://github.com/rubygems/rubygems/pull/8117) by
495 deivid-rodriguez
496* Allow `gem pristine` to reset default gems too. Pull request
497 [#8118](https://github.com/rubygems/rubygems/pull/8118) by
498 deivid-rodriguez
499* Update vendored `uri` and `net-http`. Pull request
500 [#8112](https://github.com/rubygems/rubygems/pull/8112) by segiddins
501* Installs bundler 2.5.22 as a default gem.
503## Bug fixes:
505* Fix `gem contents` for default gems. Pull request
506 [#8132](https://github.com/rubygems/rubygems/pull/8132) by
507 deivid-rodriguez
508* Fix duplicated specs when they have been previously activated. Pull
509 request [#8131](https://github.com/rubygems/rubygems/pull/8131) by
510 deivid-rodriguez
511* Fix `gem install` on NFS shares. Pull request
512 [#8123](https://github.com/rubygems/rubygems/pull/8123) by
513 deivid-rodriguez
514* Fix a `gem install` crash during "done installing" hooks. Pull request
515 [#8113](https://github.com/rubygems/rubygems/pull/8113) by
516 deivid-rodriguez
517* Fix plugin command loading. Pull request
518 [#8121](https://github.com/rubygems/rubygems/pull/8121) by
519 deivid-rodriguez
521# 3.5.21 / 2024-10-03
523## Enhancements:
525* Fix `Gem::MissingSpecVersionError#to_s` not showing exception message.
526 Pull request [#8074](https://github.com/rubygems/rubygems/pull/8074) by
527 deivid-rodriguez
528* Remove code that makes suggest_gems_from_name give worse results. Pull
529 request [#8083](https://github.com/rubygems/rubygems/pull/8083) by
530 duckinator
531* Warning about PATH in `--user-install` mode is only necessary for gems
532 with executables. Pull request
533 [#8071](https://github.com/rubygems/rubygems/pull/8071) by
534 deivid-rodriguez
535* Installs bundler 2.5.21 as a default gem.
537## Bug fixes:
539* Fix error in one source when fetching dependency APIs clearing results
540 from all sources. Pull request
541 [#8080](https://github.com/rubygems/rubygems/pull/8080) by
542 deivid-rodriguez
543* Fix `gem cleanup` warning when two versions of psych installed. Pull
544 request [#8072](https://github.com/rubygems/rubygems/pull/8072) by
545 deivid-rodriguez
547# 3.5.20 / 2024-09-24
549## Enhancements:
551* Installs bundler 2.5.20 as a default gem.
553# 3.5.19 / 2024-09-18
555## Enhancements:
557* Standardize pretty-print output for `Gem::Source` and subclasses. Pull
558 request [#7994](https://github.com/rubygems/rubygems/pull/7994) by
559 djberube
560* Update vendored `molinillo` to master and vendored `resolv` to 0.4.0.
561 Pull request [#7521](https://github.com/rubygems/rubygems/pull/7521) by
562 hsbt
563* Installs bundler 2.5.19 as a default gem.
565## Bug fixes:
567* Fix `bundle exec rake install` failing when local gem has extensions.
568 Pull request [#7977](https://github.com/rubygems/rubygems/pull/7977) by
569 deivid-rodriguez
570* Make `gem exec` use the standard GEM_HOME. Pull request
571 [#7982](https://github.com/rubygems/rubygems/pull/7982) by
572 deivid-rodriguez
573* Fix `gem fetch` always exiting with zero status code. Pull request
574 [#8007](https://github.com/rubygems/rubygems/pull/8007) by
575 deivid-rodriguez
576* Remove temporary `.lock` files unintentionally left around by gem
577 installer. Pull request
578 [#7939](https://github.com/rubygems/rubygems/pull/7939) by nobu
579* Removed unused stringio. Pull request
580 [#8001](https://github.com/rubygems/rubygems/pull/8001) by hsbt
581* Avoid another race condition of open mode. Pull request
582 [#7931](https://github.com/rubygems/rubygems/pull/7931) by nobu
583* Fix `@license` typo preventing licenses from being correctly
584 unmarshalled. Pull request
585 [#7975](https://github.com/rubygems/rubygems/pull/7975) by djberube
587## Performance:
589* Fix `gem install does-not-exist` being super slow. Pull request
590 [#8006](https://github.com/rubygems/rubygems/pull/8006) by
591 deivid-rodriguez
593# 3.5.18 / 2024-08-26
595## Enhancements:
597* Installs bundler 2.5.18 as a default gem.
599## Bug fixes:
601* Fix `gem uninstall <name>:<version>` failing on shadowed default gems.
602 Pull request [#7949](https://github.com/rubygems/rubygems/pull/7949) by
603 deivid-rodriguez
605# 3.5.17 / 2024-08-01
607## Enhancements:
609* Explicitly encode `Gem::Dependency` to yaml. Pull request
610 [#7867](https://github.com/rubygems/rubygems/pull/7867) by segiddins
611* Installs bundler 2.5.17 as a default gem.
613## Bug fixes:
615* Fix `gem list` regression when a regular gem shadows a default one. Pull
616 request [#7892](https://github.com/rubygems/rubygems/pull/7892) by
617 deivid-rodriguez
618* Always leave default gem executables around. Pull request
619 [#7879](https://github.com/rubygems/rubygems/pull/7879) by
620 deivid-rodriguez
621* Fix line comment issue for hash when loading gemrc. Pull request
622 [#7857](https://github.com/rubygems/rubygems/pull/7857) by leetking
624# 3.5.16 / 2024-07-18
626## Enhancements:
628* Installs bundler 2.5.16 as a default gem.
630## Bug fixes:
632* Fix gemspec `require_paths` validation. Pull request
633 [#7866](https://github.com/rubygems/rubygems/pull/7866) by
634 deivid-rodriguez
635* Fix loading of nested `gemrc` config keys when specified as symbols.
636 Pull request [#7851](https://github.com/rubygems/rubygems/pull/7851) by
637 moofkit
639## Performance:
641* Use `caller_locations` instead of splitting `caller`. Pull request
642 [#7708](https://github.com/rubygems/rubygems/pull/7708) by nobu
644# 3.5.15 / 2024-07-09
646## Enhancements:
648* Installs bundler 2.5.15 as a default gem.
650## Bug fixes:
652* Restrict generic `arm` to only match 32-bit arm. Pull request
653 [#7830](https://github.com/rubygems/rubygems/pull/7830) by ntkme
654* Protect creating binstubs with a file lock. Pull request
655 [#7806](https://github.com/rubygems/rubygems/pull/7806) by
656 deivid-rodriguez
658## Documentation:
660* Make it clearer that `add_dependency` is the main way to add
661 non-development dependencies. Pull request
662 [#7800](https://github.com/rubygems/rubygems/pull/7800) by jeromedalbert
664# 3.5.14 / 2024-06-21
666## Enhancements:
668* Installs bundler 2.5.14 as a default gem.
670## Bug fixes:
672* Make "bundler? update --bundler" behave identically. Pull request
673 [#7778](https://github.com/rubygems/rubygems/pull/7778) by x-yuri
675# 3.5.13 / 2024-06-14
677## Enhancements:
679* Installs bundler 2.5.13 as a default gem.
681## Bug fixes:
683* Never remove executables that may belong to a default gem. Pull request
684 [#7747](https://github.com/rubygems/rubygems/pull/7747) by
685 deivid-rodriguez
687# 3.5.12 / 2024-06-13
689## Enhancements:
691* Installs bundler 2.5.12 as a default gem.
693## Bug fixes:
695* Fix `gem uninstall` unresolved specifications warning. Pull request
696 [#7667](https://github.com/rubygems/rubygems/pull/7667) by
697 deivid-rodriguez
698* Fix `gem pristine` sometimes failing to pristine user installed gems.
699 Pull request [#7664](https://github.com/rubygems/rubygems/pull/7664) by
700 deivid-rodriguez
702# 3.5.11 / 2024-05-28
704## Enhancements:
706* Update SPDX license list as of 2024-05-22. Pull request
707 [#7689](https://github.com/rubygems/rubygems/pull/7689) by
708 github-actions[bot]
709* Fix the update_rubygems inconsistency (--disable-gems). Pull request
710 [#7658](https://github.com/rubygems/rubygems/pull/7658) by x-yuri
711* Accept WASI as an OS name in Gem::Platform. Pull request
712 [#7629](https://github.com/rubygems/rubygems/pull/7629) by kateinoigakukun
713* Warn if RubyGems version explicitly set in gemspec does not match
714 running version. Pull request
715 [#7460](https://github.com/rubygems/rubygems/pull/7460) by
716 deivid-rodriguez
717* Installs bundler 2.5.11 as a default gem.
719## Bug fixes:
721* Fix binstubs sometimes not getting regenerated when `--destdir` is
722 given. Pull request
723 [#7660](https://github.com/rubygems/rubygems/pull/7660) by
724 deivid-rodriguez
725* Fix `gem uninstall --user-install` for symlinked HOME. Pull request
726 [#7645](https://github.com/rubygems/rubygems/pull/7645) by
727 deivid-rodriguez
728* Fix issue when plugin stubs would sometimes not be properly removed by
729 `gem uninstall`. Pull request
730 [#7631](https://github.com/rubygems/rubygems/pull/7631) by
731 deivid-rodriguez
732* Fix plugins uninstallation for user installed gems. Pull request
733 [#6456](https://github.com/rubygems/rubygems/pull/6456) by voxik
735## Performance:
737* Use a constant empty tar header to avoid extra allocations. Pull request
738 [#7484](https://github.com/rubygems/rubygems/pull/7484) by segiddins
740## Documentation:
742* Recommend `bin/rake` over `rake` in contributing docs. Pull request
743 [#7648](https://github.com/rubygems/rubygems/pull/7648) by
744 deivid-rodriguez
746# 3.5.10 / 2024-05-03
748## Security:
750* Add a limit to the size of the metadata and checksums files in a gem
751 package. Pull request
752 [#7568](https://github.com/rubygems/rubygems/pull/7568) by segiddins
754## Enhancements:
756* Don't fully require `rubygems` from `rubygems/package` to prevent some
757 circular require warnings when using Bundler. Pull request
758 [#7612](https://github.com/rubygems/rubygems/pull/7612) by
759 deivid-rodriguez
760* Installs bundler 2.5.10 as a default gem.
762## Bug fixes:
764* Rename credential email to identifier in WebAuthn poller. Pull request
765 [#7623](https://github.com/rubygems/rubygems/pull/7623) by jenshenny
767# 3.5.9 / 2024-04-12
769## Enhancements:
771* Installs bundler 2.5.9 as a default gem.
773# 3.5.8 / 2024-04-11
775## Security:
777* Respect global umask when writing regular files. Pull request
778 [#7518](https://github.com/rubygems/rubygems/pull/7518) by
779 deivid-rodriguez
781## Enhancements:
783* Allow string keys with gemrc. Pull request
784 [#7543](https://github.com/rubygems/rubygems/pull/7543) by hsbt
785* [Experimental] Add "gem rebuild" command. Pull request
786 [#4913](https://github.com/rubygems/rubygems/pull/4913) by duckinator
787* Installs bundler 2.5.8 as a default gem.
789## Bug fixes:
791* Fix NoMethodError crash when building errors about corrupt package
792 files. Pull request
793 [#7539](https://github.com/rubygems/rubygems/pull/7539) by jez
794* Fix resolver to properly intersect Arrays of `Gem::Resolver::Activation`
795 objects. Pull request
796 [#7537](https://github.com/rubygems/rubygems/pull/7537) by
797 deivid-rodriguez
799# 3.5.7 / 2024-03-22
801## Enhancements:
803* Warn on empty or open required_ruby_version specification attribute.
804 Pull request [#5010](https://github.com/rubygems/rubygems/pull/5010) by
805 simi
806* Control whether YAML aliases are enabled in Gem::SafeYAML.safe_load via
807 attribute. Pull request
808 [#7464](https://github.com/rubygems/rubygems/pull/7464) by segiddins
809* Update SPDX license list as of 2024-02-08. Pull request
810 [#7468](https://github.com/rubygems/rubygems/pull/7468) by
811 github-actions[bot]
812* Installs bundler 2.5.7 as a default gem.
814## Bug fixes:
816* Allow prerelease activation (even if requirement is not explicit about
817 it) when it's the only possibility. Pull request
818 [#7428](https://github.com/rubygems/rubygems/pull/7428) by kimesf
820## Documentation:
822* Fix a typo. Pull request
823 [#7505](https://github.com/rubygems/rubygems/pull/7505) by hsbt
824* Use https instead of http in documentation links. Pull request
825 [#7481](https://github.com/rubygems/rubygems/pull/7481) by hsbt
827# 3.5.6 / 2024-02-06
829## Enhancements:
831* Deep copy requirements in `Gem::Specification` and `Gem::Requirement`.
832 Pull request [#7439](https://github.com/rubygems/rubygems/pull/7439) by
833 flavorjones
834* Change gem login message to clear up that username can be also used.
835 Pull request [#7422](https://github.com/rubygems/rubygems/pull/7422) by
836 VitaliySerov
837* Add metadata for rubygems.org. Pull request
838 [#7435](https://github.com/rubygems/rubygems/pull/7435) by m-nakamura145
839* Improve gem login scope selection. Pull request
840 [#7342](https://github.com/rubygems/rubygems/pull/7342) by williantenfen
841* Vendor uri in RubyGems. Pull request
842 [#7386](https://github.com/rubygems/rubygems/pull/7386) by
843 deivid-rodriguez
844* Installs bundler 2.5.6 as a default gem.
846## Bug fixes:
848* Skip to load commented out words. Pull request
849 [#7413](https://github.com/rubygems/rubygems/pull/7413) by hsbt
850* Fix rake runtime dependency warning for rake based extension. Pull
851 request [#7395](https://github.com/rubygems/rubygems/pull/7395) by ntkme
853# 3.5.5 / 2024-01-18
855## Enhancements:
857* Installs bundler 2.5.5 as a default gem.
859## Bug fixes:
861* Fix `require` activation conflicts when requiring default gems under
862 some situations. Pull request
863 [#7379](https://github.com/rubygems/rubygems/pull/7379) by
864 deivid-rodriguez
865* Use cache_home instead of data_home in default_spec_cache_dir. Pull
866 request [#7331](https://github.com/rubygems/rubygems/pull/7331) by mrkn
868## Documentation:
870* Use squiggly heredocs in `Gem::Specification#description` documentation,
871 so it doesn't add leading whitespace. Pull request
872 [#7373](https://github.com/rubygems/rubygems/pull/7373) by bravehager
874# 3.5.4 / 2024-01-04
876## Enhancements:
878* Always avoid "Updating rubygems-update" message. Pull request
879 [#7335](https://github.com/rubygems/rubygems/pull/7335) by
880 deivid-rodriguez
881* Installs bundler 2.5.4 as a default gem.
883## Bug fixes:
885* Make `gem update --system` respect ruby version constraints. Pull
886 request [#7334](https://github.com/rubygems/rubygems/pull/7334) by
887 deivid-rodriguez
889# 3.5.3 / 2023-12-22
891## Enhancements:
893* Installs bundler 2.5.3 as a default gem.
895# 3.5.2 / 2023-12-21
897## Enhancements:
899* Support dynamic library loading with extension .so or .o. Pull request
900 [#7241](https://github.com/rubygems/rubygems/pull/7241) by hogelog
901* Installs bundler 2.5.2 as a default gem.
903## Performance:
905* Replace `object_id` comparison with identity Hash. Pull request
906 [#7303](https://github.com/rubygems/rubygems/pull/7303) by amomchilov
907* Use IO.copy_stream when reading, writing. Pull request
908 [#6958](https://github.com/rubygems/rubygems/pull/6958) by martinemde
910# 3.5.1 / 2023-12-15
912## Enhancements:
914* Installs bundler 2.5.1 as a default gem.
916# 3.5.0 / 2023-12-15
918## Security:
920* Replace `Marshal.load` with a fully-checked safe gemspec loader. Pull
921 request [#6896](https://github.com/rubygems/rubygems/pull/6896) by
922 segiddins
924## Breaking changes:
926* Drop ruby 2.6 and 2.7 support. Pull request
927 [#7116](https://github.com/rubygems/rubygems/pull/7116) by
928 deivid-rodriguez
929* Release package no longer includes test files. Pull request
930 [#6781](https://github.com/rubygems/rubygems/pull/6781) by hsbt
931* Hide `Gem::MockGemUi` from users. Pull request
932 [#6623](https://github.com/rubygems/rubygems/pull/6623) by hsbt
933* Deprecated `Gem.datadir` has been removed. Pull request
934 [#6469](https://github.com/rubygems/rubygems/pull/6469) by hsbt
936## Deprecations:
938* Deprecate `Gem::Platform.match?`. Pull request
939 [#6783](https://github.com/rubygems/rubygems/pull/6783) by hsbt
940* Deprecate `Gem::List`. Pull request
941 [#6311](https://github.com/rubygems/rubygems/pull/6311) by segiddins
943## Features:
945* The `generate_index` command can now generate compact index files and
946 lives as an external `rubygems-generate_index` gem. Pull request
947 [#7085](https://github.com/rubygems/rubygems/pull/7085) by segiddins
948* Make `gem install` fallback to user installation directory if default
949 gem home is not writable. Pull request
950 [#5327](https://github.com/rubygems/rubygems/pull/5327) by duckinator
951* Leverage ruby feature to warn when requiring default gems from stdlib
952 that will be turned into bundled gems in the future. Pull request
953 [#6840](https://github.com/rubygems/rubygems/pull/6840) by hsbt
955## Performance:
957* Use match? when regexp match data is unused. Pull request
958 [#7263](https://github.com/rubygems/rubygems/pull/7263) by segiddins
959* Fewer allocations in gem installation. Pull request
960 [#6975](https://github.com/rubygems/rubygems/pull/6975) by segiddins
961* Optimize allocations in `Gem::Version`. Pull request
962 [#6970](https://github.com/rubygems/rubygems/pull/6970) by segiddins
964## Enhancements:
966* Warn for duplicate meta data links when building gems. Pull request
967 [#7213](https://github.com/rubygems/rubygems/pull/7213) by etherbob
968* Vendor `net-http`, `net-protocol`, `resolv`, and `timeout` to reduce
969 conflicts between Gemfile gems and internal dependencies. Pull request
970 [#6793](https://github.com/rubygems/rubygems/pull/6793) by
971 deivid-rodriguez
972* Remove non-transparent requirement added to prerelease gems. Pull
973 request [#7226](https://github.com/rubygems/rubygems/pull/7226) by
974 deivid-rodriguez
975* Stream output from ext builds when --verbose. Pull request
976 [#7240](https://github.com/rubygems/rubygems/pull/7240) by osyoyu
977* Add missing services to CI detection and make it consistent between
978 RubyGems and Bundler. Pull request
979 [#7205](https://github.com/rubygems/rubygems/pull/7205) by nevinera
980* Update generate licenses template to not freeze regexps. Pull request
981 [#7154](https://github.com/rubygems/rubygems/pull/7154) by
982 github-actions[bot]
983* Don't check `LIBRUBY_RELATIVE` in truffleruby to signal a bash prelude
984 in rubygems binstubs. Pull request
985 [#7156](https://github.com/rubygems/rubygems/pull/7156) by
986 deivid-rodriguez
987* Update SPDX list and warn on deprecated identifiers. Pull request
988 [#6926](https://github.com/rubygems/rubygems/pull/6926) by simi
989* Simplify extended `require` to potentially fix some deadlocks. Pull
990 request [#6827](https://github.com/rubygems/rubygems/pull/6827) by nobu
991* Small refactors for `Gem::Resolver`. Pull request
992 [#6766](https://github.com/rubygems/rubygems/pull/6766) by hsbt
993* Use double-quotes instead of single-quotes consistently in warnings.
994 Pull request [#6550](https://github.com/rubygems/rubygems/pull/6550) by
995 hsbt
996* Add debug message for `nil` version gemspec. Pull request
997 [#6436](https://github.com/rubygems/rubygems/pull/6436) by hsbt
998* Installs bundler 2.5.0 as a default gem.
1000## Bug fixes:
1002* Fix installing from source with same default bundler version already
1003 installed. Pull request
1004 [#7244](https://github.com/rubygems/rubygems/pull/7244) by
1005 deivid-rodriguez
1007## Documentation:
1009* Improve comment explaining the necessity of `write_default_spec` method.
1010 Pull request [#6563](https://github.com/rubygems/rubygems/pull/6563) by
1011 voxik
1013# 3.4.22 / 2023-11-09
1015## Enhancements:
1017* Update SPDX license list as of 2023-10-05. Pull request
1018 [#7040](https://github.com/rubygems/rubygems/pull/7040) by
1019 github-actions[bot]
1020* Remove unnecessary rescue. Pull request
1021 [#7109](https://github.com/rubygems/rubygems/pull/7109) by
1022 deivid-rodriguez
1023* Installs bundler 2.4.22 as a default gem.
1025## Bug fixes:
1027* Handle empty array at built-in YAML serializer. Pull request
1028 [#7099](https://github.com/rubygems/rubygems/pull/7099) by hsbt
1029* Ignore non-tar format `.gem` files during search. Pull request
1030 [#7095](https://github.com/rubygems/rubygems/pull/7095) by dearblue
1031* Allow explicitly uninstalling multiple versions of same gem. Pull
1032 request [#7063](https://github.com/rubygems/rubygems/pull/7063) by
1033 kstevens715
1035## Performance:
1037* Avoid regexp match on every call to `Gem::Platform.local`. Pull request
1038 [#7104](https://github.com/rubygems/rubygems/pull/7104) by segiddins
1040## Documentation:
1042* Get `Gem::Specification#extensions_dir` documented. Pull request
1043 [#6218](https://github.com/rubygems/rubygems/pull/6218) by
1044 deivid-rodriguez
1046# 3.4.21 / 2023-10-17
1048## Enhancements:
1050* Abort `setup.rb` if Ruby is too old. Pull request
1051 [#7011](https://github.com/rubygems/rubygems/pull/7011) by
1052 deivid-rodriguez
1053* Remove usage of Dir.chdir that only execute a subprocess. Pull request
1054 [#6930](https://github.com/rubygems/rubygems/pull/6930) by segiddins
1055* Freeze more strings in generated gemspecs. Pull request
1056 [#6974](https://github.com/rubygems/rubygems/pull/6974) by segiddins
1057* Use pure-ruby YAML parser for loading configuration at RubyGems. Pull
1058 request [#6615](https://github.com/rubygems/rubygems/pull/6615) by hsbt
1059* Installs bundler 2.4.21 as a default gem.
1061## Documentation:
1063* Update suggested variable for bindir. Pull request
1064 [#7028](https://github.com/rubygems/rubygems/pull/7028) by hsbt
1065* Fix invalid links in documentation. Pull request
1066 [#7008](https://github.com/rubygems/rubygems/pull/7008) by simi
1068# 3.4.20 / 2023-09-27
1070## Enhancements:
1072* Raise `Gem::Package::FormatError` when gem encounters corrupt EOF.
1073 Pull request [#6882](https://github.com/rubygems/rubygems/pull/6882)
1074 by martinemde
1075* Allow skipping empty license `gem build` warning by setting license to
1076 `nil`. Pull request
1077 [#6879](https://github.com/rubygems/rubygems/pull/6879) by jhong97
1078* Update SPDX license list as of 2023-06-18. Pull request
1079 [#6891](https://github.com/rubygems/rubygems/pull/6891) by
1080 github-actions[bot]
1081* Update SPDX license list as of 2023-04-28. Pull request
1082 [#6642](https://github.com/rubygems/rubygems/pull/6642) by segiddins
1083* Update SPDX license list as of 2023-01-26. Pull request
1084 [#6310](https://github.com/rubygems/rubygems/pull/6310) by segiddins
1085* Installs bundler 2.4.20 as a default gem.
1087## Bug fixes:
1089* Fixed false positive SymlinkError in symbolic link directory. Pull
1090 request [#6947](https://github.com/rubygems/rubygems/pull/6947) by
1091 negi0109
1092* Ensure that loading multiple gemspecs with legacy YAML class references
1093 does not warn. Pull request
1094 [#6889](https://github.com/rubygems/rubygems/pull/6889) by segiddins
1095* Fix NoMethodError when choosing a too big number from `gem uni` list.
1096 Pull request [#6901](https://github.com/rubygems/rubygems/pull/6901) by
1097 amatsuda
1099## Performance:
1101* Reduce allocations for stub specifications. Pull request
1102 [#6972](https://github.com/rubygems/rubygems/pull/6972) by segiddins
1104# 3.4.19 / 2023-08-17
1106## Enhancements:
1108* Installs bundler 2.4.19 as a default gem.
1110## Performance:
1112* Speedup building docs when updating rubygems. Pull request
1113 [#6864](https://github.com/rubygems/rubygems/pull/6864) by
1114 deivid-rodriguez
1116# 3.4.18 / 2023-08-02
1118## Enhancements:
1120* Add poller to fetch WebAuthn OTP. Pull request
1121 [#6774](https://github.com/rubygems/rubygems/pull/6774) by jenshenny
1122* Remove side effects when unmarshaling old `Gem::Specification`. Pull
1123 request [#6825](https://github.com/rubygems/rubygems/pull/6825) by nobu
1124* Ship rubygems executables in `exe` folder. Pull request
1125 [#6704](https://github.com/rubygems/rubygems/pull/6704) by hsbt
1126* Installs bundler 2.4.18 as a default gem.
1128# 3.4.17 / 2023-07-14
1130## Enhancements:
1132* Installs bundler 2.4.17 as a default gem.
1134## Performance:
1136* Avoid unnecessary work for private local gem installation. Pull request
1137 [#6810](https://github.com/rubygems/rubygems/pull/6810) by
1138 deivid-rodriguez
1140# 3.4.16 / 2023-07-10
1142## Enhancements:
1144* Installs bundler 2.4.16 as a default gem.
1146# 3.4.15 / 2023-06-29
1148## Enhancements:
1150* Installs bundler 2.4.15 as a default gem.
1152## Bug fixes:
1154* Autoload shellwords when it's needed. Pull request
1155 [#6734](https://github.com/rubygems/rubygems/pull/6734) by ioquatix
1157## Documentation:
1159* Update command to test local gem command changes. Pull request
1160 [#6761](https://github.com/rubygems/rubygems/pull/6761) by jenshenny
1162# 3.4.14 / 2023-06-12
1164## Enhancements:
1166* Load plugin immediately. Pull request
1167 [#6673](https://github.com/rubygems/rubygems/pull/6673) by kou
1168* Installs bundler 2.4.14 as a default gem.
1170## Documentation:
1172* Clarify what the `rubygems-update` gem is for, and link to source code
1173 and guides. Pull request
1174 [#6710](https://github.com/rubygems/rubygems/pull/6710) by davetron5000
1176# 3.4.13 / 2023-05-09
1178## Enhancements:
1180* Installs bundler 2.4.13 as a default gem.
1182# 3.4.12 / 2023-04-11
1184## Enhancements:
1186* [Experimental] Add WebAuthn Support to the CLI. Pull request
1187 [#6560](https://github.com/rubygems/rubygems/pull/6560) by jenshenny
1188* Installs bundler 2.4.12 as a default gem.
1190# 3.4.11 / 2023-04-10
1192## Enhancements:
1194* Installs bundler 2.4.11 as a default gem.
1197------------------------------------------------------------------------------
1199RubyGems installed the following executables:
1200 /home/travis/.rvm/rubies/ruby-3.2.2/bin/gem
1201 /home/travis/.rvm/rubies/ruby-3.2.2/bin/bundle
1202 /home/travis/.rvm/rubies/ruby-3.2.2/bin/bundler
1204RubyGems system software updated
before_install.2
12050.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
12060.02s$ sudo sed -i -e 's/^port = 5433/port = 5432/' /etc/postgresql/11/main/postgresql.conf
before_install.4
12072.45s$ sudo systemctl restart postgresql@11-main
install.bundler
12081.59s$ bundle install --jobs=3 --retry=3 --deployment
1209[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
1210Bundler 2.6.3 is running, but your lockfile was generated with 2.4.14. Installing Bundler 2.4.14 and restarting using that version.
1211Fetching gem metadata from https://rubygems.org/.
1212Fetching bundler 2.4.14
1213Installing bundler 2.4.14
1214[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
1215Using rake 13.0.6
1216Using concurrent-ruby 1.2.2
1217Using i18n 1.14.1
1218Using minitest 5.18.1
1219Using tzinfo 2.0.6
1220Using activesupport 7.0.6
1221Using builder 3.2.4
1222Using erubi 1.12.0
1223Using racc 1.7.1
1224Using nokogiri 1.15.2 (x86_64-linux)
1225Using rails-dom-testing 2.1.1
1226Using crass 1.0.6
1227Using loofah 2.21.3
1228Using rails-html-sanitizer 1.6.0
1229Using actionview 7.0.6
1230Using rack 2.2.7
1231Using rack-test 2.1.0
1232Using actionpack 7.0.6
1233Using nio4r 2.5.9
1234Using websocket-extensions 0.1.5
1235Using websocket-driver 0.7.5
1236Using actioncable 7.0.6
1237Using globalid 1.1.0
1238Using activejob 7.0.6
1239Using activemodel 7.0.6
1240Using activerecord 7.0.6
1241Using marcel 1.0.2
1242Using mini_mime 1.1.2
1243Using activestorage 7.0.6
1244Using date 3.3.3
1245Using timeout 0.4.0
1246Using net-protocol 0.2.1
1247Using net-imap 0.3.6
1248Using net-pop 0.1.2
1249Using net-smtp 0.3.3
1250Using mail 2.8.1
1251Using actionmailbox 7.0.6
1252Using actionmailer 7.0.6
1253Using actiontext 7.0.6
1254Using ansi 1.5.0
1255Using ast 2.4.2
1256Using aws-eventstream 1.2.0
1257Using aws-partitions 1.783.0
1258Using aws-sigv4 1.6.0
1259Using jmespath 1.6.2
1260Using aws-sdk-core 3.176.1
1261Using aws-sdk-kms 1.68.0
1262Using aws-sdk-s3 1.127.0
1263Using bundler 2.4.14
1264Using colored 1.2
1265Using diff-lcs 1.5.0
1266Using docile 1.4.0
1267Using json 2.6.3
1268Using language_server-protocol 3.17.0.3
1269Using method_source 1.0.0
1270Using parallel 1.23.0
1271Using parser 3.2.2.3
1272Using pg 1.5.3
1273Using thor 1.2.2
1274Using zeitwerk 2.6.8
1275Using railties 7.0.6
1276Using rails 7.0.6
1277Using rainbow 3.1.1
1278Using rake-notes 0.2.2
1279Using regexp_parser 2.8.1
1280Using rexml 3.2.5
1281Using routes 0.2.0
1282Using rspec-support 3.12.1
1283Using rspec-core 3.12.2
1284Using rspec-expectations 3.12.3
1285Using rspec-mocks 3.12.5
1286Using rspec 3.12.0
1287Using rubocop-ast 1.29.0
1288Using ruby-progressbar 1.13.0
1289Using unicode-display_width 2.4.2
1290Using rubocop 1.54.1
1291Using rubocop-capybara 2.18.0
1292Using rubocop-factory_bot 2.23.1
1293Using rubocop-performance 1.18.0
1294Using rubocop-rspec 2.22.0
1295Using simplecov-html 0.12.3
1296Using simplecov_json_formatter 0.1.4
1297Using simplecov 0.22.0
1298Using terminal-table 3.0.2
1299Using simplecov-console 0.9.1
1300Bundle complete! 12 Gemfile dependencies, 85 gems now installed.
1301Bundled gems are installed into `./vendor/bundle`
before_script.1
13030.01s$ psql --version
1304psql (PostgreSQL) 11.22 (Ubuntu 11.22-8.pgdg20.04+1)
before_script.2
13050.25s$ psql -c 'CREATE DATABASE travis_test;'
1306CREATE DATABASE
before_script.3
13071.22s$ curl -fs https://raw.githubusercontent.com/travis-ci/travis-migrations/master/db/main/structure.sql | psql -v ON_ERROR_STOP=1 travis_test
1308SET
1309SET
1310SET
1311SET
1312SET
1313 set_config
1314------------
1316(1 row)
1318SET
1319SET
1320SET
1321SET
1322CREATE EXTENSION
1323COMMENT
1324CREATE EXTENSION
1325COMMENT
1326CREATE TYPE
1327CREATE FUNCTION
1328CREATE FUNCTION
1329CREATE FUNCTION
1330CREATE FUNCTION
1331CREATE FUNCTION
1332CREATE FUNCTION
1333CREATE FUNCTION
1334CREATE FUNCTION
1335CREATE FUNCTION
1336CREATE FUNCTION
1337CREATE FUNCTION
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
1357SET
1358CREATE TABLE
1359CREATE SEQUENCE
1360ALTER SEQUENCE
1361CREATE TABLE
1362CREATE TABLE
1363CREATE SEQUENCE
1364ALTER SEQUENCE
1365CREATE TABLE
1366CREATE SEQUENCE
1367ALTER SEQUENCE
1368CREATE TABLE
1369CREATE SEQUENCE
1370ALTER SEQUENCE
1371CREATE TABLE
1372CREATE SEQUENCE
1373ALTER SEQUENCE
1374CREATE TABLE
1375CREATE SEQUENCE
1376ALTER SEQUENCE
1377CREATE TABLE
1378CREATE SEQUENCE
1379ALTER SEQUENCE
1380CREATE TABLE
1381CREATE SEQUENCE
1382ALTER SEQUENCE
1383CREATE SEQUENCE
1384CREATE TABLE
1385CREATE SEQUENCE
1386ALTER SEQUENCE
1387CREATE TABLE
1388CREATE SEQUENCE
1389ALTER SEQUENCE
1390CREATE TABLE
1391CREATE SEQUENCE
1392ALTER SEQUENCE
1393CREATE TABLE
1394CREATE SEQUENCE
1395ALTER SEQUENCE
1396CREATE TABLE
1397CREATE SEQUENCE
1398ALTER SEQUENCE
1399CREATE TABLE
1400CREATE SEQUENCE
1401ALTER SEQUENCE
1402CREATE TABLE
1403CREATE TABLE
1404CREATE TABLE
1405CREATE TABLE
1406CREATE TABLE
1407CREATE TABLE
1408CREATE TABLE
1409CREATE TABLE
1410CREATE TABLE
1411CREATE TABLE
1412CREATE TABLE
1413CREATE TABLE
1414CREATE TABLE
1415CREATE TABLE
1416CREATE TABLE
1417CREATE TABLE
1418CREATE SEQUENCE
1419ALTER SEQUENCE
1420CREATE TABLE
1421CREATE SEQUENCE
1422ALTER SEQUENCE
1423CREATE TABLE
1424CREATE TABLE
1425CREATE SEQUENCE
1426ALTER SEQUENCE
1427CREATE TABLE
1428CREATE SEQUENCE
1429ALTER SEQUENCE
1430CREATE TABLE
1431CREATE SEQUENCE
1432ALTER SEQUENCE
1433CREATE TABLE
1434CREATE SEQUENCE
1435ALTER SEQUENCE
1436CREATE TABLE
1437CREATE SEQUENCE
1438ALTER SEQUENCE
1439CREATE TABLE
1440CREATE SEQUENCE
1441ALTER SEQUENCE
1442CREATE TABLE
1443CREATE SEQUENCE
1444ALTER SEQUENCE
1445CREATE TABLE
1446CREATE SEQUENCE
1447ALTER SEQUENCE
1448CREATE TABLE
1449CREATE SEQUENCE
1450ALTER SEQUENCE
1451CREATE TABLE
1452CREATE SEQUENCE
1453ALTER SEQUENCE
1454CREATE TABLE
1455CREATE SEQUENCE
1456ALTER SEQUENCE
1457CREATE TABLE
1458CREATE SEQUENCE
1459ALTER SEQUENCE
1460CREATE TABLE
1461CREATE SEQUENCE
1462ALTER SEQUENCE
1463CREATE TABLE
1464CREATE SEQUENCE
1465ALTER SEQUENCE
1466CREATE TABLE
1467CREATE SEQUENCE
1468ALTER SEQUENCE
1469CREATE TABLE
1470CREATE TABLE
1471CREATE SEQUENCE
1472ALTER SEQUENCE
1473CREATE TABLE
1474CREATE SEQUENCE
1475ALTER SEQUENCE
1476CREATE TABLE
1477CREATE SEQUENCE
1478ALTER SEQUENCE
1479CREATE TABLE
1480CREATE SEQUENCE
1481ALTER SEQUENCE
1482CREATE TABLE
1483CREATE SEQUENCE
1484ALTER SEQUENCE
1485CREATE TABLE
1486CREATE SEQUENCE
1487ALTER SEQUENCE
1488CREATE TABLE
1489CREATE SEQUENCE
1490ALTER SEQUENCE
1491CREATE TABLE
1492CREATE SEQUENCE
1493ALTER SEQUENCE
1494CREATE TABLE
1495CREATE TABLE
1496CREATE SEQUENCE
1497ALTER SEQUENCE
1498CREATE TABLE
1499CREATE TABLE
1500CREATE SEQUENCE
1501ALTER SEQUENCE
1502CREATE TABLE
1503CREATE SEQUENCE
1504ALTER SEQUENCE
1505CREATE TABLE
1506CREATE SEQUENCE
1507ALTER SEQUENCE
1508CREATE TABLE
1509CREATE SEQUENCE
1510ALTER SEQUENCE
1511CREATE TABLE
1512CREATE SEQUENCE
1513ALTER SEQUENCE
1514CREATE TABLE
1515CREATE SEQUENCE
1516ALTER SEQUENCE
1517CREATE TABLE
1518CREATE SEQUENCE
1519ALTER SEQUENCE
1520CREATE TABLE
1521CREATE SEQUENCE
1522ALTER SEQUENCE
1523CREATE TABLE
1524CREATE SEQUENCE
1525ALTER SEQUENCE
1526CREATE TABLE
1527CREATE SEQUENCE
1528ALTER SEQUENCE
1529CREATE TABLE
1530CREATE SEQUENCE
1531ALTER SEQUENCE
1532CREATE TABLE
1533CREATE SEQUENCE
1534ALTER SEQUENCE
1535CREATE TABLE
1536CREATE SEQUENCE
1537ALTER SEQUENCE
1538CREATE TABLE
1539ALTER TABLE
1540ALTER TABLE
1541ALTER TABLE
1542ALTER TABLE
1543ALTER TABLE
1544ALTER TABLE
1545ALTER TABLE
1546ALTER TABLE
1547ALTER TABLE
1548ALTER TABLE
1549ALTER 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
1645CREATE INDEX
1646CREATE INDEX
1647CREATE INDEX
1648CREATE INDEX
1649CREATE INDEX
1650CREATE INDEX
1651CREATE INDEX
1652CREATE INDEX
1653CREATE INDEX
1654CREATE INDEX
1655CREATE INDEX
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 TRIGGER
1856CREATE TRIGGER
1857CREATE TRIGGER
1858CREATE TRIGGER
1859CREATE TRIGGER
1860CREATE TRIGGER
1861CREATE TRIGGER
1862CREATE TRIGGER
1863CREATE TRIGGER
1864CREATE TRIGGER
1865CREATE TRIGGER
1866CREATE TRIGGER
1867CREATE TRIGGER
1868CREATE TRIGGER
1869CREATE TRIGGER
1870CREATE TRIGGER
1871CREATE TRIGGER
1872ALTER TABLE
1873ALTER TABLE
1874ALTER TABLE
1875ALTER TABLE
1876ALTER TABLE
1877ALTER TABLE
1878ALTER TABLE
1879ALTER TABLE
1880ALTER TABLE
1881ALTER TABLE
1882ALTER TABLE
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
1905SET
1906INSERT 0 394
190739.43s$ bundle exec rspec spec
1909Repo counts
1910 before aggregation
1911 after aggregating per repo
1912 after aggregating all counts
1913 does not raise if repos are missing
1914 does not raise if builds are deleted before stages
1916set_updated_at trigger
1917Dropped database 'travis_test'
1918Created database 'travis_test'
1919== 201207261749 CreatePlans: migrating ========================================
1920-- create_table(:plans, {:id=>:integer})
1921 -> 0.0052s
1922== 201207261749 CreatePlans: migrated (0.0052s) ===============================
1924== 20101126174706 CreateRepositories: migrating ===============================
1925-- create_table(:repositories, {:id=>:integer})
1926 -> 0.0046s
1927== 20101126174706 CreateRepositories: migrated (0.0047s) ======================
1929== 20101126174715 CreateBuilds: migrating =====================================
1930-- create_table(:builds, {:id=>:integer})
1931 -> 0.0052s
1932== 20101126174715 CreateBuilds: migrated (0.0053s) ============================
1934== 20110109130532 DeviseCreateUsers: migrating ================================
1935-- create_table(:users, {:id=>:integer})
1936 -> 0.0044s
1937-- add_index(:users, :login, {:unique=>true})
1938 -> 0.0019s
1939== 20110109130532 DeviseCreateUsers: migrated (0.0064s) =======================
1941== 20110116155100 RepositoriesAddUsername: migrating ==========================
1942-- change_table(:repositories)
1943 -> 0.0007s
1944== 20110116155100 RepositoriesAddUsername: migrated (0.0008s) =================
1946== 20110130102621 CreateTokens: migrating =====================================
1947-- create_table(:tokens, {:id=>:integer})
1948 -> 0.0042s
1949== 20110130102621 CreateTokens: migrated (0.0042s) ============================
1951== 20110301071656 AddBuildParentIdAndConfiguration: migrating =================
1952-- change_table(:builds)
1953 -> 0.0011s
1954-- change_column(:builds, :number, :string)
1955 -> 0.0045s
1956-- add_index(:builds, :repository_id)
1957 -> 0.0020s
1958-- add_index(:builds, :parent_id)
1959 -> 0.0019s
1960== 20110301071656 AddBuildParentIdAndConfiguration: migrated (0.0097s) ========
1962== 20110316174721 RepositoriesDenormalizeLastBuildAttributes: migrating =======
1963-- change_table(:repositories)
1964 -> 0.0021s
1965== 20110316174721 RepositoriesDenormalizeLastBuildAttributes: migrated (0.0022s)
1967== 20110321075539 RepositoriesAddOwnerNameAndOwnerEmail: migrating ============
1968-- change_table(:repositories)
1969 -> 0.0016s
1970-- remove_column(:repositories, :username)
1971 -> 0.0004s
1972== 20110321075539 RepositoriesAddOwnerNameAndOwnerEmail: migrated (0.0021s) ===
1974== 20110411171936 CreateHistoriesTable: migrating =============================
1975-- create_table(:histories, {:id=>:integer})
1976 -> 0.0054s
1977-- add_index(:histories, [:item, :table, :month, :year])
1978 -> 0.0022s
1979== 20110411171936 CreateHistoriesTable: migrated (0.0077s) ====================
1981== 20110411171937 RenameHistoriesToRailsAdminHistories: migrating =============
1982-- remove_index(:histories, nil, {:name=>:index_histories_on_item_and_table_and_month_and_year})
1983 -> 0.0004s
1984-- rename_table(:histories, :rails_admin_histories)
1985 -> 0.0033s
1986-- add_index("rails_admin_histories", ["item", "table", "month", "year"], {:name=>"index_histories_on_item_and_table_and_month_and_year"})
1987 -> 0.0023s
1988== 20110411171937 RenameHistoriesToRailsAdminHistories: migrated (0.0074s) ====
1990== 20110411172518 AddAdminFlagToUser: migrating ===============================
1991-- change_table(:users)
1992 -> 0.0011s
1993== 20110411172518 AddAdminFlagToUser: migrated (0.0012s) ======================
1995== 20110413101057 BuildsAddRef: migrating =====================================
1996-- change_table(:builds)
1997 -> 0.0013s
1998== 20110413101057 BuildsAddRef: migrated (0.0013s) ============================
2000== 20110414131100 BuildsAddGithubPayload: migrating ===========================
2001-- change_table(:builds)
2002 -> 0.0007s
2003== 20110414131100 BuildsAddGithubPayload: migrated (0.0007s) ==================
2005== 20110503150504 AddGithubIdToUsersTable: migrating ==========================
2006-- add_column(:users, :github_id, :integer)
2007 -> 0.0006s
2008-- add_index(:users, :github_id)
2009 -> 0.0021s
2010== 20110503150504 AddGithubIdToUsersTable: migrated (0.0027s) =================
2012== 20110523012243 RepositoriesChangeOwnerEmailType: migrating =================
2013-- change_column(:repositories, :owner_email, :text)
2014 -> 0.0007s
2015== 20110523012243 RepositoriesChangeOwnerEmailType: migrated (0.0008s) ========
2017== 20110611203537 AddGithubOauthTokenToUser: migrating ========================
2018-- add_column(:users, :github_oauth_token, :string)
2019 -> 0.0007s
2020-- add_index(:users, :github_oauth_token)
2021 -> 0.0022s
2022== 20110611203537 AddGithubOauthTokenToUser: migrated (0.0030s) ===============
2024== 20110613210252 AddCompareUrlToBuild: migrating =============================
2025-- add_column(:builds, :compare_url, :string)
2026 -> 0.0006s
2027== 20110613210252 AddCompareUrlToBuild: migrated (0.0007s) ====================
2029== 20110615152003 BuildsRemoveJobId: migrating ================================
2030-- change_table(:builds)
2031 -> 0.0007s
2032== 20110615152003 BuildsRemoveJobId: migrated (0.0007s) =======================
2034== 20110616211744 BuildRemoveLastBuiltAt: migrating ===========================
2035-- change_table(:repositories)
2036 -> 0.0006s
2037== 20110616211744 BuildRemoveLastBuiltAt: migrated (0.0006s) ==================
2039== 20110617114728 AddMissingIndexes: migrating ================================
2040-- add_index(:repositories, :last_build_started_at)
2041 -> 0.0024s
2042-- add_index(:repositories, [:owner_name, :name])
2043 -> 0.0019s
2044-- add_index(:builds, [:repository_id, :parent_id, :started_at])
2045 -> 0.0020s
2046== 20110617114728 AddMissingIndexes: migrated (0.0064s) =======================
2048== 20110619100906 AddActiveToRepositories: migrating ==========================
2049-- add_column(:repositories, :is_active, :boolean)
2050 -> 0.0007s
2051== 20110619100906 AddActiveToRepositories: migrated (0.0007s) =================
2053== 20110729094426 StoreTokenInBuild: migrating ================================
2054-- add_column(:builds, :token, :string)
2055 -> 0.0006s
2056== 20110729094426 StoreTokenInBuild: migrated (0.0007s) =======================
2058== 20110801161819 CreateRequestsCommitsAndTasks: migrating ====================
2059-- change_table(:builds)
2060 -> 0.0015s
2061-- create_table(:commits, {:force=>true, :id=>:integer})
2062 -> 0.0051s
2063-- create_table(:requests, {:force=>true, :id=>:integer})
2064 -> 0.0051s
2065-- create_table(:tasks, {:force=>true, :id=>:integer})
2066 -> 0.0056s
2067-- add_index(:commits, :commit)
2068 -> 0.0021s
2069-- add_index(:builds, :commit)
2070 -> 0.0023s
2071-- add_index(:requests, :commit)
2072 -> 0.0019s
2073-- add_index(:tasks, :commit)
2074 -> 0.0020s
2075-- execute("UPDATE requests SET commit_id = (SELECT commits.id FROM commits WHERE commits.commit = requests.commit LIMIT 1)")
2076 -> 0.0006s
2077-- execute("UPDATE tasks SET commit_id = (SELECT commits.id FROM commits WHERE commits.commit = tasks.commit LIMIT 1)")
2078 -> 0.0004s
2079-- execute("DELETE FROM builds WHERE parent_id IS NOT NULL")
2080 -> 0.0004s
2081-- execute("UPDATE builds SET request_id = (SELECT requests.id FROM requests WHERE requests.commit = builds.commit LIMIT 1)")
2082 -> 0.0004s
2083-- execute("UPDATE builds SET commit_id = (SELECT commits.id FROM commits WHERE commits.commit = builds.commit LIMIT 1)")
2084 -> 0.0004s
2085-- execute("CREATE SEQUENCE shared_builds_tasks_seq CACHE 30")
2086 -> 0.0005s
2087-- execute("ALTER TABLE builds ALTER COLUMN id TYPE BIGINT")
2088 -> 0.0109s
2089-- execute("ALTER TABLE builds ALTER COLUMN id SET DEFAULT nextval('shared_builds_tasks_seq')")
2090 -> 0.0006s
2091-- execute("ALTER TABLE tasks ALTER COLUMN id TYPE BIGINT")
2092 -> 0.0067s
2093-- execute("ALTER TABLE tasks ALTER COLUMN id SET DEFAULT nextval('shared_builds_tasks_seq')")
2094 -> 0.0005s
2095-- select_value("SELECT max(id) FROM commits")
2096 -> 0.0006s
2097-- execute("SELECT setval('commits_id_seq', 1)")
2098 -> 0.0004s
2099-- select_value("SELECT max(id) FROM requests")
2100 -> 0.0005s
2101-- execute("SELECT setval('requests_id_seq', 1)")
2102 -> 0.0003s
2103-- select_value("SELECT max(id) FROM tasks")
2104 -> 0.0005s
2105-- execute("SELECT setval('tasks_id_seq', 1)")
2106 -> 0.0003s
2107-- remove_column(:builds, :parent_id)
2108 -> 0.0005s
2109-- remove_column(:builds, :commit)
2110 -> 0.0004s
2111-- remove_column(:requests, :commit)
2112 -> 0.0004s
2113-- remove_column(:tasks, :commit)
2114 -> 0.0004s
2115== 20110801161819 CreateRequestsCommitsAndTasks: migrated (0.0521s) ===========
2117== 20110805030147 RepositoryRenameIsActiveToActive: migrating =================
2118-- rename_column(:repositories, :is_active, :active)
2119 -> 0.0125s
2120== 20110805030147 RepositoryRenameIsActiveToActive: migrated (0.0126s) ========
2122== 20110819232908 TasksAddTags: migrating =====================================
2123-- add_column(:tasks, :tags, :text)
2124 -> 0.0014s
2125== 20110819232908 TasksAddTags: migrated (0.0014s) ============================
2127== 20110911204538 CacheOneNumberForSharedBuildsTasksSequence: migrating =======
2128-- execute("ALTER SEQUENCE shared_builds_tasks_seq CACHE 1 NO MAXVALUE NO CYCLE")
2129 -> 0.0009s
2130== 20110911204538 CacheOneNumberForSharedBuildsTasksSequence: migrated (0.0009s)
2132== 20111107134436 RenameTasksToJobs: migrating ================================
2133-- rename_table(:tasks, :jobs)
2134 -> 0.0040s
2135-- execute("UPDATE jobs SET type = 'Job::Test' WHERE type = 'Task::Test'")
2136 -> 0.0005s
2137-- execute("UPDATE jobs SET type = 'Job::Configure' WHERE type = 'Task::Configure'")
2138 -> 0.0003s
2139== 20111107134436 RenameTasksToJobs: migrated (0.0050s) =======================
2141== 20111107134437 CreateArtifacts: migrating ==================================
2142-- create_table(:artifacts, {:id=>:integer})
2143 -> 0.0066s
2144-- execute("UPDATE artifacts SET job_id = id")
2145 -> 0.0005s
2146-- execute("select setval('artifacts_id_seq', (select max(id) + 1 from artifacts));")
2147 -> 0.0005s
2148-- add_index(:artifacts, [:type, :job_id])
2149 -> 0.0025s
2150== 20111107134437 CreateArtifacts: migrated (0.0104s) =========================
2152== 20111107134438 CreateWorkers: migrating ====================================
2153-- create_table(:workers, {:id=>:integer})
2154 -> 0.0062s
2155-- add_index(:workers, [:name, :host])
2156 -> 0.0024s
2157== 20111107134438 CreateWorkers: migrated (0.0087s) ===========================
2159== 20111107134439 JobsAddRetries: migrating ===================================
2160-- change_table(:jobs)
2161 -> 0.0015s
2162== 20111107134439 JobsAddRetries: migrated (0.0016s) ==========================
2164== 20111107134440 RemoveRailsAdmin: migrating =================================
2165-- drop_table(:rails_admin_histories)
2166 -> 0.0014s
2167== 20111107134440 RemoveRailsAdmin: migrated (0.0014s) ========================
2169== 20111128235043 AddIndexesToJobs: migrating =================================
2170-- add_index(:jobs, [:queue, :state])
2171 -> 0.0028s
2172== 20111128235043 AddIndexesToJobs: migrated (0.0029s) ========================
2174== 20111129014329 AddRepositoryIdIndexToJobs: migrating =======================
2175-- add_index(:jobs, :repository_id)
2176 -> 0.0026s
2177== 20111129014329 AddRepositoryIdIndexToJobs: migrated (0.0027s) ==============
2179== 20111129022625 AddOwnerAndTypeIndexToJobs: migrating =======================
2180-- add_index(:jobs, [:type, :owner_id, :owner_type])
2181 -> 0.0025s
2182== 20111129022625 AddOwnerAndTypeIndexToJobs: migrated (0.0026s) ==============
2184== 20111201113500 WorkersAddPayloadAndLastError: migrating ====================
2185-- change_table(:workers)
2186 -> 0.0012s
2187== 20111201113500 WorkersAddPayloadAndLastError: migrated (0.0013s) ===========
2189== 20111203002341 RepositoriesAddDescriptionAndLastLanguage: migrating ========
2190-- change_table(:repositories)
2191 -> 0.0012s
2192-- change_table(:builds)
2193 -> 0.0007s
2194== 20111203002341 RepositoriesAddDescriptionAndLastLanguage: migrated (0.0020s)
2196== 20111203221720 BuildsAddArchivedAt: migrating ==============================
2197-- change_table(:builds)
2198 -> 0.0007s
2199== 20111203221720 BuildsAddArchivedAt: migrated (0.0008s) =====================
2201== 20111207093700 MimicProductionDb: migrating ================================
2202-- column_exists?(:users, :oauth2_uid, :integer)
2203 -> 0.0031s
2204-- column_exists?(:users, :oauth2_token, :string)
2205 -> 0.0020s
2206-- column_exists?(:repositories, :user_id, :integer)
2207 -> 0.0025s
2208== 20111207093700 MimicProductionDb: migrated (0.0076s) =======================
2210== 20111212103859 BuildsAddDuration: migrating ================================
2211-- change_table(:builds)
2212 -> 0.0010s
2213== 20111212103859 BuildsAddDuration: migrated (0.0011s) =======================
2215== 20111212112411 RepositoriesAddLastBuildDuration: migrating =================
2216-- change_table(:repositories)
2217 -> 0.0025s
2218== 20111212112411 RepositoriesAddLastBuildDuration: migrated (0.0025s) ========
2220== 20111214173922 CreateSslKeys: migrating ====================================
2221-- create_table(:ssl_keys, {:id=>:integer})
2222 -> 0.0053s
2223-- add_index("ssl_keys", ["repository_id"], {:name=>"index_ssl_key_on_repository_id"})
2224 -> 0.0019s
2225== 20111214173922 CreateSslKeys: migrated (0.0072s) ===========================
2227== 20120114125404 AddAllowFailureToJobs: migrating ============================
2228-- add_column(:jobs, :allow_failure, :boolean, {:default=>false})
2229 -> 0.0008s
2230== 20120114125404 AddAllowFailureToJobs: migrated (0.0009s) ===================
2232== 20120216133223 AddPullRequestFieldsToRequest: migrating ====================
2233-- add_column(:requests, :event_type, :string)
2234 -> 0.0008s
2235-- add_column(:requests, :comments_url, :string)
2236 -> 0.0004s
2237-- add_column(:requests, :base_commit, :string)
2238 -> 0.0005s
2239-- add_column(:requests, :head_commit, :string)
2240 -> 0.0004s
2241== 20120216133223 AddPullRequestFieldsToRequest: migrated (0.0022s) ===========
2243== 20120222082522 AddGravatarIdToUsers: migrating =============================
2244-- add_column(:users, :gravatar_id, :string)
2245 -> 0.0005s
2246== 20120222082522 AddGravatarIdToUsers: migrated (0.0005s) ====================
2248== 20120301131209 OrganizationsCreate: migrating ==============================
2249-- create_table(:organizations, {:id=>:integer})
2250 -> 0.0054s
2251== 20120301131209 OrganizationsCreate: migrated (0.0054s) =====================
2253== 20120304000502 JobsRenameOwnerToSource: migrating ==========================
2254-- change_table(:jobs)
2255 -> 0.0071s
2256== 20120304000502 JobsRenameOwnerToSource: migrated (0.0072s) =================
2258== 20120304000503 RepositoriesAddOwner: migrating =============================
2259-- change_table(:repositories)
2260 -> 0.0014s
2261== 20120304000503 RepositoriesAddOwner: migrated (0.0014s) ====================
2263== 20120304000504 BuildsAddOwner: migrating ===================================
2264-- change_table(:builds)
2265 -> 0.0012s
2266== 20120304000504 BuildsAddOwner: migrated (0.0013s) ==========================
2268== 20120304000505 JobsAddOwner: migrating =====================================
2269-- change_table(:jobs)
2270 -> 0.0012s
2271== 20120304000505 JobsAddOwner: migrated (0.0012s) ============================
2273== 20120304000506 RequestsAddOwner: migrating =================================
2274-- change_table(:requests)
2275 -> 0.0013s
2276== 20120304000506 RequestsAddOwner: migrated (0.0013s) ========================
2278== 20120311234933 AddLocaleToUser: migrating ==================================
2279-- add_column(:users, :locale, :string)
2280 -> 0.0007s
2281== 20120311234933 AddLocaleToUser: migrated (0.0008s) =========================
2283== 20120316123726 CreateMemberships: migrating ================================
2284-- create_table(:memberships, {:id=>:integer})
2285 -> 0.0039s
2286== 20120316123726 CreateMemberships: migrated (0.0039s) =======================
2288== 20120319170001 RepositoriesAddPrivate: migrating ===========================
2289-- change_table(:repositories)
2290 -> 0.0012s
2291== 20120319170001 RepositoriesAddPrivate: migrated (0.0013s) ==================
2293== 20120324104051 CreateUrls: migrating =======================================
2294-- create_table(:urls, {:id=>:integer})
2295 -> 0.0065s
2296== 20120324104051 CreateUrls: migrated (0.0065s) ==============================
2298== 20120505165100 CopyStatusToResult: migrating ===============================
2299-- add_column(:builds, :result, :integer)
2300 -> 0.0008s
2301-- add_column(:jobs, :result, :integer)
2302 -> 0.0005s
2303-- add_column(:repositories, :last_build_result, :integer)
2304 -> 0.0005s
2305Executing: UPDATE builds SET result = status;
2306Executing: UPDATE jobs SET result = status;
2307Executing: UPDATE repositories SET last_build_result = last_build_status;
2308== 20120505165100 CopyStatusToResult: migrated (0.0035s) ======================
2310== 20120511171900 RequestsAddIndexOnHeadCommit: migrating =====================
2311-- add_index(:requests, :head_commit)
2312 -> 0.0029s
2313== 20120511171900 RequestsAddIndexOnHeadCommit: migrated (0.0029s) ============
2315== 20120521174400 CreatePermissions: migrating ================================
2316-- create_table(:permissions, {:id=>:integer})
2317 -> 0.0039s
2318-- add_index(:permissions, :user_id)
2319 -> 0.0023s
2320-- add_index(:permissions, :repository_id)
2321 -> 0.0021s
2322== 20120521174400 CreatePermissions: migrated (0.0085s) =======================
2324== 20120527235800 BuildsAddPreviousResult: migrating ==========================
2325-- change_table(:builds)
2326 -> 0.0009s
2327== 20120527235800 BuildsAddPreviousResult: migrated (0.0010s) =================
2329== 20120702111126 CreateSubscriptions: migrating ==============================
2330-- create_table(:subscriptions, {:id=>:integer})
2331 -> 0.0071s
2332== 20120702111126 CreateSubscriptions: migrated (0.0072s) =====================
2334== 20120703114226 AddBillingEmailCreditCardDataToSubscriptions: migrating =====
2335-- change_table(:subscriptions)
2336 -> 0.0022s
2337== 20120703114226 AddBillingEmailCreditCardDataToSubscriptions: migrated (0.0022s)
2339== 20120713140816 AddSyncInfoToUser: migrating ================================
2340-- add_column(:users, :in_sync, :boolean)
2341 -> 0.0007s
2342-- add_column(:users, :synced_at, :timestamp)
2343 -> 0.0004s
2344== 20120713140816 AddSyncInfoToUser: migrated (0.0012s) =======================
2346== 20120713153215 RenameInSyncToIsSyncing: migrating ==========================
2347-- rename_column(:users, :in_sync, :is_syncing)
2348 -> 0.0033s
2349== 20120713153215 RenameInSyncToIsSyncing: migrated (0.0033s) =================
2351== 20120725005300 AddQueueToWorkers: migrating ================================
2352-- add_column(:workers, :queue, :string)
2353 -> 0.0007s
2354== 20120725005300 AddQueueToWorkers: migrated (0.0008s) =======================
2356== 20120727151900 AddJobsIndexOnStateOwnerTypeOwnerId: migrating ==============
2357-- add_index(:jobs, ["state", "owner_id", "owner_type"], {:name=>"index_jobs_on_state_owner_type_owner_id"})
2358 -> 0.0028s
2359== 20120727151900 AddJobsIndexOnStateOwnerTypeOwnerId: migrated (0.0029s) =====
2361== 20120731005301 AddQueuedAtToJobs: migrating ================================
2362-- add_column(:jobs, :queued_at, :timestamp, {:precision=>nil})
2363 -> 0.0007s
2364== 20120731005301 AddQueuedAtToJobs: migrated (0.0008s) =======================
2366== 20120731074000 AddAmountToPlans: migrating =================================
2367-- change_table(:plans)
2368 -> 0.0008s
2369== 20120731074000 AddAmountToPlans: migrated (0.0008s) ========================
2371== 20120802001001 AddPushAndPullToPermissions: migrating ======================
2372-- add_column(:permissions, :push, :boolean, {:default=>false})
2373 -> 0.0040s
2374-- add_column(:permissions, :pull, :boolean, {:default=>false})
2375 -> 0.0006s
2376-- change_column_default(:permissions, :admin, false)
2377 -> 0.0015s
2378== 20120802001001 AddPushAndPullToPermissions: migrated (0.0062s) =============
2380== 20120803164000 CreateInvoices: migrating ===================================
2381-- create_table(:invoices, {:id=>:integer})
2382 -> 0.0063s
2383== 20120803164000 CreateInvoices: migrated (0.0063s) ==========================
2385== 20120803182300 AddInvoiceIdToInvoices: migrating ===========================
2386-- change_table(:invoices)
2387 -> 0.0008s
2388== 20120803182300 AddInvoiceIdToInvoices: migrated (0.0009s) ==================
2390== 20120804122700 AddStripeInvoiceIdToInvoices: migrating =====================
2391-- change_table(:invoices)
2392 -> 0.0008s
2393-- add_index(:invoices, :stripe_id)
2394 -> 0.0023s
2395== 20120804122700 AddStripeInvoiceIdToInvoices: migrated (0.0031s) ============
2397== 20120806120400 AddPlanToSubscriptions: migrating ===========================
2398-- change_table(:subscriptions)
2399 -> 0.0009s
2400== 20120806120400 AddPlanToSubscriptions: migrated (0.0009s) ==================
2402== 20120820164000 RenamePlanOnSubscriptions: migrating ========================
2403-- change_table(:subscriptions)
2404 -> 0.0017s
2405== 20120820164000 RenamePlanOnSubscriptions: migrated (0.0017s) ===============
2407== 20120905093300 CreateStripeEvents: migrating ===============================
2408-- create_table(:stripe_events, {:id=>:integer})
2409 -> 0.0065s
2410-- add_index(:stripe_events, :event_type)
2411 -> 0.0025s
2412-- add_index(:stripe_events, :date)
2413 -> 0.0025s
2414== 20120905093300 CreateStripeEvents: migrated (0.0116s) ======================
2416== 20120905171300 AddEventIdToStripeEvents: migrating =========================
2417-- change_table(:stripe_events)
2418 -> 0.0009s
2419-- add_index(:stripe_events, :event_id)
2420 -> 0.0025s
2421== 20120905171300 AddEventIdToStripeEvents: migrated (0.0035s) ================
2423== 20120911160000 AddBuildsIndexOnRepositoryIdAndState: migrating =============
2424-- remove_index("builds", nil, {:column=>"repository_id", :name=>"index_builds_on_repository_id"})
2425 -> 0.0022s
2426-- add_index("builds", ["repository_id", "state"])
2427 -> 0.0026s
2428== 20120911160000 AddBuildsIndexOnRepositoryIdAndState: migrated (0.0062s) ====
2430== 20120911230000 ArtifactsAddAggregatedAt: migrating =========================
2431-- add_column(:artifacts, :aggregated_at, :timestamp, {:precision=>nil})
2432 -> 0.0008s
2433== 20120911230000 ArtifactsAddAggregatedAt: migrated (0.0008s) ================
2435== 20120911230001 AddArtifactParts: migrating =================================
2436-- create_table(:artifact_parts, {:id=>:integer})
2437 -> 0.0065s
2438-- add_index(:artifact_parts, [:artifact_id, :number])
2439 -> 0.0024s
2440== 20120911230001 AddArtifactParts: migrated (0.0090s) ========================
2442== 20120913143800 AddSubscriptionsCoupon: migrating ===========================
2443-- change_table(:subscriptions)
2444 -> 0.0009s
2445== 20120913143800 AddSubscriptionsCoupon: migrated (0.0009s) ==================
2447== 20120915012000 BuildsAddIndexOnFinishedAt: migrating =======================
2448-- add_index("builds", "finished_at")
2449 -> 0.0026s
2450== 20120915012000 BuildsAddIndexOnFinishedAt: migrated (0.0027s) ==============
2452== 20120915012001 CommitsAddIndexOnBranch: migrating ==========================
2453-- add_index("commits", "branch")
2454 -> 0.0026s
2455== 20120915012001 CommitsAddIndexOnBranch: migrated (0.0026s) =================
2457== 20120915150000 JobsAddIndexOnCreatedAt: migrating ==========================
2458-- add_index("jobs", "created_at")
2459 -> 0.0026s
2460== 20120915150000 JobsAddIndexOnCreatedAt: migrated (0.0026s) =================
2462== 20121015002500 CreateEvents: migrating =====================================
2463-- create_table(:events, {:id=>:integer})
2464 -> 0.0062s
2465== 20121015002500 CreateEvents: migrated (0.0063s) ============================
2467== 20121015002501 RequestsAddResultAndMessage: migrating ======================
2468-- add_column(:requests, :result, :string)
2469 -> 0.0008s
2470-- add_column(:requests, :message, :string)
2471 -> 0.0005s
2472== 20121015002501 RequestsAddResultAndMessage: migrated (0.0013s) =============
2474== 20121017040100 CreateBroadcasts: migrating =================================
2475-- create_table(:broadcasts, {:id=>:integer})
2476 -> 0.0062s
2477== 20121017040100 CreateBroadcasts: migrated (0.0062s) ========================
2479== 20121017040200 EventsChangeDataToText: migrating ===========================
2480-- change_column(:events, :data, :text)
2481 -> 0.0008s
2482== 20121017040200 EventsChangeDataToText: migrated (0.0008s) ==================
2484== 20121018201301 AddEventTypeToBuilds: migrating =============================
2485-- add_column(:builds, :event_type, :string)
2486 -> 0.0007s
2487== 20121018201301 AddEventTypeToBuilds: migrated (0.0007s) ====================
2489== 20121018203728 UpdateEventTypeOnBuilds: migrating ==========================
2490-- execute(" UPDATE builds\n SET event_type = requests.event_type\n FROM requests\n WHERE builds.request_id = requests.id\n")
2491 -> 0.0012s
2492== 20121018203728 UpdateEventTypeOnBuilds: migrated (0.0012s) =================
2494== 20121018210156 AddIndexOnRepositoryIdAndEventTypeToBuilds: migrating =======
2495-- add_index(:builds, [:repository_id, :event_type])
2496 -> 0.0026s
2497== 20121018210156 AddIndexOnRepositoryIdAndEventTypeToBuilds: migrated (0.0027s)
2499== 20121125122700 RepositoriesAddLastBuildState: migrating ====================
2500-- add_column(:repositories, :last_build_state, :string)
2501 -> 0.0008s
2502== 20121125122700 RepositoriesAddLastBuildState: migrated (0.0008s) ===========
2504== 20121125122701 BuildsAddPreviousState: migrating ===========================
2505-- add_column(:builds, :previous_state, :string)
2506 -> 0.0007s
2507== 20121125122701 BuildsAddPreviousState: migrated (0.0008s) ==================
2509== 20121222125200 ArtifactPartsAddFinal: migrating ============================
2510-- add_column(:artifact_parts, :final, :boolean)
2511 -> 0.0008s
2512-- add_column(:artifact_parts, :created_at, :timestamp)
2513 -> 0.0006s
2514== 20121222125200 ArtifactPartsAddFinal: migrated (0.0015s) ===================
2516== 20121222125300 ArtifactPartsChangeContentToText: migrating =================
2517-- change_column(:artifact_parts, :content, :text)
2518 -> 0.0007s
2519== 20121222125300 ArtifactPartsChangeContentToText: migrated (0.0008s) ========
2521== 20121222140200 ArtifactPartsAddIndexOnArtifactId: migrating ================
2522-- add_index(:artifact_parts, :artifact_id)
2523 -> 0.0027s
2524== 20121222140200 ArtifactPartsAddIndexOnArtifactId: migrated (0.0027s) =======
2526== 20121223162300 ArtifactPartsRemoveIndexOnArtifactId: migrating =============
2527-- remove_index(:artifact_parts, :artifact_id, {:name=>"index_artifact_parts_on_artifact_id"})
2528 -> 0.0027s
2529== 20121223162300 ArtifactPartsRemoveIndexOnArtifactId: migrated (0.0042s) ====
2531== 20130107165057 AddGithubScopesToUser: migrating ============================
2532-- add_column(:users, :github_scopes, :text)
2533 -> 0.0008s
2534== 20130107165057 AddGithubScopesToUser: migrated (0.0008s) ===================
2536== 20130115125836 AddIndexOnLastSeenAtToWorkers: migrating ====================
2537-- add_index(:workers, :last_seen_at)
2538 -> 0.0026s
2539== 20130115125836 AddIndexOnLastSeenAtToWorkers: migrated (0.0026s) ===========
2541== 20130115145728 CacheFullNameInWorkers: migrating ===========================
2542-- add_column(:workers, :full_name, :string)
2543 -> 0.0008s
2544-- add_index(:workers, :full_name)
2545 -> 0.0023s
2546== 20130115145728 CacheFullNameInWorkers: migrated (0.0031s) ==================
2548== 20130125002600 ArtifactsAddArchivedAt: migrating ===========================
2549-- add_column(:artifacts, :archived_at, :timestamp, {:precision=>nil})
2550 -> 0.0008s
2551-- add_index(:artifacts, :archived_at)
2552 -> 0.0024s
2553== 20130125002600 ArtifactsAddArchivedAt: migrated (0.0032s) ==================
2555== 20130125171100 ArtifactsAddArchivingAndVerified: migrating =================
2556-- add_column(:artifacts, :archiving, :boolean)
2557 -> 0.0008s
2558-- add_column(:artifacts, :archive_verified, :boolean)
2559 -> 0.0005s
2560-- add_index(:artifacts, :archiving)
2561 -> 0.0024s
2562-- add_index(:artifacts, :archive_verified)
2563 -> 0.0021s
2564== 20130125171100 ArtifactsAddArchivingAndVerified: migrated (0.0059s) ========
2566== 20130129142703 CreateEmails: migrating =====================================
2567-- create_table(:emails, {:id=>:integer})
2568 -> 0.0059s
2569-- add_index(:emails, :user_id)
2570 -> 0.0021s
2571-- add_index(:emails, :email)
2572 -> 0.0020s
2573== 20130129142703 CreateEmails: migrated (0.0102s) ============================
2575== 20130208135800 RenameArtifacts: migrating ==================================
2576-- rename_table(:artifacts, :artifacts_backup)
2577 -> 0.0073s
2578-- rename_table(:artifact_parts, :artifact_parts_backup)
2579 -> 0.0044s
2580== 20130208135800 RenameArtifacts: migrated (0.0118s) =========================
2582== 20130208135801 DropArtifacts: migrating ====================================
2583-- drop_table(:artifacts_backup)
2584 -> 0.0017s
2585-- drop_table(:artifact_parts_backup)
2586 -> 0.0012s
2587== 20130208135801 DropArtifacts: migrated (0.0029s) ===========================
2589== 20130306154311 CreatePgcryptoExtension: migrating ==========================
2590-- execute("create extension if not exists pgcrypto")
2591 -> 0.0060s
2592== 20130306154311 CreatePgcryptoExtension: migrated (0.0060s) =================
2594== 20130311211101 AddPullRequestTitleToBuilds: migrating ======================
2595-- add_column(:builds, :pull_request_title, :text)
2596 -> 0.0008s
2597== 20130311211101 AddPullRequestTitleToBuilds: migrated (0.0009s) =============
2599== 20130327100801 AddPullRequestNumberToBuilds: migrating =====================
2600-- add_column(:builds, :pull_request_number, :integer)
2601 -> 0.0007s
2602== 20130327100801 AddPullRequestNumberToBuilds: migrated (0.0008s) ============
2604== 20130418101437 AddIndexToBuildsRequestId: migrating ========================
2605-- execute("CREATE INDEX CONCURRENTLY index_builds_on_request_id ON builds(request_id)")
2606 -> 0.0043s
2607== 20130418101437 AddIndexToBuildsRequestId: migrated (0.0044s) ===============
2609== 20130418103306 AddIndexToJobsOnOwnerIdOwnerTypeAndState: migrating =========
2610-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_owner_id_and_owner_type_and_state ON jobs(owner_id, owner_type, state)")
2611 -> 0.0042s
2612== 20130418103306 AddIndexToJobsOnOwnerIdOwnerTypeAndState: migrated (0.0042s)
2614== 20130505023259 AddMoreIndexesToBuilds: migrating ===========================
2615-- 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")
2616 -> 0.0041s
2617== 20130505023259 AddMoreIndexesToBuilds: migrated (0.0042s) ==================
2619== 20130521115725 AddIndexOnBuildState: migrating =============================
2620-- execute(" CREATE INDEX CONCURRENTLY index_builds_on_state\n ON builds(state);\n")
2621 -> 0.0043s
2622== 20130521115725 AddIndexOnBuildState: migrated (0.0043s) ====================
2624== 20130521133050 UpdateFinishedJobs: migrating ===============================
2625-- execute("UPDATE jobs SET state = 'passed' WHERE state = 'finished' AND result = 0 AND type = 'Job::Test'")
2626 -> 0.0009s
2627-- execute("UPDATE jobs SET state = 'failed' WHERE state = 'finished' AND result = 1 AND type = 'Job::Test'")
2628 -> 0.0004s
2629-- execute("UPDATE jobs SET state = 'errored' WHERE state = 'finished' AND result IS NULL AND type = 'Job::Test'")
2630 -> 0.0004s
2631-- execute("SELECT COUNT(*) FROM jobs WHERE state = 'finished' AND type = 'Job::Test'")
2632 -> 0.0005s
2633== 20130521133050 UpdateFinishedJobs: migrated (0.0023s) ======================
2635== 20130521134224 UpdateFinishedBuilds: migrating =============================
2636-- execute("UPDATE builds SET state = 'passed' WHERE state = 'finished' AND result = 0")
2637 -> 0.0008s
2638-- execute("UPDATE builds SET state = 'failed' WHERE state = 'finished' AND result = 1")
2639 -> 0.0004s
2640-- execute("UPDATE builds SET state = 'errored' WHERE state = 'finished' AND result IS NULL")
2641 -> 0.0004s
2642-- execute("SELECT COUNT(*) FROM builds WHERE state = 'finished'")
2643 -> 0.0004s
2644== 20130521134224 UpdateFinishedBuilds: migrated (0.0021s) ====================
2646== 20130521134800 RemoveUnusedBuildColumns: migrating =========================
2647-- remove_column(:builds, :result)
2648 -> 0.0007s
2649-- remove_column(:builds, :status)
2650 -> 0.0004s
2651-- remove_column(:builds, :previous_result)
2652 -> 0.0004s
2653-- remove_column(:builds, :agent)
2654 -> 0.0004s
2655-- remove_column(:builds, :language)
2656 -> 0.0004s
2657-- remove_column(:builds, :archived_at)
2658 -> 0.0004s
2659== 20130521134800 RemoveUnusedBuildColumns: migrated (0.0028s) ================
2661== 20130521141357 RemoveUnusedJobColumns: migrating ===========================
2662-- remove_column(:jobs, :status)
2663 -> 0.0007s
2664-- remove_column(:jobs, :job_id)
2665 -> 0.0004s
2666-- remove_column(:jobs, :retries)
2667 -> 0.0005s
2668== 20130521141357 RemoveUnusedJobColumns: migrated (0.0016s) ==================
2670== 20130618084205 AddCoupons: migrating =======================================
2671-- create_table(:coupons, {:id=>:integer})
2672 -> 0.0066s
2673== 20130618084205 AddCoupons: migrated (0.0067s) ==============================
2675== 20130629122945 AddGithubIdToUsers: migrating ===============================
2676-- add_column(:repositories, :github_id, :integer)
2677 -> 0.0008s
2678-- add_index(:repositories, :github_id)
2679 -> 0.0024s
2680== 20130629122945 AddGithubIdToUsers: migrated (0.0033s) ======================
2682== 20130629133531 AddDefaultBranchToRepositories: migrating ===================
2683-- add_column(:repositories, :default_branch, :string)
2684 -> 0.0008s
2685== 20130629133531 AddDefaultBranchToRepositories: migrated (0.0008s) ==========
2687== 20130629174449 AddGithubLanguageToRepositories: migrating ==================
2688-- add_column(:repositories, :github_language, :string)
2689 -> 0.0008s
2690== 20130629174449 AddGithubLanguageToRepositories: migrated (0.0008s) =========
2692== 20130701175200 AddContactIdToSubscriptions: migrating ======================
2693-- change_table(:subscriptions)
2694 -> 0.0008s
2695== 20130701175200 AddContactIdToSubscriptions: migrated (0.0009s) =============
2697== 20130702123456 RemoveUnusedRepositoryColumns: migrating ====================
2698-- remove_column(:repositories, :last_duration)
2699 -> 0.0007s
2700-- remove_column(:repositories, :last_build_status)
2701 -> 0.0004s
2702-- remove_column(:repositories, :last_build_result)
2703 -> 0.0004s
2704-- remove_column(:repositories, :last_build_language)
2705 -> 0.0004s
2706== 20130702123456 RemoveUnusedRepositoryColumns: migrated (0.0020s) ===========
2708== 20130702144325 AddUniqueIndexOnUsersGithubIdAndRemoveUniqueIndexOnUsersLogin: migrating
2709-- execute("DROP INDEX index_users_on_login")
2710 -> 0.0012s
2711-- execute("CREATE INDEX CONCURRENTLY index_users_on_login ON users(login)")
2712 -> 0.0041s
2713-- execute("DROP INDEX index_users_on_github_id")
2714 -> 0.0011s
2715-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_users_on_github_id ON users(github_id)")
2716 -> 0.0036s
2717== 20130702144325 AddUniqueIndexOnUsersGithubIdAndRemoveUniqueIndexOnUsersLogin: migrated (0.0101s)
2719== 20130705123456 AddExtraColumnsToOrganizations: migrating ===================
2720-- add_column(:organizations, :avatar_url, :string)
2721 -> 0.0008s
2722-- add_column(:organizations, :location, :string)
2723 -> 0.0005s
2724-- add_column(:organizations, :email, :string)
2725 -> 0.0004s
2726-- add_column(:organizations, :company, :string)
2727 -> 0.0005s
2728-- add_column(:organizations, :homepage, :string)
2729 -> 0.0004s
2730== 20130705123456 AddExtraColumnsToOrganizations: migrated (0.0027s) ==========
2732== 20130707164854 AddIndexOnGithubIdToOrganizations: migrating ================
2733-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_organizations_on_github_id ON organizations(github_id)")
2734 -> 0.0036s
2735== 20130707164854 AddIndexOnGithubIdToOrganizations: migrated (0.0036s) =======
2737== 20130709185200 CreateAnnotations: migrating ================================
2738-- create_table(:annotations, {:id=>:integer})
2739 -> 0.0060s
2740== 20130709185200 CreateAnnotations: migrated (0.0060s) =======================
2742== 20130709233500 CreateAnnotationProviders: migrating ========================
2743-- create_table(:annotation_providers, {:id=>:integer})
2744 -> 0.0124s
2745== 20130709233500 CreateAnnotationProviders: migrated (0.0124s) ===============
2747== 20130710000745 AddAnnotationProviderIdToAnnotations: migrating =============
2748-- add_column(:annotations, :annotation_provider_id, :integer, {:null=>false})
2749 -> 0.0035s
2750== 20130710000745 AddAnnotationProviderIdToAnnotations: migrated (0.0036s) ====
2752== 20130726101124 AddCanceledAtToJobsAndBuilds: migrating =====================
2753-- add_column(:builds, :canceled_at, :timestamp, {:precision=>nil})
2754 -> 0.0005s
2755-- add_column(:jobs, :canceled_at, :timestamp, {:precision=>nil})
2756 -> 0.0004s
2757== 20130726101124 AddCanceledAtToJobsAndBuilds: migrated (0.0010s) ============
2759== 20130901183019 AddIndexOnRepositoryGithubId: migrating =====================
2760-- execute("DROP INDEX index_repositories_on_github_id")
2761 -> 0.0012s
2762-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_github_id ON repositories(github_id)")
2763 -> 0.0039s
2764== 20130901183019 AddIndexOnRepositoryGithubId: migrated (0.0052s) ============
2766== 20130909203321 AddCachedMatrixIdsToBuilds: migrating =======================
2767-- execute("ALTER TABLE builds ADD COLUMN cached_matrix_ids integer[]")
2768 -> 0.0008s
2769== 20130909203321 AddCachedMatrixIdsToBuilds: migrated (0.0008s) ==============
2771== 20130910184823 CreateIndexOnBuildsIdDescAndRepositoryIdAndEventType: migrating
2772-- execute("CREATE INDEX CONCURRENTLY index_builds_on_id_repository_id_and_event_type_desc ON builds (id DESC, repository_id, event_type);")
2773 -> 0.0044s
2774== 20130910184823 CreateIndexOnBuildsIdDescAndRepositoryIdAndEventType: migrated (0.0046s)
2776== 20130916101056 AddUniqueIndexOnRepositoryGithubId: migrating ===============
2777-- execute("DROP INDEX index_repositories_on_github_id")
2778 -> 0.0012s
2779-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_repositories_on_github_id ON repositories(github_id)")
2780 -> 0.0039s
2781== 20130916101056 AddUniqueIndexOnRepositoryGithubId: migrated (0.0052s) ======
2783== 20130920135744 AddSettingsToRepositories: migrating ========================
2784-- add_column(:repositories, :settings, :json)
2785 -> 0.0027s
2786== 20130920135744 AddSettingsToRepositories: migrated (0.0030s) ===============
2788== 20131104101056 RemoveWorkersTableAndIndexes: migrating =====================
2789-- drop_table(:workers)
2790 -> 0.0030s
2791== 20131104101056 RemoveWorkersTableAndIndexes: migrated (0.0031s) ============
2793== 20131109101056 RemoveEventsTable: migrating ================================
2794-- drop_table(:events)
2795 -> 0.0024s
2796== 20131109101056 RemoveEventsTable: migrated (0.0025s) =======================
2798== 20140120225125 RemoveAnnotationImageInfo: migrating ========================
2799-- remove_column(:annotations, :image_url)
2800 -> 0.0018s
2801-- remove_column(:annotations, :image_alt)
2802 -> 0.0010s
2803== 20140120225125 RemoveAnnotationImageInfo: migrated (0.0032s) ===============
2805== 20140121003026 AddStatusToAnnotations: migrating ===========================
2806-- add_column(:annotations, :status, :string)
2807 -> 0.0020s
2808== 20140121003026 AddStatusToAnnotations: migrated (0.0023s) ==================
2810== 20140204220926 AddIndicesToRequests: migrating =============================
2811-- execute("CREATE INDEX CONCURRENTLY index_requests_on_repository_id ON requests(repository_id)")
2812 -> 0.0044s
2813-- execute("CREATE INDEX CONCURRENTLY index_requests_on_commit_id ON requests(commit_id)")
2814 -> 0.0037s
2815== 20140204220926 AddIndicesToRequests: migrated (0.0082s) ====================
2817== 20140210003014 AddIndicesToMemberships: migrating ==========================
2818-- execute("CREATE INDEX CONCURRENTLY index_memberships_on_user_id ON memberships(user_id)")
2819 -> 0.0036s
2820== 20140210003014 AddIndicesToMemberships: migrated (0.0037s) =================
2822== 20140210012509 RemoveUnusedIndices: migrating ==============================
2823-- execute("DROP INDEX CONCURRENTLY index_commits_on_commit")
2824 -> 0.0023s
2825-- execute("DROP INDEX CONCURRENTLY index_builds_on_state")
2826 -> 0.0020s
2827-- execute("DROP INDEX CONCURRENTLY index_commits_on_branch")
2828 -> 0.0021s
2829-- execute("DROP INDEX CONCURRENTLY index_users_on_github_oauth_token")
2830 -> 0.0021s
2831-- execute("DROP INDEX CONCURRENTLY index_builds_on_finished_at")
2832 -> 0.0021s
2833-- execute("DROP INDEX CONCURRENTLY index_jobs_on_queue_and_state")
2834 -> 0.0021s
2835-- execute("DROP INDEX CONCURRENTLY index_jobs_on_created_at")
2836 -> 0.0020s
2837== 20140210012509 RemoveUnusedIndices: migrated (0.0147s) =====================
2839== 20140612131826 AddRemovedInfoToLogs: migrating =============================
2840== 20140612131826 AddRemovedInfoToLogs: migrated (0.0006s) ====================
2842== 20140827121945 AddEducationFieldToUser: migrating ==========================
2843-- add_column(:users, :education, :boolean)
2844 -> 0.0005s
2845== 20140827121945 AddEducationFieldToUser: migrated (0.0005s) =================
2847== 20150121135400 JobsAddReceivedAt: migrating ================================
2848-- add_column(:jobs, :received_at, :timestamp, {:precision=>nil})
2849 -> 0.0005s
2850== 20150121135400 JobsAddReceivedAt: migrated (0.0006s) =======================
2852== 20150121135401 BuildsAddReceivedAt: migrating ==============================
2853-- add_column(:builds, :received_at, :timestamp, {:precision=>nil})
2854 -> 0.0005s
2855== 20150121135401 BuildsAddReceivedAt: migrated (0.0005s) =====================
2857== 20150204144312 AddIndexOnRepositoryIdToCommits: migrating ==================
2858-- execute("DROP INDEX IF EXISTS index_commits_on_repository_id")
2859 -> 0.0003s
2860-- execute("CREATE INDEX CONCURRENTLY index_commits_on_repository_id ON commits(repository_id)")
2861 -> 0.0038s
2862== 20150204144312 AddIndexOnRepositoryIdToCommits: migrated (0.0041s) =========
2864== 20150210170900 IndexRequestsOnCreatedAt: migrating =========================
2865-- execute("DROP INDEX IF EXISTS index_requests_on_created_at")
2866 -> 0.0002s
2867-- execute("CREATE INDEX CONCURRENTLY index_requests_on_created_at ON requests(created_at)")
2868 -> 0.0036s
2869== 20150210170900 IndexRequestsOnCreatedAt: migrated (0.0039s) ================
2871== 20150223125700 CreateBranches: migrating ===================================
2872-- create_table(:branches, {:id=>:integer})
2873 -> 0.0186s
2874-- add_index(:branches, [:repository_id, :name], {:unique=>true})
2875 -> 0.0024s
2876== 20150223125700 CreateBranches: migrated (0.0212s) ==========================
2878== 20150311020321 AddNextBuildNumberToRepository: migrating ===================
2879-- add_column(:repositories, :next_build_number, :integer)
2880 -> 0.0014s
2881== 20150311020321 AddNextBuildNumberToRepository: migrated (0.0015s) ==========
2883== 20150316020321 AddActiveIndexToRepository: migrating =======================
2884-- execute("DROP INDEX IF EXISTS index_repositories_on_active")
2885 -> 0.0009s
2886-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_active ON repositories(active)")
2887 -> 0.0043s
2888== 20150316020321 AddActiveIndexToRepository: migrated (0.0056s) ==============
2890== 20150316080321 AddOwnerTypeAndOwnerIdIndexesToBuilds: migrating ============
2891-- execute("DROP INDEX IF EXISTS index_builds_on_owner_type")
2892 -> 0.0007s
2893-- execute("DROP INDEX IF EXISTS index_builds_on_owner_id")
2894 -> 0.0010s
2895-- execute("CREATE INDEX CONCURRENTLY index_builds_on_owner_type ON builds(owner_type)")
2896 -> 0.0041s
2897-- execute("CREATE INDEX CONCURRENTLY index_builds_on_owner_id ON builds(owner_id)")
2898 -> 0.0038s
2899== 20150316080321 AddOwnerTypeAndOwnerIdIndexesToBuilds: migrated (0.0100s) ===
2901== 20150316100321 AddOwnerTypeAndOwnerIdIndexesToRepositories: migrating ======
2902-- execute("DROP INDEX IF EXISTS index_repositories_on_owner_type")
2903 -> 0.0003s
2904-- execute("DROP INDEX IF EXISTS index_repositories_on_owner_id")
2905 -> 0.0003s
2906-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_owner_type ON repositories(owner_type)")
2907 -> 0.0039s
2908-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_owner_id ON repositories(owner_id)")
2909 -> 0.0038s
2910== 20150316100321 AddOwnerTypeAndOwnerIdIndexesToRepositories: migrated (0.0084s)
2912== 20150317004600 AddSlugIndexToRepositories: migrating =======================
2913-- execute("CREATE EXTENSION IF NOT EXISTS pg_trgm")
2914 -> 0.0165s
2915-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_slug ON repositories USING gin((owner_name || '/' || name) gin_trgm_ops)")
2916 -> 0.0040s
2917== 20150317004600 AddSlugIndexToRepositories: migrated (0.0207s) ==============
2919== 20150317020321 AddTokenIndexToTokens: migrating ============================
2920-- execute("DROP INDEX IF EXISTS index_tokens_on_token")
2921 -> 0.0003s
2922-- execute("CREATE INDEX CONCURRENTLY index_tokens_on_token ON tokens(token)")
2923 -> 0.0037s
2924== 20150317020321 AddTokenIndexToTokens: migrated (0.0042s) ===================
2926== 20150317080321 AddLoginIndexToOrganizations: migrating =====================
2927-- execute("DROP INDEX IF EXISTS index_organizations_on_login")
2928 -> 0.0002s
2929-- execute("CREATE INDEX CONCURRENTLY index_organizations_on_login ON organizations(login)")
2930 -> 0.0035s
2931== 20150317080321 AddLoginIndexToOrganizations: migrated (0.0038s) ============
2933== 20150414001337 AddLowerCaseIndices: migrating ==============================
2934-- execute("DROP INDEX IF EXISTS index_organizations_on_lower_login")
2935 -> 0.0002s
2936-- execute("CREATE INDEX CONCURRENTLY index_organizations_on_lower_login ON organizations USING btree(lower(login))")
2937 -> 0.0033s
2938-- execute("DROP INDEX IF EXISTS index_users_on_lower_login")
2939 -> 0.0002s
2940-- execute("CREATE INDEX CONCURRENTLY index_users_on_lower_login ON users USING btree(lower(login))")
2941 -> 0.0034s
2942-- execute("DROP INDEX IF EXISTS index_repositories_on_lower_name")
2943 -> 0.0002s
2944-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_lower_name ON repositories USING btree(lower(name))")
2945 -> 0.0039s
2946-- execute("DROP INDEX IF EXISTS index_repositories_on_lower_owner_name")
2947 -> 0.0002s
2948-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_lower_owner_name ON repositories USING btree(lower(owner_name))")
2949 -> 0.0031s
2950== 20150414001337 AddLowerCaseIndices: migrated (0.0148s) =====================
2952== 20150528101600 RepositoriesAddIndexOwnerName: migrating ====================
2953-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_owner_name ON repositories(owner_name)")
2954 -> 0.0035s
2955== 20150528101600 RepositoriesAddIndexOwnerName: migrated (0.0035s) ===========
2957== 20150528101601 RepositoriesAddIndexName: migrating =========================
2958-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_name ON repositories(name)")
2959 -> 0.0032s
2960== 20150528101601 RepositoriesAddIndexName: migrated (0.0032s) ================
2962== 20150528101602 RepositoriesDropIndexOwnerNameName: migrating ===============
2963-- execute("DROP INDEX CONCURRENTLY index_repositories_on_owner_name_and_name")
2964 -> 0.0017s
2965== 20150528101602 RepositoriesDropIndexOwnerNameName: migrated (0.0018s) ======
2967== 20150528101603 BuildsAddIndexEventType: migrating ==========================
2968-- execute("CREATE INDEX CONCURRENTLY index_builds_on_event_type ON builds (event_type)")
2969 -> 0.0033s
2970== 20150528101603 BuildsAddIndexEventType: migrated (0.0033s) =================
2972== 20150528101604 BuildsAddIndexRepositoryId: migrating =======================
2973-- execute("CREATE INDEX CONCURRENTLY index_builds_on_repository_id ON builds (repository_id)")
2974 -> 0.0032s
2975== 20150528101604 BuildsAddIndexRepositoryId: migrated (0.0032s) ==============
2977== 20150528101605 BuildsAddIndexState: migrating ==============================
2978-- execute("CREATE INDEX CONCURRENTLY index_builds_on_state ON builds (state)")
2979 -> 0.0032s
2980== 20150528101605 BuildsAddIndexState: migrated (0.0033s) =====================
2982== 20150528101607 BuildsAddIndexBranch: migrating =============================
2983-- execute("CREATE INDEX CONCURRENTLY index_builds_on_branch ON builds (branch)")
2984 -> 0.0032s
2985== 20150528101607 BuildsAddIndexBranch: migrated (0.0032s) ====================
2987== 20150528101608 BuildsDropIndexRepositoryIdAndState: migrating ==============
2988-- execute("DROP INDEX CONCURRENTLY index_builds_on_repository_id_and_state")
2989 -> 0.0020s
2990== 20150528101608 BuildsDropIndexRepositoryIdAndState: migrated (0.0020s) =====
2992== 20150528101609 BuildsDropIndexRepositoryIdAndEventType: migrating ==========
2993-- execute("DROP INDEX CONCURRENTLY index_builds_on_repository_id_and_event_type")
2994 -> 0.0017s
2995== 20150528101609 BuildsDropIndexRepositoryIdAndEventType: migrated (0.0018s) =
2997== 20150528101610 BuildsDropIndexIdRepositoryIdAndEventTypeDesc: migrating ====
2998-- execute("DROP INDEX CONCURRENTLY index_builds_on_id_repository_id_and_event_type_desc")
2999 -> 0.0018s
3000== 20150528101610 BuildsDropIndexIdRepositoryIdAndEventTypeDesc: migrated (0.0018s)
3002== 20150528101611 BuildsDropIndexRepositoryIdAndEventTypeAndStateAndBranch: migrating
3003-- execute("DROP INDEX CONCURRENTLY index_builds_on_repository_id_and_event_type_and_state_and_bran")
3004 -> 0.0020s
3005== 20150528101611 BuildsDropIndexRepositoryIdAndEventTypeAndStateAndBranch: migrated (0.0020s)
3007== 20150609175200 AddCancelationColumnsToSubscriptions: migrating =============
3008-- change_table(:subscriptions)
3009 -> 0.0011s
3010== 20150609175200 AddCancelationColumnsToSubscriptions: migrated (0.0011s) ====
3012== 20150610143500 JobsAddIndexOwnerId: migrating ==============================
3013-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_owner_id ON jobs (owner_id)")
3014 -> 0.0035s
3015== 20150610143500 JobsAddIndexOwnerId: migrated (0.0035s) =====================
3017== 20150610143501 JobsAddIndexOwnerType: migrating ============================
3018-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_owner_type ON jobs (owner_type)")
3019 -> 0.0033s
3020== 20150610143501 JobsAddIndexOwnerType: migrated (0.0033s) ===================
3022== 20150610143502 JobsAddIndexSourceId: migrating =============================
3023-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_source_id ON jobs (source_id)")
3024 -> 0.0037s
3025== 20150610143502 JobsAddIndexSourceId: migrated (0.0037s) ====================
3027== 20150610143503 JobsAddIndexSourceType: migrating ===========================
3028-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_source_type ON jobs (source_type)")
3029 -> 0.0035s
3030== 20150610143503 JobsAddIndexSourceType: migrated (0.0035s) ==================
3032== 20150610143504 JobsAddIndexType: migrating =================================
3033-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_type ON jobs (type)")
3034 -> 0.0041s
3035== 20150610143504 JobsAddIndexType: migrated (0.0042s) ========================
3037== 20150610143505 JobsDropIndexOwnerIdAndOwnerTypeAndState: migrating =========
3038-- execute("DROP INDEX CONCURRENTLY index_jobs_on_owner_id_and_owner_type_and_state")
3039 -> 0.0026s
3040== 20150610143505 JobsDropIndexOwnerIdAndOwnerTypeAndState: migrated (0.0027s)
3042== 20150610143506 JobsDropIndexStateOwnerTypeOwnerId: migrating ===============
3043-- execute("DROP INDEX CONCURRENTLY index_jobs_on_state_owner_type_owner_id")
3044 -> 0.0026s
3045== 20150610143506 JobsDropIndexStateOwnerTypeOwnerId: migrated (0.0027s) ======
3047== 20150610143507 JobsDropIndexTypeAndSourceIdAndSourceType: migrating ========
3048-- 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"})
3049 -> 0.0070s
3050== 20150610143507 JobsDropIndexTypeAndSourceIdAndSourceType: migrated (0.0071s)
3052== 20150610143508 JobsAddIndexState: migrating ================================
3053-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_state ON jobs (state)")
3054 -> 0.0078s
3055== 20150610143508 JobsAddIndexState: migrated (0.0079s) =======================
3057== 20150610143509 JobsAddIndexQueue: migrating ================================
3058-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_queue ON jobs (queue)")
3059 -> 0.0041s
3060== 20150610143509 JobsAddIndexQueue: migrated (0.0043s) =======================
3062== 20150610143510 TokensAddIndexUserId: migrating =============================
3063-- execute("CREATE INDEX CONCURRENTLY index_tokens_on_user_id ON tokens (user_id)")
3064 -> 0.0042s
3065== 20150610143510 TokensAddIndexUserId: migrated (0.0043s) ====================
3067== 20150615103059 AddStatusToSubscriptions: migrating =========================
3068-- add_column(:subscriptions, :status, :string)
3069 -> 0.0025s
3070== 20150615103059 AddStatusToSubscriptions: migrated (0.0027s) ================
3072== 20150629231300 ReposAddInvalidatedAt: migrating ============================
3073-- add_column(:repositories, :invalidated_at, :timestamp, {:precision=>nil})
3074 -> 0.0024s
3075== 20150629231300 ReposAddInvalidatedAt: migrated (0.0025s) ===================
3077== 20150923131400 BroadcastsAddCategory: migrating ============================
3078-- add_column(:broadcasts, :category, :string)
3079 -> 0.0018s
3080== 20150923131400 BroadcastsAddCategory: migrated (0.0020s) ===================
3082== 20151112153500 CreateStars: migrating ======================================
3083-- create_table(:stars, {:id=>:integer})
3084 -> 0.0062s
3085-- add_index(:stars, :user_id)
3086 -> 0.0024s
3087== 20151112153500 CreateStars: migrated (0.0088s) =============================
3089== 20151113111400 StarsAddIndexUserIdAndRepositoryId: migrating ===============
3090-- execute("CREATE UNIQUE INDEX index_stars_on_user_id_and_repository_id ON stars (user_id, repository_id)")
3091 -> 0.0027s
3092== 20151113111400 StarsAddIndexUserIdAndRepositoryId: migrated (0.0028s) ======
3094== 20151127153500 UsersAddIndexGithubOauthToken: migrating ====================
3095-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_users_on_github_oauth_token ON users (github_oauth_token)")
3096 -> 0.0040s
3097== 20151127153500 UsersAddIndexGithubOauthToken: migrated (0.0042s) ===========
3099== 20151127154200 AnnotationsAddIndexJobId: migrating =========================
3100-- execute("CREATE INDEX CONCURRENTLY index_annotations_on_job_id ON annotations (job_id)")
3101 -> 0.0034s
3102== 20151127154200 AnnotationsAddIndexJobId: migrated (0.0035s) ================
3104== 20151127154600 BroadcastsAddIndexRecipientIdAndRecipientType: migrating ====
3105-- execute("CREATE INDEX CONCURRENTLY index_broadcasts_on_recipient_id_and_recipient_type ON broadcasts (recipient_id, recipient_type)")
3106 -> 0.0034s
3107== 20151127154600 BroadcastsAddIndexRecipientIdAndRecipientType: migrated (0.0035s)
3109== 20151202122200 UsersAddFirstLoggedInAt: migrating ==========================
3110-- add_column(:users, :first_logged_in_at, :timestamp, {:precision=>nil})
3111 -> 0.0006s
3112== 20151202122200 UsersAddFirstLoggedInAt: migrated (0.0007s) =================
3114== 20160107120927 AddCronTable: migrating =====================================
3115-- create_table(:crons, {:id=>:integer})
3116 -> 0.0051s
3117== 20160107120927 AddCronTable: migrated (0.0052s) ============================
3119== 20160303165750 AddDebugOptionsToJobs: migrating ============================
3120-- add_column(:jobs, :debug_options, :text)
3121 -> 0.0006s
3122== 20160303165750 AddDebugOptionsToJobs: migrated (0.0007s) ===================
3124== 20160412113020 BuildsDropIndexOwnerType: migrating =========================
3125-- execute("DROP INDEX CONCURRENTLY index_builds_on_owner_type")
3126 -> 0.0019s
3127== 20160412113020 BuildsDropIndexOwnerType: migrated (0.0019s) ================
3129== 20160412113070 RepositoriesDropIndexLastBuildStartedAt: migrating ==========
3130-- execute("DROP INDEX CONCURRENTLY index_repositories_on_last_build_started_at")
3131 -> 0.0019s
3132== 20160412113070 RepositoriesDropIndexLastBuildStartedAt: migrated (0.0019s) =
3134== 20160412121405 JobsDropIndexType: migrating ================================
3135-- execute("DROP INDEX CONCURRENTLY index_jobs_on_type")
3136 -> 0.0018s
3137== 20160412121405 JobsDropIndexType: migrated (0.0018s) =======================
3139== 20160412123900 JobsDropIndexSourceType: migrating ==========================
3140-- execute("DROP INDEX CONCURRENTLY index_jobs_on_source_type")
3141 -> 0.0018s
3142== 20160412123900 JobsDropIndexSourceType: migrated (0.0018s) =================
3144== 20160414214442 JobsAddIndexQueuedAt: migrating =============================
3145-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_queued_at ON jobs (queued_at)")
3146 -> 0.0036s
3147== 20160414214442 JobsAddIndexQueuedAt: migrated (0.0036s) ====================
3149== 20160422104300 BuildsAddIndexNumber: migrating =============================
3150-- execute("CREATE INDEX CONCURRENTLY index_builds_on_number ON builds (number)")
3151 -> 0.0034s
3152== 20160422104300 BuildsAddIndexNumber: migrated (0.0034s) ====================
3154== 20160422121400 BuildsAddIndexRepositoryIdAndNumberAndEventType: migrating ==
3155-- execute("CREATE INDEX CONCURRENTLY index_builds_on_repository_id_and_number_and_event_type ON builds (repository_id, number, event_type)")
3156 -> 0.0037s
3157== 20160422121400 BuildsAddIndexRepositoryIdAndNumberAndEventType: migrated (0.0037s)
3159== 20160510142700 JobsAddIndexCreatedAt: migrating ============================
3160-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_created_at ON jobs (created_at)")
3161 -> 0.0034s
3162== 20160510142700 JobsAddIndexCreatedAt: migrated (0.0035s) ===================
3164== 20160510144200 BuildsAddPrivate: migrating =================================
3165-- change_table(:builds)
3166 -> 0.0007s
3167== 20160510144200 BuildsAddPrivate: migrated (0.0007s) ========================
3169== 20160510150300 JobsAddPrivate: migrating ===================================
3170-- change_table(:jobs)
3171 -> 0.0009s
3172== 20160510150300 JobsAddPrivate: migrated (0.0009s) ==========================
3174== 20160510150400 RequestsAddPrivate: migrating ===============================
3175-- change_table(:requests)
3176 -> 0.0006s
3177== 20160510150400 RequestsAddPrivate: migrated (0.0006s) ======================
3179== 20160513074300 AddCurrentBuildIdToRepositories: migrating ==================
3180-- add_column(:repositories, :current_build_id, :bigint)
3181 -> 0.0006s
3182-- execute("ALTER TABLE repositories ADD CONSTRAINT fk_repositories_current_build_id FOREIGN KEY (current_build_id) REFERENCES builds (id);")
3183 -> 0.0015s
3184== 20160513074300 AddCurrentBuildIdToRepositories: migrated (0.0022s) =========
3186== 20160609163600 PermissionsAddIndexUserIdAndRepositoryId: migrating =========
3187-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_permissions_on_user_id_and_repository_id ON permissions (user_id, repository_id)")
3188 -> 0.0035s
3189== 20160609163600 PermissionsAddIndexUserIdAndRepositoryId: migrated (0.0035s)
3191== 20160623133900 CreatePreviousJobStates: migrating ==========================
3192-- create_table(:previous_job_states, {:id=>:integer})
3193 -> 0.0049s
3194-- add_column(:jobs, :previous_job_state_id, :bigint)
3195 -> 0.0004s
3196== 20160623133900 CreatePreviousJobStates: migrated (0.0054s) =================
3198== 20160623133901 AddPreviousStatesTriggers: migrating ========================
3199-- 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")
3200 -> 0.0069s
3201== 20160623133901 AddPreviousStatesTriggers: migrated (0.0069s) ===============
3203== 20160712125400 RevertPreviousJobStates: migrating ==========================
3204-- 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")
3205 -> 0.0015s
3206-- remove_column(:jobs, :previous_job_state_id)
3207 -> 0.0011s
3208-- drop_table(:previous_job_states)
3209 -> 0.0013s
3210== 20160712125400 RevertPreviousJobStates: migrated (0.0044s) =================
3212== 20160819103700 AddAvatarUrlToUsers: migrating ==============================
3213-- add_column(:users, :avatar_url, :string)
3214 -> 0.0035s
3215== 20160819103700 AddAvatarUrlToUsers: migrated (0.0038s) =====================
3217== 20160920220400 AddRoleToMemberships: migrating =============================
3218-- add_column(:memberships, :role, :string)
3219 -> 0.0040s
3220== 20160920220400 AddRoleToMemberships: migrated (0.0042s) ====================
3222== 20161028154600 RemoveTypeIndices: migrating ================================
3223-- execute("DROP INDEX CONCURRENTLY IF EXISTS index_requests_on_event_type")
3224 -> 0.0008s
3225-- execute("DROP INDEX CONCURRENTLY IF EXISTS index_jobs_on_owner_type")
3226 -> 0.0026s
3227== 20161028154600 RemoveTypeIndices: migrated (0.0037s) =======================
3229== 20161101000000 AddNextRunLastRunToCrons: migrating =========================
3230-- column_exists?(:crons, :next_run)
3231 -> 0.0040s
3232-- add_column(:crons, :next_run, :timestamp, {:precision=>nil})
3233 -> 0.0016s
3234-- column_exists?(:crons, :last_run)
3235 -> 0.0036s
3236-- add_column(:crons, :last_run, :timestamp, {:precision=>nil})
3237 -> 0.0014s
3238== 20161101000000 AddNextRunLastRunToCrons: migrated (0.0113s) ================
3240== 20161101000001 AddDontRunIfRecentBuildExists: migrating ====================
3241-- column_exists?(:crons, :dont_run_if_recent_build_exists)
3242 -> 0.0032s
3243-- add_column(:crons, :dont_run_if_recent_build_exists, :boolean, {:default=>false})
3244 -> 0.0021s
3245== 20161101000001 AddDontRunIfRecentBuildExists: migrated (0.0061s) ===========
3247== 20161201112200 CreateBetaFeatures: migrating ===============================
3248-- create_table(:beta_features, {:id=>:integer})
3249 -> 0.0088s
3250== 20161201112200 CreateBetaFeatures: migrated (0.0089s) ======================
3252== 20161201112600 CreateUserBetaFeatures: migrating ===========================
3253-- create_table(:user_beta_features, {:id=>:integer})
3254 -> 0.0032s
3255-- add_index(:user_beta_features, [:user_id, :beta_feature_id])
3256 -> 0.0019s
3257== 20161201112600 CreateUserBetaFeatures: migrated (0.0052s) ==================
3259== 20161202000000 RemoveDisableByBuildFromCrons: migrating ====================
3260-- remove_column(:crons, :disable_by_build)
3261 -> 0.0006s
3262== 20161202000000 RemoveDisableByBuildFromCrons: migrated (0.0006s) ===========
3264== 20161206155800 AddBillingAdminOnlyToOrganizations: migrating ===============
3265-- add_column(:organizations, :billing_admin_only, :boolean)
3266 -> 0.0005s
3267== 20161206155800 AddBillingAdminOnlyToOrganizations: migrated (0.0005s) ======
3269== 20161221171300 BuildsAddIndexRepositoryIdAndNumber: migrating ==============
3270-- execute("CREATE INDEX CONCURRENTLY index_builds_on_repository_id_and_number ON builds(repository_id, (number::integer))")
3271 -> 0.0039s
3272== 20161221171300 BuildsAddIndexRepositoryIdAndNumber: migrated (0.0040s) =====
3274== 20170211000000 JobsAddStageNumber: migrating ===============================
3275-- add_column(:jobs, :stage_number, :string)
3276 -> 0.0005s
3277== 20170211000000 JobsAddStageNumber: migrated (0.0006s) ======================
3279== 20170211000001 JobsAddStageId: migrating ===================================
3280-- change_table(:jobs)
3281 -> 0.0006s
3282== 20170211000001 JobsAddStageId: migrated (0.0006s) ==========================
3284== 20170211000002 StagesCreate: migrating =====================================
3285-- create_table(:stages, {:id=>:integer})
3286 -> 0.0046s
3287== 20170211000002 StagesCreate: migrated (0.0046s) ============================
3289== 20170211000003 StagesAddStateAndTimestamps: migrating ======================
3290-- change_table(:stages)
3291 -> 0.0014s
3292== 20170211000003 StagesAddStateAndTimestamps: migrated (0.0014s) =============
3294== 20170213124000 AddConstraintForOwnerIdToSubscriptions: migrating ===========
3295-- execute("CREATE UNIQUE INDEX subscriptions_owner ON subscriptions (owner_id, owner_type) WHERE (status = 'subscribed');")
3296 -> 0.0023s
3297== 20170213124000 AddConstraintForOwnerIdToSubscriptions: migrated (0.0023s) ==
3299== 20170316000000 QueueableJobsCreate: migrating ==============================
3300-- create_table(:queueable_jobs, {:id=>:integer})
3301 -> 0.0029s
3302== 20170316000000 QueueableJobsCreate: migrated (0.0030s) =====================
3304== 20170316000001 QueueableJobsIndexJobId: migrating ==========================
3305-- add_index(:queueable_jobs, :job_id, {:algorithm=>:concurrently})
3306 -> 0.0032s
3307== 20170316000001 QueueableJobsIndexJobId: migrated (0.0032s) =================
3309== 20170318000000 PullRequestsCreate: migrating ===============================
3310-- create_table(:pull_requests, {:id=>:integer})
3311 -> 0.0046s
3312== 20170318000000 PullRequestsCreate: migrated (0.0046s) ======================
3314== 20170318000001 RequestsAddPullRequestId: migrating =========================
3315-- change_table(:requests)
3316 -> 0.0008s
3317== 20170318000001 RequestsAddPullRequestId: migrated (0.0009s) ================
3319== 20170318000002 BuildsAddPullRequestId: migrating ===========================
3320-- change_table(:builds)
3321 -> 0.0006s
3322== 20170318000002 BuildsAddPullRequestId: migrated (0.0007s) ==================
3324== 20170322000000 AddIndexOnRequestsRepositoryIdAndIdDesc: migrating ==========
3325-- execute("CREATE INDEX CONCURRENTLY index_requests_on_repository_id_and_id_desc ON requests (repository_id, id DESC);")
3326 -> 0.0033s
3327== 20170322000000 AddIndexOnRequestsRepositoryIdAndIdDesc: migrated (0.0033s) =
3329== 20170331000000 AddIndexRepositoryIdOnPullRequests: migrating ===============
3330-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_pull_requests_on_repository_id_and_number ON pull_requests (repository_id, (number::integer));")
3331 -> 0.0032s
3332== 20170331000000 AddIndexRepositoryIdOnPullRequests: migrated (0.0033s) ======
3334== 20170401000000 OwnerGroupsCreate: migrating ================================
3335-- create_table(:owner_groups, {:id=>:integer})
3336 -> 0.0044s
3337== 20170401000000 OwnerGroupsCreate: migrated (0.0045s) =======================
3339== 20170401000001 OwnerGroupsIndexOwnerIdOwnerType: migrating =================
3340-- execute("CREATE INDEX CONCURRENTLY index_owner_groups_on_owner_type_and_owner_id ON owner_groups (owner_type, owner_id);")
3341 -> 0.0030s
3342== 20170401000001 OwnerGroupsIndexOwnerIdOwnerType: migrated (0.0031s) ========
3344== 20170401000002 OwnerGroupsIndexUuid: migrating =============================
3345-- execute("CREATE INDEX CONCURRENTLY index_owner_groups_on_uuid ON owner_groups (uuid);")
3346 -> 0.0031s
3347== 20170401000002 OwnerGroupsIndexUuid: migrated (0.0031s) ====================
3349== 20170405000000 TagsCreate: migrating =======================================
3350-- create_table(:tags, {:id=>:integer})
3351 -> 0.0046s
3352== 20170405000000 TagsCreate: migrated (0.0047s) ==============================
3354== 20170405000001 RequestsAddBranchIdAndTagId: migrating ======================
3355-- change_table(:requests)
3356 -> 0.0138s
3357== 20170405000001 RequestsAddBranchIdAndTagId: migrated (0.0138s) =============
3359== 20170405000002 CommitsAddBranchIdAndTagId: migrating =======================
3360-- change_table(:commits)
3361 -> 0.0034s
3362== 20170405000002 CommitsAddBranchIdAndTagId: migrated (0.0036s) ==============
3364== 20170405000003 BuildsAddBranchIdAndTagId: migrating ========================
3365-- change_table(:builds)
3366 -> 0.0026s
3367== 20170405000003 BuildsAddBranchIdAndTagId: migrated (0.0027s) ===============
3369== 20170408000000 RequestsAddSenderId: migrating ==============================
3370-- change_table(:requests)
3371 -> 0.0036s
3372== 20170408000000 RequestsAddSenderId: migrated (0.0037s) =====================
3374== 20170408000001 BuildsAddSenderId: migrating ================================
3375-- change_table(:builds)
3376 -> 0.0038s
3377== 20170408000001 BuildsAddSenderId: migrated (0.0040s) =======================
3379== 20170410000000 JobsIndexStageId: migrating =================================
3380-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_stage_id ON jobs (stage_id);")
3381 -> 0.0043s
3382== 20170410000000 JobsIndexStageId: migrated (0.0044s) ========================
3384== 20170411000000 TagsIndexRepoIdAndName: migrating ===========================
3385-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_tags_on_repository_id_and_name ON tags (repository_id, name);")
3386 -> 0.0040s
3387== 20170411000000 TagsIndexRepoIdAndName: migrated (0.0041s) ==================
3389== 20170419093249 AddSourceToSubscriptions: migrating =========================
3390-- execute(" CREATE TYPE source_type AS ENUM ('manual', 'stripe', 'github', 'unknown');\n")
3391 -> 0.0021s
3392-- add_column(:subscriptions, :source, :source_type, {:default=>"unknown", :null=>false})
3393 -> 0.0025s
3394== 20170419093249 AddSourceToSubscriptions: migrated (0.0050s) ================
3396== 20170531125700 AddIndexOnBuildsSenderTypeAndSenderId: migrating ============
3397-- execute("CREATE INDEX CONCURRENTLY index_builds_on_sender_type_and_sender_id ON builds (sender_type, sender_id);")
3398 -> 0.0041s
3399== 20170531125700 AddIndexOnBuildsSenderTypeAndSenderId: migrated (0.0043s) ===
3401== 20170601163700 DropIndexOnRepositoriesBuildsAndCommits: migrating ==========
3402-- execute("DROP INDEX CONCURRENTLY index_repositories_on_lower_owner_name")
3403 -> 0.0026s
3404-- execute("DROP INDEX CONCURRENTLY index_repositories_on_owner_type")
3405 -> 0.0023s
3406-- execute("DROP INDEX CONCURRENTLY index_commits_on_repository_id")
3407 -> 0.0021s
3408-- execute("DROP INDEX CONCURRENTLY index_builds_on_number")
3409 -> 0.0020s
3410== 20170601163700 DropIndexOnRepositoriesBuildsAndCommits: migrated (0.0092s) =
3412== 20170601164400 AddIndexOnBuildsAndStages: migrating ========================
3413-- execute("CREATE INDEX CONCURRENTLY index_builds_on_repository_id_and_branch_and_event_type_and_id ON builds (repository_id, branch, event_type, id)")
3414 -> 0.0034s
3415-- execute("CREATE INDEX CONCURRENTLY index_stages_on_build_id ON stages (build_id)")
3416 -> 0.0033s
3417== 20170601164400 AddIndexOnBuildsAndStages: migrated (0.0068s) ===============
3419== 20170609174400 DropUnusedIndexesOnJobsAndBuilds: migrating =================
3420-- execute("DROP INDEX CONCURRENTLY index_jobs_on_repository_id")
3421 -> 0.0022s
3422-- execute("DROP INDEX CONCURRENTLY index_jobs_on_queued_at")
3423 -> 0.0023s
3424-- execute("DROP INDEX CONCURRENTLY index_jobs_on_queue")
3425 -> 0.0018s
3426-- execute("DROP INDEX CONCURRENTLY index_jobs_on_owner_id")
3427 -> 0.0017s
3428-- execute("DROP INDEX CONCURRENTLY index_builds_on_branch")
3429 -> 0.0017s
3430-- execute("DROP INDEX CONCURRENTLY index_builds_on_event_type")
3431 -> 0.0018s
3432-- execute("DROP INDEX CONCURRENTLY index_builds_on_owner_id")
3433 -> 0.0016s
3434== 20170609174400 DropUnusedIndexesOnJobsAndBuilds: migrated (0.0131s) ========
3436== 20170613000000 CreateTrials: migrating =====================================
3437-- create_table(:trials, {:id=>:integer})
3438 -> 0.0062s
3439-- execute("CREATE INDEX CONCURRENTLY index_trials_on_owner ON trials(owner_id, owner_type)")
3440 -> 0.0033s
3441== 20170613000000 CreateTrials: migrated (0.0096s) ============================
3443== 20170620144500 AddIndexesOnBuildsAndJobsAndBranches: migrating =============
3444-- execute("CREATE INDEX CONCURRENTLY index_builds_on_repository_id_and_branch_and_id_desc ON builds (repository_id, branch, id DESC)")
3445 -> 0.0033s
3446-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_owner_id_and_owner_type_and_state ON jobs (owner_id, owner_type, state)")
3447 -> 0.0033s
3448-- execute("CREATE INDEX CONCURRENTLY index_branches_on_repository_id ON branches (repository_id)")
3449 -> 0.0031s
3450== 20170620144500 AddIndexesOnBuildsAndJobsAndBranches: migrated (0.0098s) ====
3452== 20170621142300 RemovePlansTable: migrating =================================
3453-- drop_table(:plans)
3454 -> 0.0009s
3455== 20170621142300 RemovePlansTable: migrated (0.0010s) ========================
3457== 20170713162000 AddCcLastDigitsToInvoices: migrating ========================
3458-- change_table(:invoices)
3459 -> 0.0007s
3460== 20170713162000 AddCcLastDigitsToInvoices: migrated (0.0007s) ===============
3462== 20170822171600 CreateMessages: migrating ===================================
3463-- create_table("messages", {:force=>:cascade, :id=>:integer})
3464 -> 0.0056s
3465-- execute("CREATE INDEX CONCURRENTLY index_messages_on_subject_type_and_subject_id ON messages(subject_type, subject_id)")
3466 -> 0.0033s
3467== 20170822171600 CreateMessages: migrated (0.0090s) ==========================
3469== 20170831000000 CreateTrialAllowances: migrating ============================
3470-- create_table(:trial_allowances, {:id=>:integer})
3471 -> 0.0047s
3472-- add_index(:trial_allowances, :trial_id)
3473 -> 0.0018s
3474-- add_index(:trial_allowances, [:creator_id, :creator_type])
3475 -> 0.0017s
3476== 20170831000000 CreateTrialAllowances: migrated (0.0083s) ===================
3478== 20170911172800 AddIndexOnJobsUpdatedAt: migrating ==========================
3479-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_updated_at ON jobs (updated_at)")
3480 -> 0.0036s
3481== 20170911172800 AddIndexOnJobsUpdatedAt: migrated (0.0036s) =================
3483== 20171017104500 AddConcurrencyToSubscriptions: migrating ====================
3484-- change_table(:subscriptions)
3485 -> 0.0007s
3486== 20171017104500 AddConcurrencyToSubscriptions: migrated (0.0007s) ===========
3488== 20171024000000 AddAbuseTable: migrating ====================================
3489-- create_table(:abuses, {:id=>:integer})
3490 -> 0.0061s
3491-- execute("CREATE INDEX CONCURRENTLY index_abuses_on_owner ON abuses(owner_id)")
3492 -> 0.0038s
3493== 20171024000000 AddAbuseTable: migrated (0.0100s) ===========================
3495== 20171025000000 AddUpdatedAtTriggerToBuildsAndJobs: migrating ===============
3496-- 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")
3497 -> 0.0008s
3498== 20171025000000 AddUpdatedAtTriggerToBuildsAndJobs: migrated (0.0009s) ======
3500== 20171103000000 UpdateIndexOnAbuses: migrating ==============================
3501-- index_exists?(:abuses, :owner, {:name=>"index_abuses_on_owner"})
3502 -> 0.0013s
3503-- index_exists?(:abuses, [:owner_id, :owner_type, :level], {:name=>"index_abuses_on_owner_id_and_owner_type_and_level"})
3504 -> 0.0011s
3505-- add_index(:abuses, [:owner_id, :owner_type, :level], {:unique=>true, :algorithm=>:concurrently})
3506 -> 0.0036s
3507== 20171103000000 UpdateIndexOnAbuses: migrated (0.0062s) =====================
3509== 20171211000000 AddRepositoryIdBranchEventTypeIndexOnBuilds: migrating ======
3510-- 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')")
3511 -> 0.0036s
3512== 20171211000000 AddRepositoryIdBranchEventTypeIndexOnBuilds: migrated (0.0037s)
3514== 20180212000000 UsersAddSuspended: migrating ================================
3515-- add_column(:users, :suspended, :boolean, {:default=>false})
3516 -> 0.0034s
3517== 20180212000000 UsersAddSuspended: migrated (0.0038s) =======================
3519== 20180213000000 UsersAddSuspendedAt: migrating ==============================
3520-- add_column(:users, :suspended_at, :timestamp, {:precision=>nil})
3521 -> 0.0022s
3522== 20180213000000 UsersAddSuspendedAt: migrated (0.0024s) =====================
3524== 20180222000000 AddComIdAndOrgId: migrating =================================
3525-- add_column(:branches, :org_id, :integer)
3526 -> 0.0023s
3527-- add_column(:builds, :org_id, :integer)
3528 -> 0.0013s
3529-- add_column(:commits, :org_id, :integer)
3530 -> 0.0013s
3531-- add_column(:crons, :org_id, :integer)
3532 -> 0.0012s
3533-- add_column(:jobs, :org_id, :integer)
3534 -> 0.0014s
3535-- add_column(:organizations, :org_id, :integer)
3536 -> 0.0014s
3537-- add_column(:permissions, :org_id, :integer)
3538 -> 0.0014s
3539-- add_column(:pull_requests, :org_id, :integer)
3540 -> 0.0009s
3541-- add_column(:repositories, :org_id, :integer)
3542 -> 0.0014s
3543-- add_column(:requests, :org_id, :integer)
3544 -> 0.0014s
3545-- add_column(:ssl_keys, :org_id, :integer)
3546 -> 0.0012s
3547-- add_column(:stages, :org_id, :integer)
3548 -> 0.0012s
3549-- add_column(:tags, :org_id, :integer)
3550 -> 0.0012s
3551-- add_column(:users, :org_id, :integer)
3552 -> 0.0009s
3553-- add_column(:branches, :com_id, :integer)
3554 -> 0.0015s
3555-- add_column(:builds, :com_id, :integer)
3556 -> 0.0012s
3557-- add_column(:commits, :com_id, :integer)
3558 -> 0.0010s
3559-- add_column(:crons, :com_id, :integer)
3560 -> 0.0012s
3561-- add_column(:jobs, :com_id, :integer)
3562 -> 0.0012s
3563-- add_column(:organizations, :com_id, :integer)
3564 -> 0.0011s
3565-- add_column(:permissions, :com_id, :integer)
3566 -> 0.0014s
3567-- add_column(:pull_requests, :com_id, :integer)
3568 -> 0.0013s
3569-- add_column(:repositories, :com_id, :integer)
3570 -> 0.0011s
3571-- add_column(:requests, :com_id, :integer)
3572 -> 0.0012s
3573-- add_column(:ssl_keys, :com_id, :integer)
3574 -> 0.0013s
3575-- add_column(:stages, :com_id, :integer)
3576 -> 0.0011s
3577-- add_column(:tags, :com_id, :integer)
3578 -> 0.0012s
3579-- add_column(:users, :com_id, :integer)
3580 -> 0.0011s
3581== 20180222000000 AddComIdAndOrgId: migrated (0.0387s) ========================
3583== 20180222000001 AddComIdAndOrgIdIndices: migrating ==========================
3584-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_branches_on_org_id ON branches USING btree (org_id)")
3585 -> 0.0045s
3586-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_builds_on_org_id ON builds USING btree (org_id)")
3587 -> 0.0038s
3588-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_jobs_on_org_id ON jobs USING btree (org_id)")
3589 -> 0.0034s
3590-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_commits_on_org_id ON commits USING btree (org_id)")
3591 -> 0.0035s
3592-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_crons_on_org_id ON crons USING btree (org_id)")
3593 -> 0.0039s
3594-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_organizations_on_org_id ON organizations USING btree (org_id)")
3595 -> 0.0039s
3596-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_permissions_on_org_id ON permissions USING btree (org_id)")
3597 -> 0.0041s
3598-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_pull_requests_on_org_id ON pull_requests USING btree (org_id)")
3599 -> 0.0038s
3600-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_repositories_on_org_id ON repositories USING btree (org_id)")
3601 -> 0.0036s
3602-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_requests_on_org_id ON requests USING btree (org_id)")
3603 -> 0.0031s
3604-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_ssl_keys_on_org_id ON ssl_keys USING btree (org_id)")
3605 -> 0.0038s
3606-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_stages_on_org_id ON stages USING btree (org_id)")
3607 -> 0.0035s
3608-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_tags_on_org_id ON tags USING btree (org_id)")
3609 -> 0.0034s
3610-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_users_on_org_id ON users USING btree (org_id)")
3611 -> 0.0036s
3612-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_branches_on_com_id ON branches USING btree (com_id)")
3613 -> 0.0036s
3614-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_builds_on_com_id ON builds USING btree (com_id)")
3615 -> 0.0036s
3616-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_jobs_on_com_id ON jobs USING btree (com_id)")
3617 -> 0.0053s
3618-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_commits_on_com_id ON commits USING btree (com_id)")
3619 -> 0.0040s
3620-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_crons_on_com_id ON crons USING btree (com_id)")
3621 -> 0.0038s
3622-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_organizations_on_com_id ON organizations USING btree (com_id)")
3623 -> 0.0034s
3624-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_permissions_on_com_id ON permissions USING btree (com_id)")
3625 -> 0.0037s
3626-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_pull_requests_on_com_id ON pull_requests USING btree (com_id)")
3627 -> 0.0036s
3628-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_repositories_on_com_id ON repositories USING btree (com_id)")
3629 -> 0.0038s
3630-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_requests_on_com_id ON requests USING btree (com_id)")
3631 -> 0.0037s
3632-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_ssl_keys_on_com_id ON ssl_keys USING btree (com_id)")
3633 -> 0.0035s
3634-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_stages_on_com_id ON stages USING btree (com_id)")
3635 -> 0.0032s
3636-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_tags_on_com_id ON tags USING btree (com_id)")
3637 -> 0.0033s
3638-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_users_on_com_id ON users USING btree (com_id)")
3639 -> 0.0034s
3640== 20180222000001 AddComIdAndOrgIdIndices: migrated (0.1047s) =================
3642== 20180222000002 AddMigrating: migrating =====================================
3643-- add_column(:repositories, :migrating, :boolean)
3644 -> 0.0007s
3645-- add_column(:repositories, :migrated_at, :timestamp, {:precision=>nil})
3646 -> 0.0004s
3647-- add_column(:organizations, :migrating, :boolean)
3648 -> 0.0004s
3649-- add_column(:organizations, :migrated_at, :timestamp, {:precision=>nil})
3650 -> 0.0004s
3651-- add_column(:users, :migrating, :boolean)
3652 -> 0.0004s
3653-- add_column(:users, :migrated_at, :timestamp, {:precision=>nil})
3654 -> 0.0004s
3655== 20180222000002 AddMigrating: migrated (0.0027s) ============================
3657== 20180222000003 DropFkRepositoriesCurrentBuildId: migrating =================
3658-- execute("ALTER TABLE repositories DROP CONSTRAINT fk_repositories_current_build_id")
3659 -> 0.0008s
3660== 20180222000003 DropFkRepositoriesCurrentBuildId: migrated (0.0008s) ========
3662== 20180222000009 CreateRepoCounts: migrating =================================
3663-- create_table(:repo_counts, {:id=>false})
3664 -> 0.0030s
3665-- add_index(:repo_counts, :repository_id)
3666 -> 0.0021s
3667== 20180222000009 CreateRepoCounts: migrated (0.0051s) ========================
3669== 20180222000012 CreateRepoCountsTriggers: migrating =========================
3670-- 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")
3671 -> 0.0238s
3672== 20180222000012 CreateRepoCountsTriggers: migrated (0.0243s) ================
3674== 20180222164100 DropAnnotations: migrating ==================================
3675-- drop_table(:annotations)
3676 -> 0.0024s
3677-- drop_table(:annotation_providers)
3678 -> 0.0027s
3679== 20180222164100 DropAnnotations: migrated (0.0051s) =========================
3681== 20180305143800 IndexBuildsOnRepositoryIdWhereStateNotFinished: migrating ===
3682-- execute("CREATE INDEX CONCURRENTLY index_builds_on_repository_id_where_state_not_finished ON builds (repository_id) WHERE state IN ('created', 'queued', 'received', 'started');")
3683 -> 0.0051s
3684== 20180305143800 IndexBuildsOnRepositoryIdWhereStateNotFinished: migrated (0.0051s)
3686== 20180321102400 IndexJobsOnRepositoryIdWhereStateRunning: migrating =========
3687-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_repository_id_where_state_running ON jobs (repository_id) WHERE state IN ('queued', 'received', 'started')")
3688 -> 0.0047s
3689== 20180321102400 IndexJobsOnRepositoryIdWhereStateRunning: migrated (0.0047s)
3691== 20180330000000 CreateRequestPayloads: migrating ============================
3692-- create_table(:request_payloads, {:id=>:integer})
3693 -> 0.0059s
3694-- add_index(:request_payloads, :request_id)
3695 -> 0.0020s
3696-- add_index(:request_payloads, [:created_at, :archived])
3697 -> 0.0020s
3698== 20180330000000 CreateRequestPayloads: migrated (0.0100s) ===================
3700== 20180331000000 CreateConfigs: migrating ====================================
3701-- create_table(:request_configs, {:id=>:integer})
3702 -> 0.0057s
3703-- create_table(:build_configs, {:id=>:integer})
3704 -> 0.0052s
3705-- create_table(:job_configs, {:id=>:integer})
3706 -> 0.0052s
3707-- add_index(:request_configs, [:repository_id, :key])
3708 -> 0.0021s
3709-- add_index(:build_configs, [:repository_id, :key])
3710 -> 0.0020s
3711-- add_index(:job_configs, [:repository_id, :key])
3712 -> 0.0020s
3713-- add_column(:requests, :config_id, :integer)
3714 -> 0.0005s
3715-- add_column(:builds, :config_id, :integer)
3716 -> 0.0005s
3717-- add_column(:jobs, :config_id, :integer)
3718 -> 0.0005s
3719== 20180331000000 CreateConfigs: migrated (0.0242s) ===========================
3721== 20180404000001 CreateInstallations: migrating ==============================
3722-- create_table(:installations, {:id=>:integer})
3723 -> 0.0116s
3724-- change_table(:repositories)
3725 -> 0.0011s
3726== 20180404000001 CreateInstallations: migrated (0.0128s) =====================
3728== 20180410000000 RequestsDropPayload: migrating ==============================
3729-- remove_column(:requests, :payload, :text)
3730 -> 0.0008s
3731== 20180410000000 RequestsDropPayload: migrated (0.0008s) =====================
3733== 20180413000000 IndexBranchesOnRepositoryIdAndNameAndId: migrating ==========
3734-- execute("CREATE INDEX CONCURRENTLY index_branches_on_repository_id_and_name_and_id ON branches (repository_id, name, id)")
3735 -> 0.0036s
3736-- execute("DROP INDEX CONCURRENTLY index_branches_on_repository_id_and_name")
3737 -> 0.0019s
3738== 20180413000000 IndexBranchesOnRepositoryIdAndNameAndId: migrated (0.0056s) =
3740== 20180417000000 IndexBuildsOrganizationsUsersOnUpdatedAt: migrating =========
3741-- execute("CREATE INDEX CONCURRENTLY index_builds_on_updated_at ON builds (updated_at)")
3742 -> 0.0038s
3743-- execute("CREATE INDEX CONCURRENTLY index_users_on_updated_at ON users (updated_at)")
3744 -> 0.0034s
3745-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_updated_at ON repositories (updated_at)")
3746 -> 0.0037s
3747-- execute("CREATE INDEX CONCURRENTLY index_organizations_on_updated_at ON organizations (updated_at)")
3748 -> 0.0034s
3749== 20180417000000 IndexBuildsOrganizationsUsersOnUpdatedAt: migrated (0.0144s)
3751== 20180420000000 ConstraintsAndIndexesForGhApps: migrating ===================
3752-- execute("CREATE UNIQUE INDEX CONCURRENTLY github_id_installations_idx ON installations (github_id)")
3753 -> 0.0032s
3754-- execute("CREATE INDEX CONCURRENTLY managed_repositories_idx ON repositories (managed_by_installation_at)")
3755 -> 0.0034s
3756-- execute("CREATE UNIQUE INDEX CONCURRENTLY owner_installations_idx ON installations (owner_id, owner_type) WHERE removed_by_id IS NULL")
3757 -> 0.0037s
3758== 20180420000000 ConstraintsAndIndexesForGhApps: migrated (0.0104s) ==========
3760== 20180425000000 IndexActiveOnOrg: migrating =================================
3761-- execute("CREATE INDEX CONCURRENTLY index_active_on_org ON repositories (active_on_org)")
3762 -> 0.0034s
3763== 20180425000000 IndexActiveOnOrg: migrated (0.0034s) ========================
3765== 20180425100000 AddRemovedAtOnInstallations: migrating ======================
3766-- add_column(:installations, :removed_at, :timestamp, {:precision=>nil})
3767 -> 0.0007s
3768== 20180425100000 AddRemovedAtOnInstallations: migrated (0.0008s) =============
3770== 20180429000000 IndexRepositoriesOnOwnerNameAndName: migrating ==============
3771-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_owner_name_and_name ON repositories (owner_name, name) WHERE invalidated_at IS NULL")
3772 -> 0.0035s
3773== 20180429000000 IndexRepositoriesOnOwnerNameAndName: migrated (0.0036s) =====
3775== 20180501000000 IndexJobsOnOwnerWhereStateRunning: migrating ================
3776-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_owner_where_state_running ON jobs (owner_id, owner_type) WHERE state IN ('queued', 'received', 'started')")
3777 -> 0.0037s
3778== 20180501000000 IndexJobsOnOwnerWhereStateRunning: migrated (0.0037s) =======
3780== 20180517000000 IndexRequestsConfigId: migrating ============================
3781-- execute("CREATE INDEX CONCURRENTLY index_requests_on_config_id ON requests (config_id)")
3782 -> 0.0034s
3783== 20180517000000 IndexRequestsConfigId: migrated (0.0034s) ===================
3785== 20180517000001 IndexBuildsConfigId: migrating ==============================
3786-- execute("CREATE INDEX CONCURRENTLY index_builds_on_config_id ON requests (config_id)")
3787 -> 0.0033s
3788== 20180517000001 IndexBuildsConfigId: migrated (0.0033s) =====================
3790== 20180517000002 IndexJobsConfigId: migrating ================================
3791-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_config_id ON requests (config_id)")
3792 -> 0.0035s
3793== 20180517000002 IndexJobsConfigId: migrated (0.0035s) =======================
3795== 20180518000000 IndexBuildsOnMultiple: migrating ============================
3796-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_builds_on_repo_branch_event_type_and_private ON builds (repository_id, branch, event_type, private)")
3797 -> 0.0039s
3798== 20180518000000 IndexBuildsOnMultiple: migrated (0.0040s) ===================
3800== 20180522000000 AddActiveFlagToCrons: migrating =============================
3801-- change_table(:crons)
3802 -> 0.0014s
3803-- add_index(:crons, :next_run, {:where=>"(active IS TRUE)", :algorithm=>:concurrently})
3804 -> 0.0048s
3805== 20180522000000 AddActiveFlagToCrons: migrated (0.0063s) ====================
3807== 20180531000000 CreateRequestYamlConfigs: migrating =========================
3808-- create_table(:request_yaml_configs, {:id=>:integer})
3809 -> 0.0061s
3810-- add_index(:request_yaml_configs, [:repository_id, :key])
3811 -> 0.0024s
3812-- add_column(:requests, :yaml_config_id, :integer)
3813 -> 0.0010s
3814== 20180531000000 CreateRequestYamlConfigs: migrated (0.0095s) ================
3816== 20180606000000 IndexCommitsOnRepositoryId: migrating =======================
3817-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_commits_on_repository_id ON commits (repository_id)")
3818 -> 0.0035s
3819== 20180606000000 IndexCommitsOnRepositoryId: migrated (0.0036s) ==============
3821== 20180606000001 IndexJobsOnRepositoryId: migrating ==========================
3822-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_jobs_on_repository_id ON jobs (repository_id)")
3823 -> 0.0035s
3824== 20180606000001 IndexJobsOnRepositoryId: migrated (0.0036s) =================
3826== 20180614000000 DropRequestsConfig: migrating ===============================
3827-- remove_column(:requests, :config)
3828 -> 0.0007s
3829== 20180614000000 DropRequestsConfig: migrated (0.0007s) ======================
3831== 20180614000001 DropBuildsConfig: migrating =================================
3832-- remove_column(:builds, :config)
3833 -> 0.0007s
3834== 20180614000001 DropBuildsConfig: migrated (0.0007s) ========================
3836== 20180614000002 DropJobsConfig: migrating ===================================
3837-- remove_column(:jobs, :config)
3838 -> 0.0007s
3839== 20180614000002 DropJobsConfig: migrated (0.0007s) ==========================
3841== 20180620000000 IndexBuildsOnRepositoryIdEventTypeId: migrating =============
3842-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_builds_on_repository_id_event_type_id ON builds (repository_id, event_type, id DESC)")
3843 -> 0.0046s
3844== 20180620000000 IndexBuildsOnRepositoryIdEventTypeId: migrated (0.0046s) ====
3846== 20180725000000 CreateCancellations: migrating ==============================
3847-- create_table(:cancellations, {:id=>:integer})
3848 -> 0.0103s
3849== 20180725000000 CreateCancellations: migrated (0.0103s) =====================
3851== 20180726000000 CommitsIndexAuthorEmail: migrating ==========================
3852-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_commits_on_author_email ON commits (author_email)")
3853 -> 0.0038s
3854== 20180726000000 CommitsIndexAuthorEmail: migrated (0.0040s) =================
3856== 20180726000001 CommitsIndexCommitterEmail: migrating =======================
3857-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_commits_on_committer_email ON commits (committer_email)")
3858 -> 0.0046s
3859== 20180726000001 CommitsIndexCommitterEmail: migrated (0.0047s) ==============
3861== 20180801000001 UsersAddRedactedAt: migrating ===============================
3862-- change_table(:users)
3863 -> 0.0023s
3864== 20180801000001 UsersAddRedactedAt: migrated (0.0024s) ======================
3866== 20180822000000 CreateEmailUnsubscribes: migrating ==========================
3867-- create_table(:email_unsubscribes, {:id=>:integer})
3868 -> 0.0129s
3869== 20180822000000 CreateEmailUnsubscribes: migrated (0.0131s) =================
3871== 20180823000000 AddPreferences: migrating ===================================
3872-- change_table(:users)
3873 -> 0.0034s
3874== 20180823000000 AddPreferences: migrated (0.0034s) ==========================
3876== 20180828000000 ChangePreferencesDefault: migrating =========================
3877-- change_column_default(:users, :preferences, {})
3878 -> 0.0087s
3879== 20180828000000 ChangePreferencesDefault: migrated (0.0090s) ================
3881== 20180829000000 MakeEmailUnsubscribesIdBigint: migrating ====================
3882-- change_column(:email_unsubscribes, :id, :bigint)
3883 -> 0.0114s
3884== 20180829000000 MakeEmailUnsubscribesIdBigint: migrated (0.0115s) ===========
3886== 20180830000001 JobsAddRestartedAt: migrating ===============================
3887-- change_table(:jobs)
3888 -> 0.0012s
3889== 20180830000001 JobsAddRestartedAt: migrated (0.0012s) ======================
3891== 20180830000002 BuildsAddRestartedAt: migrating =============================
3892-- change_table(:builds)
3893 -> 0.0011s
3894== 20180830000002 BuildsAddRestartedAt: migrated (0.0012s) ====================
3896== 20180830000003 JobVersionsCreate: migrating ================================
3897-- create_table(:job_versions, {:id=>:integer})
3898 -> 0.0070s
3899== 20180830000003 JobVersionsCreate: migrated (0.0070s) =======================
3901== 20180903000000 JobConfigsIndexConfigResourcesGpu: migrating ================
3902-- 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")
3903 -> 0.0012s
3904-- 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")
3905 -> 0.0040s
3906== 20180903000000 JobConfigsIndexConfigResourcesGpu: migrated (0.0053s) =======
3908== 20180903000001 FixIndexesOnBuildsAndJobsConfigId: migrating ================
3909-- execute("DROP INDEX index_builds_on_config_id")
3910 -> 0.0013s
3911-- execute("CREATE INDEX CONCURRENTLY index_builds_on_config_id ON builds (config_id)")
3912 -> 0.0039s
3913-- execute("DROP INDEX index_jobs_on_config_id")
3914 -> 0.0012s
3915-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_config_id ON jobs (config_id)")
3916 -> 0.0040s
3917== 20180903000001 FixIndexesOnBuildsAndJobsConfigId: migrated (0.0105s) =======
3919== 20180904000001 CreateJobConfigsGpu: migrating ==============================
3920-- 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")
3921 -> 0.0024s
3922== 20180904000001 CreateJobConfigsGpu: migrated (0.0024s) =====================
3924== 20180906000000 AddIndexUsersPreferencesBuildEmails: migrating ==============
3925-- execute("CREATE INDEX CONCURRENTLY user_preferences_build_emails_false ON users (id) WHERE preferences->>'build_emails' = 'false';\n")
3926 -> 0.0053s
3927== 20180906000000 AddIndexUsersPreferencesBuildEmails: migrated (0.0054s) =====
3929== 20181002115306 DeleteDuplicateRecordsFromMemberships: migrating ============
3930-- 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")
3931 -> 0.0016s
3932== 20181002115306 DeleteDuplicateRecordsFromMemberships: migrated (0.0016s) ===
3934== 20181002115307 AddConstraintOnOrganizationAndUserToMemberships: migrating ==
3935-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_organization_id_and_user_id_on_memberships ON memberships USING btree (organization_id, user_id);\n")
3936 -> 0.0038s
3937== 20181002115307 AddConstraintOnOrganizationAndUserToMemberships: migrated (0.0039s)
3939== 20181018000000 IndexBuildsOnCreatedAt: migrating ===========================
3940-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_builds_on_created_at ON builds (created_at)")
3941 -> 0.0040s
3942== 20181018000000 IndexBuildsOnCreatedAt: migrated (0.0040s) ==================
3944== 20181029120000 AddMigrationStatusColumnToRepositories: migrating ===========
3945-- add_column(:repositories, :migration_status, :string)
3946 -> 0.0021s
3947== 20181029120000 AddMigrationStatusColumnToRepositories: migrated (0.0023s) ==
3949== 20181113120000 AddGithubGuidColumnToRequests: migrating ====================
3950-- add_column(:requests, :github_guid, :text)
3951 -> 0.0017s
3952-- add_index(:requests, :github_guid, {:algorithm=>:concurrently, :unique=>true})
3953 -> 0.0052s
3954== 20181113120000 AddGithubGuidColumnToRequests: migrated (0.0072s) ===========
3956== 20181116800000 AddConstraintsToMultipleTables: migrating ===================
3957-- 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")
3958 -> 0.0021s
3959-- 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")
3960 -> 0.0013s
3961-- execute("ALTER TABLE builds ADD CONSTRAINT fk_builds_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID")
3962 -> 0.0013s
3963-- execute("ALTER TABLE builds ADD CONSTRAINT fk_builds_on_commit_id FOREIGN KEY (commit_id) REFERENCES commits(id) NOT VALID")
3964 -> 0.0013s
3965-- execute("ALTER TABLE builds ADD CONSTRAINT fk_builds_on_request_id FOREIGN KEY (request_id) REFERENCES requests(id) NOT VALID")
3966 -> 0.0016s
3967-- execute("ALTER TABLE builds ADD CONSTRAINT fk_builds_on_pull_request_id FOREIGN KEY (pull_request_id) REFERENCES pull_requests(id) NOT VALID")
3968 -> 0.0014s
3969-- execute("ALTER TABLE builds ADD CONSTRAINT fk_builds_on_branch_id FOREIGN KEY (branch_id) REFERENCES branches(id) NOT VALID")
3970 -> 0.0013s
3971-- execute("ALTER TABLE builds ADD CONSTRAINT fk_builds_on_tag_id FOREIGN KEY (tag_id) REFERENCES tags(id) NOT VALID")
3972 -> 0.0014s
3973-- execute("ALTER TABLE builds ADD CONSTRAINT fk_builds_on_config_id FOREIGN KEY (config_id) REFERENCES build_configs(id) NOT VALID")
3974 -> 0.0014s
3975-- execute("ALTER TABLE jobs ADD CONSTRAINT fk_jobs_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID")
3976 -> 0.0013s
3977-- execute("ALTER TABLE jobs ADD CONSTRAINT fk_jobs_on_commit_id FOREIGN KEY (commit_id) REFERENCES commits(id) NOT VALID")
3978 -> 0.0013s
3979-- execute("ALTER TABLE jobs ADD CONSTRAINT fk_jobs_on_stage_id FOREIGN KEY (stage_id) REFERENCES stages(id) NOT VALID")
3980 -> 0.0014s
3981-- execute("ALTER TABLE jobs ADD CONSTRAINT fk_jobs_on_config_id FOREIGN KEY (config_id) REFERENCES job_configs(id) NOT VALID")
3982 -> 0.0014s
3983-- execute("ALTER TABLE branches ADD CONSTRAINT fk_branches_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID")
3984 -> 0.0012s
3985-- 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")
3986 -> 0.0011s
3987-- execute("ALTER TABLE tags ADD CONSTRAINT fk_tags_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID")
3988 -> 0.0012s
3989-- 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")
3990 -> 0.0013s
3991-- execute("ALTER TABLE commits ADD CONSTRAINT fk_commits_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID")
3992 -> 0.0013s
3993-- execute("ALTER TABLE commits ADD CONSTRAINT fk_commits_on_branch_id FOREIGN KEY (branch_id) REFERENCES branches(id) NOT VALID")
3994 -> 0.0013s
3995-- execute("ALTER TABLE commits ADD CONSTRAINT fk_commits_on_tag_id FOREIGN KEY (tag_id) REFERENCES tags(id) NOT VALID")
3996 -> 0.0011s
3997-- execute("ALTER TABLE crons ADD CONSTRAINT fk_crons_on_branch_id FOREIGN KEY (branch_id) REFERENCES branches(id) NOT VALID")
3998 -> 0.0015s
3999-- execute("ALTER TABLE job_configs ADD CONSTRAINT fk_job_configs_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID")
4000 -> 0.0011s
4001-- execute("ALTER TABLE build_configs ADD CONSTRAINT fk_build_configs_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID")
4002 -> 0.0013s
4003-- execute("ALTER TABLE pull_requests ADD CONSTRAINT fk_pull_requests_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID")
4004 -> 0.0013s
4005-- execute("ALTER TABLE ssl_keys ADD CONSTRAINT fk_ssl_keys_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID")
4006 -> 0.0012s
4007-- execute("ALTER TABLE requests ADD CONSTRAINT fk_requests_on_commit_id FOREIGN KEY (commit_id) REFERENCES commits(id) NOT VALID")
4008 -> 0.0012s
4009-- execute("ALTER TABLE requests ADD CONSTRAINT fk_requests_on_pull_request_id FOREIGN KEY (pull_request_id) REFERENCES pull_requests(id) NOT VALID")
4010 -> 0.0013s
4011-- execute("ALTER TABLE requests ADD CONSTRAINT fk_requests_on_branch_id FOREIGN KEY (branch_id) REFERENCES branches(id) NOT VALID")
4012 -> 0.0012s
4013-- execute("ALTER TABLE requests ADD CONSTRAINT fk_requests_on_tag_id FOREIGN KEY (tag_id) REFERENCES tags(id) NOT VALID")
4014 -> 0.0013s
4015-- execute("ALTER TABLE requests ADD CONSTRAINT fk_requests_on_config_id FOREIGN KEY (config_id) REFERENCES request_configs(id) NOT VALID")
4016 -> 0.0011s
4017-- execute("ALTER TABLE stages ADD CONSTRAINT fk_stages_on_build_id FOREIGN KEY (build_id) REFERENCES builds(id) NOT VALID")
4018 -> 0.0014s
4019== 20181116800000 AddConstraintsToMultipleTables: migrated (0.0452s) ==========
4021== 20181116800001 ValidateConstraints: migrating ==============================
4022-- execute("ALTER TABLE repositories VALIDATE CONSTRAINT fk_repositories_on_current_build_id")
4023 -> 0.0032s
4024-- execute("ALTER TABLE repositories VALIDATE CONSTRAINT fk_repositories_on_last_build_id")
4025 -> 0.0012s
4026-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_builds_on_repository_id")
4027 -> 0.0016s
4028-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_builds_on_commit_id")
4029 -> 0.0012s
4030-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_builds_on_request_id")
4031 -> 0.0013s
4032-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_builds_on_pull_request_id")
4033 -> 0.0011s
4034-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_builds_on_branch_id")
4035 -> 0.0011s
4036-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_builds_on_tag_id")
4037 -> 0.0010s
4038-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_builds_on_config_id")
4039 -> 0.0010s
4040-- execute("ALTER TABLE jobs VALIDATE CONSTRAINT fk_jobs_on_repository_id")
4041 -> 0.0014s
4042-- execute("ALTER TABLE jobs VALIDATE CONSTRAINT fk_jobs_on_commit_id")
4043 -> 0.0009s
4044-- execute("ALTER TABLE jobs VALIDATE CONSTRAINT fk_jobs_on_stage_id")
4045 -> 0.0011s
4046-- execute("ALTER TABLE jobs VALIDATE CONSTRAINT fk_jobs_on_config_id")
4047 -> 0.0009s
4048-- execute("ALTER TABLE branches VALIDATE CONSTRAINT fk_branches_on_repository_id")
4049 -> 0.0008s
4050-- execute("ALTER TABLE branches VALIDATE CONSTRAINT fk_branches_on_last_build_id")
4051 -> 0.0008s
4052-- execute("ALTER TABLE tags VALIDATE CONSTRAINT fk_tags_on_repository_id")
4053 -> 0.0008s
4054-- execute("ALTER TABLE tags VALIDATE CONSTRAINT fk_tags_on_last_build_id")
4055 -> 0.0008s
4056-- execute("ALTER TABLE commits VALIDATE CONSTRAINT fk_commits_on_repository_id")
4057 -> 0.0008s
4058-- execute("ALTER TABLE commits VALIDATE CONSTRAINT fk_commits_on_branch_id")
4059 -> 0.0008s
4060-- execute("ALTER TABLE commits VALIDATE CONSTRAINT fk_commits_on_tag_id")
4061 -> 0.0007s
4062-- execute("ALTER TABLE crons VALIDATE CONSTRAINT fk_crons_on_branch_id")
4063 -> 0.0009s
4064-- execute("ALTER TABLE job_configs VALIDATE CONSTRAINT fk_job_configs_on_repository_id")
4065 -> 0.0007s
4066-- execute("ALTER TABLE build_configs VALIDATE CONSTRAINT fk_build_configs_on_repository_id")
4067 -> 0.0007s
4068-- execute("ALTER TABLE pull_requests VALIDATE CONSTRAINT fk_pull_requests_on_repository_id")
4069 -> 0.0008s
4070-- execute("ALTER TABLE ssl_keys VALIDATE CONSTRAINT fk_ssl_keys_on_repository_id")
4071 -> 0.0009s
4072-- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_requests_on_commit_id")
4073 -> 0.0008s
4074-- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_requests_on_pull_request_id")
4075 -> 0.0008s
4076-- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_requests_on_branch_id")
4077 -> 0.0008s
4078-- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_requests_on_tag_id")
4079 -> 0.0007s
4080-- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_requests_on_config_id")
4081 -> 0.0009s
4082-- execute("ALTER TABLE stages VALIDATE CONSTRAINT fk_stages_on_build_id")
4083 -> 0.0008s
4084== 20181116800001 ValidateConstraints: migrated (0.0327s) =====================
4086== 20181126080000 AddIndexesForForeignKeys: migrating =========================
4087-- index_exists?(:builds, :branch_id)
4088 -> 0.0110s
4089-- add_index(:builds, :branch_id, {:algorithm=>:concurrently})
4090 -> 0.0052s
4091-- index_exists?(:builds, :commit_id)
4092 -> 0.0119s
4093-- add_index(:builds, :commit_id, {:algorithm=>:concurrently})
4094 -> 0.0054s
4095-- index_exists?(:builds, :pull_request_id)
4096 -> 0.0108s
4097-- add_index(:builds, :pull_request_id, {:algorithm=>:concurrently})
4098 -> 0.0052s
4099-- index_exists?(:builds, :tag_id)
4100 -> 0.0138s
4101-- add_index(:builds, :tag_id, {:algorithm=>:concurrently})
4102 -> 0.0054s
4103-- index_exists?(:jobs, :commit_id)
4104 -> 0.0096s
4105-- add_index(:jobs, :commit_id, {:algorithm=>:concurrently})
4106 -> 0.0047s
4107-- index_exists?(:branches, :last_build_id)
4108 -> 0.0023s
4109-- add_index(:branches, :last_build_id, {:algorithm=>:concurrently})
4110 -> 0.0039s
4111-- index_exists?(:tags, :repository_id)
4112 -> 0.0019s
4113-- add_index(:tags, :repository_id, {:algorithm=>:concurrently})
4114 -> 0.0035s
4115-- index_exists?(:tags, :last_build_id)
4116 -> 0.0021s
4117-- add_index(:tags, :last_build_id, {:algorithm=>:concurrently})
4118 -> 0.0034s
4119-- index_exists?(:commits, :tag_id)
4120 -> 0.0024s
4121-- add_index(:commits, :tag_id, {:algorithm=>:concurrently})
4122 -> 0.0037s
4123-- index_exists?(:commits, :branch_id)
4124 -> 0.0027s
4125-- add_index(:commits, :branch_id, {:algorithm=>:concurrently})
4126 -> 0.0036s
4127-- index_exists?(:job_configs, :repository_id)
4128 -> 0.0013s
4129-- add_index(:job_configs, :repository_id, {:algorithm=>:concurrently})
4130 -> 0.0038s
4131-- index_exists?(:build_configs, :repository_id)
4132 -> 0.0012s
4133-- add_index(:build_configs, :repository_id, {:algorithm=>:concurrently})
4134 -> 0.0037s
4135-- index_exists?(:pull_requests, :repository_id)
4136 -> 0.0018s
4137-- add_index(:pull_requests, :repository_id, {:algorithm=>:concurrently})
4138 -> 0.0034s
4139-- index_exists?(:requests, :pull_request_id)
4140 -> 0.0047s
4141-- add_index(:requests, :pull_request_id, {:algorithm=>:concurrently})
4142 -> 0.0061s
4143-- index_exists?(:requests, :tag_id)
4144 -> 0.0104s
4145-- add_index(:requests, :tag_id, {:algorithm=>:concurrently})
4146 -> 0.0058s
4147-- index_exists?(:requests, :branch_id)
4148 -> 0.0084s
4149-- add_index(:requests, :branch_id, {:algorithm=>:concurrently})
4150 -> 0.0057s
4151-- index_exists?(:repositories, :current_build_id)
4152 -> 0.0093s
4153-- add_index(:repositories, :current_build_id, {:algorithm=>:concurrently})
4154 -> 0.0050s
4155-- index_exists?(:repositories, :last_build_id)
4156 -> 0.0084s
4157-- add_index(:repositories, :last_build_id, {:algorithm=>:concurrently})
4158 -> 0.0054s
4159-- index_exists?(:crons, :branch_id)
4160 -> 0.0035s
4161-- add_index(:crons, :branch_id, {:algorithm=>:concurrently})
4162 -> 0.0045s
4163== 20181126080000 AddIndexesForForeignKeys: migrated (0.2071s) ================
4165== 20181128120000 AddUniqueIndexToBranchesOnRepositoryIdAndName: migrating ====
4166-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_branches_on_repository_id_and_name ON branches(repository_id, name)")
4167 -> 0.0047s
4168== 20181128120000 AddUniqueIndexToBranchesOnRepositoryIdAndName: migrated (0.0048s)
4170== 20181203075818 AddUniqueNameColumnToBranches: migrating ====================
4171-- add_column(:branches, :unique_name, :text)
4172 -> 0.0014s
4173== 20181203075818 AddUniqueNameColumnToBranches: migrated (0.0015s) ===========
4175== 20181203075819 AddSetUniqueNameTriggerToBranches: migrating ================
4176-- 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")
4177 -> 0.0014s
4178== 20181203075819 AddSetUniqueNameTriggerToBranches: migrated (0.0018s) =======
4180== 20181203080356 CreateIndexOnBranchesUniqueNameAndRepositoryId: migrating ===
4181-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_branches_repository_id_unique_name ON branches(repository_id, unique_name) WHERE unique_name IS NOT NULL")
4182 -> 0.0071s
4183== 20181203080356 CreateIndexOnBranchesUniqueNameAndRepositoryId: migrated (0.0072s)
4185== 20181205152712 AddUniqueIndexToCronsOnBranchId: migrating ==================
4186-- execute("DROP INDEX CONCURRENTLY index_crons_on_branch_id")
4187 -> 0.0020s
4188-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_crons_on_branch_id ON crons(branch_id)")
4189 -> 0.0036s
4190== 20181205152712 AddUniqueIndexToCronsOnBranchId: migrated (0.0058s) =========
4192== 20190102000000 AddOrganizationPreferences: migrating =======================
4193-- change_table(:organizations)
4194 -> 0.0020s
4195== 20190102000000 AddOrganizationPreferences: migrated (0.0021s) ==============
4197== 20190102000001 ChangeOrganizationPreferencesDefault: migrating =============
4198-- change_column_default(:organizations, :preferences, {})
4199 -> 0.0030s
4200== 20190102000001 ChangeOrganizationPreferencesDefault: migrated (0.0031s) ====
4202== 20190109000000 CreateBetaMigrationRequestTable: migrating ==================
4203-- create_table(:beta_migration_requests, {:id=>:integer})
4204 -> 0.0052s
4205-- add_index(:beta_migration_requests, [:owner_type, :owner_id])
4206 -> 0.0020s
4207== 20190109000000 CreateBetaMigrationRequestTable: migrated (0.0072s) =========
4209== 20190118000000 AddBetaMigrationRequestColumnToOrganizations: migrating =====
4210-- add_column(:organizations, :beta_migration_request_id, :integer)
4211 -> 0.0007s
4212== 20190118000000 AddBetaMigrationRequestColumnToOrganizations: migrated (0.0007s)
4214== 20190204000000 MakeSubscriptionOwnerNotNullable: migrating =================
4215-- change_column_null(:subscriptions, :owner_type, false)
4216 -> 0.0006s
4217-- change_column_null(:subscriptions, :owner_id, false)
4218 -> 0.0003s
4219== 20190204000000 MakeSubscriptionOwnerNotNullable: migrated (0.0009s) ========
4221== 20190313000000 RequestRawConfigsCreate: migrating ==========================
4222-- create_table(:request_raw_configs, {:id=>:integer})
4223 -> 0.0046s
4224-- add_index(:request_raw_configs, [:repository_id, :key])
4225 -> 0.0018s
4226-- create_table(:request_raw_configurations, {:id=>:integer})
4227 -> 0.0043s
4228-- add_index(:request_raw_configurations, :request_id)
4229 -> 0.0018s
4230-- add_index(:request_raw_configurations, :request_raw_config_id)
4231 -> 0.0017s
4232== 20190313000000 RequestRawConfigsCreate: migrated (0.0144s) =================
4234== 20190329093854 CreateGatekeeperWorkers: migrating ==========================
4235-- create_table(:gatekeeper_workers)
4236 -> 0.0028s
4237-- execute("INSERT INTO gatekeeper_workers(id) SELECT generate_series(1,200) as id;")
4238 -> 0.0007s
4239== 20190329093854 CreateGatekeeperWorkers: migrated (0.0036s) =================
4241== 20190409133118 AddUniqueNumberColumnToBuilds: migrating ====================
4242-- add_column(:builds, :unique_number, :int)
4243 -> 0.0007s
4244== 20190409133118 AddUniqueNumberColumnToBuilds: migrated (0.0008s) ===========
4246== 20190409133320 AddSetUniqueNumberTriggerToBuilds: migrating ================
4247-- 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")
4248 -> 0.0008s
4249== 20190409133320 AddSetUniqueNumberTriggerToBuilds: migrated (0.0009s) =======
4251== 20190409133444 CreateUniqueIndexOnRepositoryIdAndNumberOnBuilds: migrating =
4252-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_builds_repository_id_unique_number ON builds(repository_id, unique_number) WHERE unique_number IS NOT NULL")
4253 -> 0.0040s
4254== 20190409133444 CreateUniqueIndexOnRepositoryIdAndNumberOnBuilds: migrated (0.0041s)
4256== 20190410121039 MakeSetUniqueNumberTriggerRunOnlyOnInsert: migrating ========
4257-- 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")
4258 -> 0.0009s
4259== 20190410121039 MakeSetUniqueNumberTriggerRunOnlyOnInsert: migrated (0.0010s)
4261== 20190416071629 RemoveUniqueNameFromBranches: migrating =====================
4262-- execute("drop index concurrently index_branches_repository_id_unique_name;")
4263 -> 0.0022s
4264-- execute("DROP TRIGGER IF EXISTS set_unique_name_on_branches ON branches;\nDROP FUNCTION IF EXISTS set_unique_name();\n\n")
4265 -> 0.0009s
4266-- remove_column(:branches, :unique_name)
4267 -> 0.0009s
4268== 20190416071629 RemoveUniqueNameFromBranches: migrated (0.0042s) ============
4270== 20190417072423 AlterBuildsUniqueNumberIndex: migrating =====================
4271-- 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")
4272 -> 0.0041s
4273-- execute("DROP INDEX CONCURRENTLY index_builds_repository_id_unique_number")
4274 -> 0.0021s
4275-- execute("ALTER INDEX index_builds_repository_id_unique_number_new RENAME TO index_builds_repository_id_unique_number")
4276 -> 0.0008s
4277== 20190417072423 AlterBuildsUniqueNumberIndex: migrated (0.0070s) ============
4279== 20190417072838 ReinstallSetUniqueNumberTrigger: migrating ==================
4280-- execute("DROP TRIGGER IF EXISTS set_unique_number_on_builds ON builds;\nDROP FUNCTION IF EXISTS set_unique_number();\n")
4281 -> 0.0035s
4282-- 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")
4283 -> 0.0007s
4284== 20190417072838 ReinstallSetUniqueNumberTrigger: migrated (0.0099s) =========
4286== 20190502175059 AddMergeableStateToPullRequests: migrating ==================
4287-- add_column(:pull_requests, :mergeable_state, :string)
4288 -> 0.0014s
4289== 20190502175059 AddMergeableStateToPullRequests: migrated (0.0016s) =========
4291== 20190510121000 AddReposIndexOnLowerOwnerNameAndName: migrating =============
4292-- 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")
4293 -> 0.0049s
4294== 20190510121000 AddReposIndexOnLowerOwnerNameAndName: migrated (0.0050s) ====
4296== 20190605121000 AddHistoryMigrationStatusToRepositories: migrating ==========
4297-- add_column(:repositories, :history_migration_status, :string)
4298 -> 0.0022s
4299== 20190605121000 AddHistoryMigrationStatusToRepositories: migrated (0.0024s) =
4301== 20190605155459 AddPullRequestMergeableToRequests: migrating ================
4302-- add_column(:requests, :pull_request_mergeable, :string)
4303 -> 0.0024s
4304== 20190605155459 AddPullRequestMergeableToRequests: migrated (0.0025s) =======
4306== 20190613120000 SoftDeleteRepositoryAlongWithItsData: migrating =============
4307-- execute("create table if not exists deleted_builds (like builds)")
4308 -> 0.0044s
4309-- execute("create table if not exists deleted_stages (like stages)")
4310 -> 0.0030s
4311-- execute("create table if not exists deleted_jobs (like jobs)")
4312 -> 0.0035s
4313-- execute("create table if not exists deleted_requests (like requests)")
4314 -> 0.0034s
4315-- execute("create table if not exists deleted_commits (like commits)")
4316 -> 0.0029s
4317-- execute("create table if not exists deleted_pull_requests (like pull_requests)")
4318 -> 0.0030s
4319-- execute("create table if not exists deleted_job_configs (like job_configs)")
4320 -> 0.0029s
4321-- execute("create table if not exists deleted_build_configs (like build_configs)")
4322 -> 0.0029s
4323-- execute("create table if not exists deleted_request_configs (like request_configs)")
4324 -> 0.0025s
4325-- execute("create table if not exists deleted_request_payloads (like request_payloads)")
4326 -> 0.0026s
4327-- execute("create table if not exists deleted_ssl_keys (like ssl_keys)")
4328 -> 0.0024s
4329-- execute("create table if not exists deleted_tags (like tags)")
4330 -> 0.0026s
4331-- 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")
4332 -> 0.0021s
4333== 20190613120000 SoftDeleteRepositoryAlongWithItsData: migrated (0.0393s) ====
4335== 20190618082559 AddVcsTypeToUser: migrating =================================
4336-- add_column(:users, :vcs_type, :string, {:default=>nil})
4337 -> 0.0011s
4338-- execute("ALTER TABLE users ALTER COLUMN vcs_type SET DEFAULT 'GithubUser'")
4339 -> 0.0004s
4340-- select_value("SELECT id FROM users ORDER BY id DESC LIMIT 1")
4341 -> 0.0006s
4342-- execute("UPDATE users SET vcs_type = 'GithubUser' WHERE id BETWEEN 0 AND 5000")
4343 -> 0.0009s
4344== 20190618082559 AddVcsTypeToUser: migrated (0.0044s) ========================
4346== 20190701082559 AddVcsTypeToRepository: migrating ===========================
4347-- add_column(:repositories, :vcs_type, :string, {:default=>nil})
4348 -> 0.0026s
4349-- execute("ALTER TABLE repositories ALTER COLUMN vcs_type SET DEFAULT 'GithubRepository'")
4350 -> 0.0009s
4351-- select_value("SELECT id FROM repositories ORDER BY id DESC LIMIT 1")
4352 -> 0.0012s
4353-- execute("UPDATE repositories SET vcs_type = 'GithubRepository' WHERE id BETWEEN 0 AND 5000")
4354 -> 0.0016s
4355== 20190701082559 AddVcsTypeToRepository: migrated (0.0088s) ==================
4357== 20190704082559 AddVcsTypeToOrganization: migrating =========================
4358-- add_column(:organizations, :vcs_type, :string, {:default=>nil})
4359 -> 0.0031s
4360-- execute("ALTER TABLE organizations ALTER COLUMN vcs_type SET DEFAULT 'GithubOrganization'")
4361 -> 0.0010s
4362-- select_value("SELECT id FROM organizations ORDER BY id DESC LIMIT 1")
4363 -> 0.0010s
4364-- execute("UPDATE organizations SET vcs_type = 'GithubOrganization' WHERE id BETWEEN 0 AND 5000")
4365 -> 0.0014s
4366== 20190704082559 AddVcsTypeToOrganization: migrated (0.0091s) ================
4368== 20190718092750 AddDeleteCascadeToForeignKeys: migrating ====================
4369-- execute("ALTER TABLE builds ADD CONSTRAINT fk_new_builds_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) ON DELETE CASCADE NOT VALID")
4370 -> 0.0026s
4371-- execute("ALTER TABLE builds ADD CONSTRAINT fk_new_builds_on_commit_id FOREIGN KEY (commit_id) REFERENCES commits(id) ON DELETE CASCADE NOT VALID")
4372 -> 0.0013s
4373-- execute("ALTER TABLE builds ADD CONSTRAINT fk_new_builds_on_request_id FOREIGN KEY (request_id) REFERENCES requests(id) ON DELETE CASCADE NOT VALID")
4374 -> 0.0014s
4375-- 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")
4376 -> 0.0013s
4377-- execute("ALTER TABLE builds ADD CONSTRAINT fk_new_builds_on_branch_id FOREIGN KEY (branch_id) REFERENCES branches(id) ON DELETE CASCADE NOT VALID")
4378 -> 0.0012s
4379-- execute("ALTER TABLE builds ADD CONSTRAINT fk_new_builds_on_tag_id FOREIGN KEY (tag_id) REFERENCES tags(id) ON DELETE CASCADE NOT VALID")
4380 -> 0.0014s
4381-- 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")
4382 -> 0.0012s
4383-- execute("ALTER TABLE jobs ADD CONSTRAINT fk_new_jobs_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) ON DELETE CASCADE NOT VALID")
4384 -> 0.0014s
4385-- execute("ALTER TABLE jobs ADD CONSTRAINT fk_new_jobs_on_commit_id FOREIGN KEY (commit_id) REFERENCES commits(id) ON DELETE CASCADE NOT VALID")
4386 -> 0.0012s
4387-- execute("ALTER TABLE jobs ADD CONSTRAINT fk_new_jobs_on_stage_id FOREIGN KEY (stage_id) REFERENCES stages(id) ON DELETE CASCADE NOT VALID")
4388 -> 0.0012s
4389-- 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")
4390 -> 0.0012s
4391-- execute("ALTER TABLE branches ADD CONSTRAINT fk_new_branches_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) ON DELETE CASCADE NOT VALID")
4392 -> 0.0051s
4393-- execute("ALTER TABLE tags ADD CONSTRAINT fk_new_tags_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) ON DELETE CASCADE NOT VALID")
4394 -> 0.0008s
4395-- execute("ALTER TABLE commits ADD CONSTRAINT fk_new_commits_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) ON DELETE CASCADE NOT VALID")
4396 -> 0.0007s
4397-- execute("ALTER TABLE commits ADD CONSTRAINT fk_new_commits_on_branch_id FOREIGN KEY (branch_id) REFERENCES branches(id) ON DELETE CASCADE NOT VALID")
4398 -> 0.0007s
4399-- execute("ALTER TABLE commits ADD CONSTRAINT fk_new_commits_on_tag_id FOREIGN KEY (tag_id) REFERENCES tags(id) ON DELETE CASCADE NOT VALID")
4400 -> 0.0007s
4401-- execute("ALTER TABLE crons ADD CONSTRAINT fk_new_crons_on_branch_id FOREIGN KEY (branch_id) REFERENCES branches(id) ON DELETE CASCADE NOT VALID")
4402 -> 0.0007s
4403-- 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")
4404 -> 0.0010s
4405-- 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")
4406 -> 0.0010s
4407-- 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")
4408 -> 0.0011s
4409-- 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")
4410 -> 0.0013s
4411-- execute("ALTER TABLE requests ADD CONSTRAINT fk_new_requests_on_commit_id FOREIGN KEY (commit_id) REFERENCES commits(id) ON DELETE CASCADE NOT VALID")
4412 -> 0.0013s
4413-- 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")
4414 -> 0.0011s
4415-- execute("ALTER TABLE requests ADD CONSTRAINT fk_new_requests_on_branch_id FOREIGN KEY (branch_id) REFERENCES branches(id) ON DELETE CASCADE NOT VALID")
4416 -> 0.0011s
4417-- execute("ALTER TABLE requests ADD CONSTRAINT fk_new_requests_on_tag_id FOREIGN KEY (tag_id) REFERENCES tags(id) ON DELETE CASCADE NOT VALID")
4418 -> 0.0008s
4419-- 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")
4420 -> 0.0014s
4421-- execute("ALTER TABLE stages ADD CONSTRAINT fk_new_stages_on_build_id FOREIGN KEY (build_id) REFERENCES builds(id) ON DELETE CASCADE NOT VALID")
4422 -> 0.0018s
4423-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_new_builds_on_repository_id")
4424 -> 0.0022s
4425-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_new_builds_on_commit_id")
4426 -> 0.0023s
4427-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_new_builds_on_request_id")
4428 -> 0.0024s
4429-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_new_builds_on_pull_request_id")
4430 -> 0.0014s
4431-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_new_builds_on_branch_id")
4432 -> 0.0013s
4433-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_new_builds_on_tag_id")
4434 -> 0.0013s
4435-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_new_builds_on_config_id")
4436 -> 0.0011s
4437-- execute("ALTER TABLE jobs VALIDATE CONSTRAINT fk_new_jobs_on_repository_id")
4438 -> 0.0013s
4439-- execute("ALTER TABLE jobs VALIDATE CONSTRAINT fk_new_jobs_on_commit_id")
4440 -> 0.0011s
4441-- execute("ALTER TABLE jobs VALIDATE CONSTRAINT fk_new_jobs_on_stage_id")
4442 -> 0.0010s
4443-- execute("ALTER TABLE jobs VALIDATE CONSTRAINT fk_new_jobs_on_config_id")
4444 -> 0.0011s
4445-- execute("ALTER TABLE branches VALIDATE CONSTRAINT fk_new_branches_on_repository_id")
4446 -> 0.0011s
4447-- execute("ALTER TABLE tags VALIDATE CONSTRAINT fk_new_tags_on_repository_id")
4448 -> 0.0010s
4449-- execute("ALTER TABLE commits VALIDATE CONSTRAINT fk_new_commits_on_repository_id")
4450 -> 0.0010s
4451-- execute("ALTER TABLE commits VALIDATE CONSTRAINT fk_new_commits_on_branch_id")
4452 -> 0.0009s
4453-- execute("ALTER TABLE commits VALIDATE CONSTRAINT fk_new_commits_on_tag_id")
4454 -> 0.0009s
4455-- execute("ALTER TABLE crons VALIDATE CONSTRAINT fk_new_crons_on_branch_id")
4456 -> 0.0009s
4457-- execute("ALTER TABLE job_configs VALIDATE CONSTRAINT fk_new_job_configs_on_repository_id")
4458 -> 0.0009s
4459-- execute("ALTER TABLE build_configs VALIDATE CONSTRAINT fk_new_build_configs_on_repository_id")
4460 -> 0.0009s
4461-- execute("ALTER TABLE pull_requests VALIDATE CONSTRAINT fk_new_pull_requests_on_repository_id")
4462 -> 0.0010s
4463-- execute("ALTER TABLE ssl_keys VALIDATE CONSTRAINT fk_new_ssl_keys_on_repository_id")
4464 -> 0.0009s
4465-- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_new_requests_on_commit_id")
4466 -> 0.0011s
4467-- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_new_requests_on_pull_request_id")
4468 -> 0.0010s
4469-- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_new_requests_on_branch_id")
4470 -> 0.0009s
4471-- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_new_requests_on_tag_id")
4472 -> 0.0007s
4473-- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_new_requests_on_config_id")
4474 -> 0.0009s
4475-- execute("ALTER TABLE stages VALIDATE CONSTRAINT fk_new_stages_on_build_id")
4476 -> 0.0010s
4477-- execute("ALTER TABLE builds DROP CONSTRAINT fk_builds_on_repository_id")
4478 -> 0.0051s
4479-- execute("ALTER TABLE builds DROP CONSTRAINT fk_builds_on_commit_id")
4480 -> 0.0010s
4481-- execute("ALTER TABLE builds DROP CONSTRAINT fk_builds_on_request_id")
4482 -> 0.0009s
4483-- execute("ALTER TABLE builds DROP CONSTRAINT fk_builds_on_pull_request_id")
4484 -> 0.0010s
4485-- execute("ALTER TABLE builds DROP CONSTRAINT fk_builds_on_branch_id")
4486 -> 0.0010s
4487-- execute("ALTER TABLE builds DROP CONSTRAINT fk_builds_on_tag_id")
4488 -> 0.0009s
4489-- execute("ALTER TABLE builds DROP CONSTRAINT fk_builds_on_config_id")
4490 -> 0.0009s
4491-- execute("ALTER TABLE jobs DROP CONSTRAINT fk_jobs_on_repository_id")
4492 -> 0.0011s
4493-- execute("ALTER TABLE jobs DROP CONSTRAINT fk_jobs_on_commit_id")
4494 -> 0.0010s
4495-- execute("ALTER TABLE jobs DROP CONSTRAINT fk_jobs_on_stage_id")
4496 -> 0.0009s
4497-- execute("ALTER TABLE jobs DROP CONSTRAINT fk_jobs_on_config_id")
4498 -> 0.0009s
4499-- execute("ALTER TABLE branches DROP CONSTRAINT fk_branches_on_repository_id")
4500 -> 0.0010s
4501-- execute("ALTER TABLE tags DROP CONSTRAINT fk_tags_on_repository_id")
4502 -> 0.0008s
4503-- execute("ALTER TABLE commits DROP CONSTRAINT fk_commits_on_repository_id")
4504 -> 0.0007s
4505-- execute("ALTER TABLE commits DROP CONSTRAINT fk_commits_on_branch_id")
4506 -> 0.0006s
4507-- execute("ALTER TABLE commits DROP CONSTRAINT fk_commits_on_tag_id")
4508 -> 0.0006s
4509-- execute("ALTER TABLE crons DROP CONSTRAINT fk_crons_on_branch_id")
4510 -> 0.0006s
4511-- execute("ALTER TABLE job_configs DROP CONSTRAINT fk_job_configs_on_repository_id")
4512 -> 0.0007s
4513-- execute("ALTER TABLE build_configs DROP CONSTRAINT fk_build_configs_on_repository_id")
4514 -> 0.0006s
4515-- execute("ALTER TABLE pull_requests DROP CONSTRAINT fk_pull_requests_on_repository_id")
4516 -> 0.0007s
4517-- execute("ALTER TABLE ssl_keys DROP CONSTRAINT fk_ssl_keys_on_repository_id")
4518 -> 0.0006s
4519-- execute("ALTER TABLE requests DROP CONSTRAINT fk_requests_on_commit_id")
4520 -> 0.0007s
4521-- execute("ALTER TABLE requests DROP CONSTRAINT fk_requests_on_pull_request_id")
4522 -> 0.0006s
4523-- execute("ALTER TABLE requests DROP CONSTRAINT fk_requests_on_branch_id")
4524 -> 0.0007s
4525-- execute("ALTER TABLE requests DROP CONSTRAINT fk_requests_on_tag_id")
4526 -> 0.0006s
4527-- execute("ALTER TABLE requests DROP CONSTRAINT fk_requests_on_config_id")
4528 -> 0.0006s
4529-- execute("ALTER TABLE stages DROP CONSTRAINT fk_stages_on_build_id")
4530 -> 0.0006s
4531-- execute("ALTER TABLE builds RENAME CONSTRAINT fk_new_builds_on_repository_id TO fk_builds_on_repository_id")
4532 -> 0.0004s
4533-- execute("ALTER TABLE builds RENAME CONSTRAINT fk_new_builds_on_commit_id TO fk_builds_on_commit_id")
4534 -> 0.0004s
4535-- execute("ALTER TABLE builds RENAME CONSTRAINT fk_new_builds_on_request_id TO fk_builds_on_request_id")
4536 -> 0.0004s
4537-- execute("ALTER TABLE builds RENAME CONSTRAINT fk_new_builds_on_pull_request_id TO fk_builds_on_pull_request_id")
4538 -> 0.0003s
4539-- execute("ALTER TABLE builds RENAME CONSTRAINT fk_new_builds_on_branch_id TO fk_builds_on_branch_id")
4540 -> 0.0005s
4541-- execute("ALTER TABLE builds RENAME CONSTRAINT fk_new_builds_on_tag_id TO fk_builds_on_tag_id")
4542 -> 0.0004s
4543-- execute("ALTER TABLE builds RENAME CONSTRAINT fk_new_builds_on_config_id TO fk_builds_on_config_id")
4544 -> 0.0004s
4545-- execute("ALTER TABLE jobs RENAME CONSTRAINT fk_new_jobs_on_repository_id TO fk_jobs_on_repository_id")
4546 -> 0.0003s
4547-- execute("ALTER TABLE jobs RENAME CONSTRAINT fk_new_jobs_on_commit_id TO fk_jobs_on_commit_id")
4548 -> 0.0004s
4549-- execute("ALTER TABLE jobs RENAME CONSTRAINT fk_new_jobs_on_stage_id TO fk_jobs_on_stage_id")
4550 -> 0.0005s
4551-- execute("ALTER TABLE jobs RENAME CONSTRAINT fk_new_jobs_on_config_id TO fk_jobs_on_config_id")
4552 -> 0.0005s
4553-- execute("ALTER TABLE branches RENAME CONSTRAINT fk_new_branches_on_repository_id TO fk_branches_on_repository_id")
4554 -> 0.0004s
4555-- execute("ALTER TABLE tags RENAME CONSTRAINT fk_new_tags_on_repository_id TO fk_tags_on_repository_id")
4556 -> 0.0003s
4557-- execute("ALTER TABLE commits RENAME CONSTRAINT fk_new_commits_on_repository_id TO fk_commits_on_repository_id")
4558 -> 0.0004s
4559-- execute("ALTER TABLE commits RENAME CONSTRAINT fk_new_commits_on_branch_id TO fk_commits_on_branch_id")
4560 -> 0.0004s
4561-- execute("ALTER TABLE commits RENAME CONSTRAINT fk_new_commits_on_tag_id TO fk_commits_on_tag_id")
4562 -> 0.0003s
4563-- execute("ALTER TABLE crons RENAME CONSTRAINT fk_new_crons_on_branch_id TO fk_crons_on_branch_id")
4564 -> 0.0003s
4565-- execute("ALTER TABLE job_configs RENAME CONSTRAINT fk_new_job_configs_on_repository_id TO fk_job_configs_on_repository_id")
4566 -> 0.0004s
4567-- execute("ALTER TABLE build_configs RENAME CONSTRAINT fk_new_build_configs_on_repository_id TO fk_build_configs_on_repository_id")
4568 -> 0.0005s
4569-- execute("ALTER TABLE pull_requests RENAME CONSTRAINT fk_new_pull_requests_on_repository_id TO fk_pull_requests_on_repository_id")
4570 -> 0.0005s
4571-- execute("ALTER TABLE ssl_keys RENAME CONSTRAINT fk_new_ssl_keys_on_repository_id TO fk_ssl_keys_on_repository_id")
4572 -> 0.0003s
4573-- execute("ALTER TABLE requests RENAME CONSTRAINT fk_new_requests_on_commit_id TO fk_requests_on_commit_id")
4574 -> 0.0007s
4575-- execute("ALTER TABLE requests RENAME CONSTRAINT fk_new_requests_on_pull_request_id TO fk_requests_on_pull_request_id")
4576 -> 0.0006s
4577-- execute("ALTER TABLE requests RENAME CONSTRAINT fk_new_requests_on_branch_id TO fk_requests_on_branch_id")
4578 -> 0.0006s
4579-- execute("ALTER TABLE requests RENAME CONSTRAINT fk_new_requests_on_tag_id TO fk_requests_on_tag_id")
4580 -> 0.0006s
4581-- execute("ALTER TABLE requests RENAME CONSTRAINT fk_new_requests_on_config_id TO fk_requests_on_config_id")
4582 -> 0.0007s
4583-- execute("ALTER TABLE stages RENAME CONSTRAINT fk_new_stages_on_build_id TO fk_stages_on_build_id")
4584 -> 0.0006s
4585== 20190718092750 AddDeleteCascadeToForeignKeys: migrated (0.1085s) ===========
4587== 20190718100426 UpdateSoftDeleteProcedure: migrating ========================
4588-- 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")
4589 -> 0.0019s
4590== 20190718100426 UpdateSoftDeleteProcedure: migrated (0.0021s) ===============
4592== 20190725103113 UpdateSoftDelete: migrating =================================
4593-- execute("create table deleted_request_yaml_configs (like request_yaml_configs)")
4594 -> 0.0032s
4595-- 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")
4596 -> 0.0014s
4597== 20190725103113 UpdateSoftDelete: migrated (0.0047s) ========================
4599== 20190725105934 AddOrgIdToConfigs: migrating ================================
4600-- add_column(:job_configs, :org_id, :bigint)
4601 -> 0.0010s
4602-- add_column(:deleted_job_configs, :org_id, :bigint)
4603 -> 0.0010s
4604-- add_column(:build_configs, :org_id, :bigint)
4605 -> 0.0009s
4606-- add_column(:deleted_build_configs, :org_id, :bigint)
4607 -> 0.0010s
4608-- add_column(:request_configs, :org_id, :bigint)
4609 -> 0.0010s
4610-- add_column(:deleted_request_configs, :org_id, :bigint)
4611 -> 0.0010s
4612-- add_column(:request_yaml_configs, :org_id, :bigint)
4613 -> 0.0009s
4614-- add_column(:deleted_request_yaml_configs, :org_id, :bigint)
4615 -> 0.0009s
4616-- add_column(:request_payloads, :org_id, :bigint)
4617 -> 0.0009s
4618-- add_column(:deleted_request_payloads, :org_id, :bigint)
4619 -> 0.0009s
4620-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_job_configs_on_org_id ON job_configs (org_id)")
4621 -> 0.0045s
4622-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_build_configs_on_org_id ON build_configs (org_id)")
4623 -> 0.0036s
4624-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_request_configs_on_org_id ON request_configs (org_id)")
4625 -> 0.0037s
4626-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_request_yaml_configs_on_org_id ON request_yaml_configs (org_id)")
4627 -> 0.0038s
4628-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_request_payloads_on_org_id ON request_payloads (org_id)")
4629 -> 0.0035s
4630== 20190725105934 AddOrgIdToConfigs: migrated (0.0291s) =======================
4632== 20190729105934 AddOrgAndComIdsToRawConfigs: migrating ======================
4633-- add_column(:request_raw_configs, :org_id, :bigint)
4634 -> 0.0009s
4635-- add_column(:request_raw_configurations, :org_id, :bigint)
4636 -> 0.0009s
4637-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_request_raw_configs_on_org_id ON request_raw_configs (org_id)")
4638 -> 0.0034s
4639-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_request_raw_configurations_on_org_id ON request_raw_configurations (org_id)")
4640 -> 0.0033s
4641== 20190729105934 AddOrgAndComIdsToRawConfigs: migrated (0.0086s) =============
4643== 20190801120510 AddMoreDeletedTables: migrating =============================
4644-- execute("create table if not exists deleted_request_raw_configs (like request_raw_configs)")
4645 -> 0.0029s
4646-- execute("create table if not exists deleted_request_raw_configurations (like request_raw_configurations)")
4647 -> 0.0025s
4648-- 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")
4649 -> 0.0015s
4650== 20190801120510 AddMoreDeletedTables: migrated (0.0071s) ====================
4652== 20190815152336 AddComIdToMoreTables: migrating =============================
4653-- add_column(:request_configs, :com_id, :bigint)
4654 -> 0.0010s
4655-- add_column(:request_yaml_configs, :com_id, :bigint)
4656 -> 0.0009s
4657-- add_column(:deleted_request_configs, :com_id, :bigint)
4658 -> 0.0009s
4659-- add_column(:deleted_request_yaml_configs, :com_id, :bigint)
4660 -> 0.0009s
4661-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_request_configs_on_com_id ON request_configs (com_id)")
4662 -> 0.0038s
4663-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_request_yaml_configs_on_com_id ON request_yaml_configs (com_id)")
4664 -> 0.0035s
4665== 20190815152336 AddComIdToMoreTables: migrated (0.0112s) ====================
4667== 20190815164320 AddComIdToBuildConfigs: migrating ===========================
4668-- add_column(:build_configs, :com_id, :bigint)
4669 -> 0.0009s
4670-- add_column(:deleted_build_configs, :com_id, :bigint)
4671 -> 0.0009s
4672-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_build_configs_on_com_id ON build_configs (com_id)")
4673 -> 0.0038s
4674== 20190815164320 AddComIdToBuildConfigs: migrated (0.0058s) ==================
4676== 20190815172205 AddComIdToJobConfigs: migrating =============================
4677-- add_column(:job_configs, :com_id, :bigint)
4678 -> 0.0009s
4679-- add_column(:deleted_job_configs, :com_id, :bigint)
4680 -> 0.0009s
4681-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_job_configs_on_com_id ON job_configs (com_id)")
4682 -> 0.0035s
4683== 20190815172205 AddComIdToJobConfigs: migrated (0.0054s) ====================
4685== 20190819082558 AddVcsIdToUser: migrating ===================================
4686-- add_column(:users, :vcs_id, :string, {:default=>nil})
4687 -> 0.0012s
4688-- execute("CREATE INDEX CONCURRENTLY index_users_on_vcs_id_and_vcs_type ON users (vcs_id, vcs_type);")
4689 -> 0.0039s
4690== 20190819082558 AddVcsIdToUser: migrated (0.0052s) ==========================
4692== 20190819082559 AddVcsIdToRepository: migrating =============================
4693-- add_column(:repositories, :vcs_id, :string, {:default=>nil})
4694 -> 0.0014s
4695-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_vcs_id_and_vcs_type ON repositories (vcs_id, vcs_type);")
4696 -> 0.0041s
4697== 20190819082559 AddVcsIdToRepository: migrated (0.0056s) ====================
4699== 20190820082431 AddVcsIdToOrganization: migrating ===========================
4700-- add_column(:organizations, :vcs_id, :string, {:default=>nil})
4701 -> 0.0015s
4702-- execute("CREATE INDEX CONCURRENTLY index_organizations_on_vcs_id_and_vcs_type ON organizations (vcs_id, vcs_type);")
4703 -> 0.0041s
4704== 20190820082431 AddVcsIdToOrganization: migrated (0.0057s) ==================
4706== 20190913092543 CopyVcsIdForRepository: migrating ===========================
4707-- select_value("SELECT id FROM repositories ORDER BY id DESC LIMIT 1")
4708 -> 0.0008s
4709-- execute("UPDATE \"repositories\" SET vcs_id = github_id WHERE id BETWEEN 0 AND 5000")
4710 -> 0.0008s
4711== 20190913092543 CopyVcsIdForRepository: migrated (0.0018s) ==================
4713== 20190913092554 CopyVcsIdForUser: migrating =================================
4714-- select_value("SELECT id FROM users ORDER BY id DESC LIMIT 1")
4715 -> 0.0006s
4716-- execute("UPDATE \"users\" SET vcs_id = github_id WHERE id BETWEEN 0 AND 5000")
4717 -> 0.0006s
4718== 20190913092554 CopyVcsIdForUser: migrated (0.0015s) ========================
4720== 20190913092565 CopyVcsIdForOrganization: migrating =========================
4721-- select_value("SELECT id FROM organizations ORDER BY id DESC LIMIT 1")
4722 -> 0.0006s
4723-- execute("UPDATE \"organizations\" SET vcs_id = github_id WHERE id BETWEEN 0 AND 5000")
4724 -> 0.0006s
4725== 20190913092565 CopyVcsIdForOrganization: migrated (0.0015s) ================
4727== 20190920160300 MessagesAddTypeSourceLine: migrating ========================
4728-- add_column(:messages, :type, :string, {:default=>nil})
4729 -> 0.0014s
4730-- add_column(:messages, :src, :string, {:default=>nil})
4731 -> 0.0013s
4732-- add_column(:messages, :line, :integer, {:default=>nil})
4733 -> 0.0013s
4734== 20190920160300 MessagesAddTypeSourceLine: migrated (0.0041s) ===============
4736== 20191112000000 ReposAddFork: migrating =====================================
4737-- add_column(:repositories, :fork, :boolean, {:default=>nil})
4738 -> 0.0013s
4739== 20191112000000 ReposAddFork: migrated (0.0014s) ============================
4741== 20191112172015 AddVcsIndexToRepositories: migrating ========================
4742-- add_index(:repositories, [:vcs_type, :vcs_id], {:algorithm=>:concurrently})
4743 -> 0.0043s
4744== 20191112172015 AddVcsIndexToRepositories: migrated (0.0044s) ===============
4746== 20191112172332 AddVcsIndexToUsers: migrating ===============================
4747-- add_index(:users, [:vcs_type, :vcs_id], {:algorithm=>:concurrently})
4748 -> 0.0040s
4749== 20191112172332 AddVcsIndexToUsers: migrated (0.0040s) ======================
4751== 20191219091445 AddHeadRepoVcsIdToPullRequest: migrating ====================
4752-- add_column(:pull_requests, :head_repo_vcs_id, :string, {:default=>nil})
4753 -> 0.0013s
4754-- execute("CREATE INDEX CONCURRENTLY index_pull_requests_on_head_repo_vcs_id ON pull_requests (head_repo_vcs_id);")
4755 -> 0.0038s
4756== 20191219091445 AddHeadRepoVcsIdToPullRequest: migrated (0.0052s) ===========
4758== 20191219091446 AddHeadRepoVcsIdToDeletedPullRequest: migrating =============
4759-- add_column(:deleted_pull_requests, :head_repo_vcs_id, :string, {:default=>nil})
4760 -> 0.0015s
4761-- execute("CREATE INDEX CONCURRENTLY index_deleted_pull_requests_on_head_repo_vcs_id ON deleted_pull_requests (head_repo_vcs_id);")
4762 -> 0.0038s
4763== 20191219091446 AddHeadRepoVcsIdToDeletedPullRequest: migrated (0.0054s) ====
4765== 20200122000000 AddConfigsJson: migrating ===================================
4766-- add_column(:request_configs, :config_json, :json)
4767 -> 0.0007s
4768-- add_column(:build_configs, :config_json, :json)
4769 -> 0.0004s
4770-- add_column(:job_configs, :config_json, :json)
4771 -> 0.0004s
4772-- add_column(:deleted_request_configs, :config_json, :json)
4773 -> 0.0005s
4774-- add_column(:deleted_build_configs, :config_json, :json)
4775 -> 0.0004s
4776-- add_column(:deleted_job_configs, :config_json, :json)
4777 -> 0.0004s
4778== 20200122000000 AddConfigsJson: migrated (0.0031s) ==========================
4780== 20200127000000 DropJobConfigsGpu: migrating ================================
4781-- execute("DROP MATERIALIZED VIEW job_configs_gpu\n")
4782 -> 0.0009s
4783== 20200127000000 DropJobConfigsGpu: migrated (0.0009s) =======================
4785== 20200127000001 RenameConfigsJson: migrating ================================
4786-- remove_column(:request_configs, :config)
4787 -> 0.0007s
4788-- rename_column(:request_configs, :config_json, :config)
4789 -> 0.0032s
4790-- remove_column(:build_configs, :config)
4791 -> 0.0006s
4792-- rename_column(:build_configs, :config_json, :config)
4793 -> 0.0043s
4794-- remove_column(:job_configs, :config)
4795 -> 0.0006s
4796-- rename_column(:job_configs, :config_json, :config)
4797 -> 0.0039s
4798-- remove_column(:deleted_request_configs, :config)
4799 -> 0.0005s
4800-- rename_column(:deleted_request_configs, :config_json, :config)
4801 -> 0.0015s
4802-- remove_column(:deleted_build_configs, :config)
4803 -> 0.0005s
4804-- rename_column(:deleted_build_configs, :config_json, :config)
4805 -> 0.0012s
4806-- remove_column(:deleted_job_configs, :config)
4807 -> 0.0004s
4808-- rename_column(:deleted_job_configs, :config_json, :config)
4809 -> 0.0011s
4810== 20200127000001 RenameConfigsJson: migrated (0.0188s) =======================
4812== 20200214144655 AddIndexToJobVersionsOnJobId: migrating =====================
4813-- add_index(:job_versions, :job_id, {:algorithm=>:concurrently})
4814 -> 0.0041s
4815== 20200214144655 AddIndexToJobVersionsOnJobId: migrated (0.0041s) ============
4817== 20200225085734 AddVcsSlugToRepository: migrating ===========================
4818-- add_column(:repositories, :vcs_slug, :string, {:default=>nil})
4819 -> 0.0015s
4820== 20200225085734 AddVcsSlugToRepository: migrated (0.0016s) ==================
4822== 20200227085734 AddVcsSourceHostToRepository: migrating =====================
4823-- add_column(:repositories, :vcs_source_host, :string, {:default=>nil})
4824 -> 0.0014s
4825== 20200227085734 AddVcsSourceHostToRepository: migrated (0.0015s) ============
4827== 20200227085736 AddVcsIndexes: migrating ====================================
4828-- 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")
4829 -> 0.0045s
4830== 20200227085736 AddVcsIndexes: migrated (0.0045s) ===========================
4832== 20200227085737 AddRepositoryNameAndSlugIndex: migrating ====================
4833-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_slug_or_names ON repositories (vcs_slug, owner_name, name) WHERE invalidated_at IS NULL")
4834 -> 0.0042s
4835== 20200227085737 AddRepositoryNameAndSlugIndex: migrated (0.0042s) ===========
4837== 20200227085742 AddPullRequestSourceData: migrating =========================
4838-- add_column(:pull_requests, :base_repo_slug, :string, {:default=>nil})
4839 -> 0.0013s
4840-- add_column(:pull_requests, :base_repo_vcs_id, :string, {:default=>nil})
4841 -> 0.0013s
4842-- add_column(:pull_requests, :base_ref, :string, {:default=>nil})
4843 -> 0.0013s
4844-- add_column(:deleted_pull_requests, :base_repo_slug, :string, {:default=>nil})
4845 -> 0.0012s
4846-- add_column(:deleted_pull_requests, :base_repo_vcs_id, :string, {:default=>nil})
4847 -> 0.0013s
4848-- add_column(:deleted_pull_requests, :base_ref, :string, {:default=>nil})
4849 -> 0.0012s
4850== 20200227085742 AddPullRequestSourceData: migrated (0.0078s) ================
4852== 20200312184018 AddUserUtmParamsTable: migrating ============================
4853-- create_table(:user_utm_params)
4854 -> 0.0077s
4855== 20200312184018 AddUserUtmParamsTable: migrated (0.0078s) ===================
4857== 20200316085738 AddRepositoryVcsSlugIndex: migrating ========================
4858-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_lower_vcs_slug ON repositories (LOWER(vcs_slug))")
4859 -> 0.0041s
4860-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_lower_vcs_slug_valid ON repositories (LOWER(vcs_slug)) WHERE invalidated_at IS NULL")
4861 -> 0.0042s
4862== 20200316085738 AddRepositoryVcsSlugIndex: migrated (0.0083s) ===============
4864== 20200325115329 AddMultipleJobStateIndexesOrderByNewest: migrating ==========
4865-- 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'")
4866 -> 0.0042s
4867-- 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'")
4868 -> 0.0039s
4869-- 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'")
4870 -> 0.0037s
4871-- 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'")
4872 -> 0.0037s
4873-- 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'")
4874 -> 0.0037s
4875-- 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'")
4876 -> 0.0037s
4877-- 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'")
4878 -> 0.0039s
4879-- 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'")
4880 -> 0.0038s
4881-- 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'")
4882 -> 0.0037s
4883== 20200325115329 AddMultipleJobStateIndexesOrderByNewest: migrated (0.0345s) =
4885== 20200325130013 AddFunctionMostRecentJobIdsForUserRepositoriesByStates: migrating
4886-- 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 ")
4887 -> 0.0010s
4888== 20200325130013 AddFunctionMostRecentJobIdsForUserRepositoriesByStates: migrated (0.0011s)
4890== 20200330110527 AddFunctionMostRecentJobIdsForRepositoryByState: migrating ==
4891-- 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 ")
4892 -> 0.0007s
4893== 20200330110527 AddFunctionMostRecentJobIdsForRepositoryByState: migrated (0.0008s)
4895== 20200406121218 AddIndexJobsOnRepositoryIdOrderByNewest: migrating ==========
4896-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_jobs_on_repository_id_order_by_newest on jobs (repository_id, id desc)")
4897 -> 0.0037s
4898== 20200406121218 AddIndexJobsOnRepositoryIdOrderByNewest: migrated (0.0037s) =
4900== 20200424000000 RequestRawConfigurationsAddMergeMode: migrating =============
4901-- add_column(:request_raw_configurations, :merge_mode, :string, {:default=>nil})
4902 -> 0.0016s
4903-- add_column(:deleted_request_raw_configurations, :merge_mode, :string, {:default=>nil})
4904 -> 0.0026s
4905== 20200424000000 RequestRawConfigurationsAddMergeMode: migrated (0.0043s) ====
4907== 20200527123653 AddColumnPriorityToTableJobsAndDeletedJobs: migrating =======
4908-- add_column(:jobs, :priority, :integer, {:default=>nil})
4909 -> 0.0016s
4910-- add_column(:deleted_jobs, :priority, :integer, {:default=>nil})
4911 -> 0.0016s
4912== 20200527123653 AddColumnPriorityToTableJobsAndDeletedJobs: migrated (0.0034s)
4914== 20200928143126 AddBuildTriggerPermissions: migrating =======================
4915-- add_column(:memberships, :build_permission, :boolean, {:default=>nil})
4916 -> 0.0015s
4917-- add_column(:permissions, :build, :boolean, {:default=>nil})
4918 -> 0.0014s
4919== 20200928143126 AddBuildTriggerPermissions: migrated (0.0031s) ==============
4921== 20202427123653 AddColumnHasLocalRegistrationToTableSubscriptions: migrating
4922-- add_column(:subscriptions, :has_local_registration, :boolean, {:default=>nil})
4923 -> 0.0015s
4924== 20202427123653 AddColumnHasLocalRegistrationToTableSubscriptions: migrated (0.0017s)
4926== 20210203130200 CreateBuildBackupsTable: migrating ==========================
4927-- create_table(:build_backups, {:id=>:integer})
4928 -> 0.0062s
4929== 20210203130200 CreateBuildBackupsTable: migrated (0.0064s) =================
4931== 20210203143155 AddConfirmationFieldsToUser: migrating ======================
4932-- add_column(:users, :confirmed_at, :timestamp, {:precision=>nil})
4933 -> 0.0013s
4934-- add_column(:users, :token_expires_at, :timestamp, {:precision=>nil})
4935 -> 0.0012s
4936-- add_column(:users, :confirmation_token, :string)
4937 -> 0.0011s
4938-- add_index(:users, :confirmation_token)
4939 -> 0.0027s
4940== 20210203143155 AddConfirmationFieldsToUser: migrated (0.0065s) =============
4942== 20210203143406 ConfirmCurrentUsers: migrating ==============================
4943== 20210203143406 ConfirmCurrentUsers: migrated (0.0000s) =====================
4945== 20210614140633 AddServerTypeToRepositories: migrating ======================
4946-- add_column(:repositories, :server_type, :string, {:limit=>20})
4947 -> 0.0010s
4948== 20210614140633 AddServerTypeToRepositories: migrated (0.0011s) =============
4950== 20220610092916 MostRecentJobIdsForUserRepositoriesByStatesLw: migrating ====
4951-- 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 ")
4952 -> 0.0011s
4953== 20220610092916 MostRecentJobIdsForUserRepositoriesByStatesLw: migrated (0.0012s)
4955== 20220621151453 AddColumnRestartedByToTableJobs: migrating ==================
4956-- add_column(:jobs, :restarted_by, :integer, {:default=>nil})
4957 -> 0.0016s
4958-- add_column(:deleted_jobs, :restarted_by, :integer, {:default=>nil})
4959 -> 0.0010s
4960== 20220621151453 AddColumnRestartedByToTableJobs: migrated (0.0027s) =========
4962== 20220722162400 CreateAuditsTable: migrating ================================
4963-- create_table(:audits)
4964 -> 0.0061s
4965== 20220722162400 CreateAuditsTable: migrated (0.0062s) =======================
4967== 20220825140522 CreateCustomKeysTable: migrating ============================
4968-- create_table(:custom_keys)
4969 -> 0.0062s
4970== 20220825140522 CreateCustomKeysTable: migrated (0.0063s) ===================
4972== 20220905144600 AddScanFailedAtToRepositories: migrating ====================
4973-- add_column(:repositories, :scan_failed_at, :timestamp)
4974 -> 0.0011s
4975== 20220905144600 AddScanFailedAtToRepositories: migrated (0.0011s) ===========
4977== 20221214171030 AddPurposeColumnToTokens: migrating =========================
4978-- add_column(:tokens, :purpose, :integer, {:limit=>4, :default=>0})
4979 -> 0.0014s
4980== 20221214171030 AddPurposeColumnToTokens: migrated (0.0015s) ================
4982== 20230208161446 AddCloneUrlToRepositories: migrating ========================
4983-- add_column(:repositories, :clone_url, :string)
4984 -> 0.0010s
4985== 20230208161446 AddCloneUrlToRepositories: migrated (0.0011s) ===============
4987== 20230505055250 RolifyCreateRoles: migrating ================================
4988-- create_table(:roles)
4989 -> 0.0087s
4990-- create_table(:role_names)
4991 -> 0.0055s
4992-- create_table(:users_roles, {:id=>false})
4993 -> 0.0056s
4994-- add_index(:roles, :name)
4995 -> 0.0024s
4996-- add_index(:role_names, :name)
4997 -> 0.0022s
4998-- add_index(:roles, [:name, :resource_type, :resource_id])
4999 -> 0.0023s
5000-- add_index(:users_roles, [:user_id, :role_id])
5001 -> 0.0022s
5002== 20230505055250 RolifyCreateRoles: migrated (0.0291s) =======================
5004== 20230505060110 CreatePolicies: migrating ===================================
5005-- create_table(:policy_permissions)
5006 -> 0.0057s
5007-- create_table(:role_permissions, {:id=>false})
5008 -> 0.0047s
5009-- add_index(:policy_permissions, :name)
5010 -> 0.0020s
5011-- add_index(:role_permissions, [:role_name_id, :policy_permission_id])
5012 -> 0.0021s
5013== 20230505060110 CreatePolicies: migrated (0.0147s) ==========================
5015== 20230713115855 CreatePermissionsSync: migrating ============================
5016-- create_table(:permissions_syncs)
5017 -> 0.0097s
5018== 20230713115855 CreatePermissionsSync: migrated (0.0097s) ===================
5020== 20231005111642 CreatePermissionsIndex: migrating ===========================
5021-- add_index(:permissions_syncs, [:user_id, :resource_type, :resource_id], {:name=>"index_permissions_syncs_on_user_and_resource"})
5022 -> 0.0025s
5023-- add_index(:role_names, :role_type)
5024 -> 0.0020s
5025== 20231005111642 CreatePermissionsIndex: migrated (0.0047s) ==================
5027== 20240823085523 AddVmsizeToJobs: migrating ==================================
5028-- add_column(:jobs, :vm_size, :string)
5029 -> 0.0008s
5030-- add_column(:deleted_jobs, :vm_size, :string)
5031 -> 0.0004s
5032== 20240823085523 AddVmsizeToJobs: migrated (0.0013s) =========================
5034 sets unique_number on INSERT
5035 does not set unique_number on INSERT if 0 is given as a value
5036 sets unique_number on UPDATE
5037 does not set unique_number on UPDATE if unique_number is 0
5039set_updated_at trigger
5040 jobs
5041 sets updated_at on INSERT
5042 sets updated_at on UPDATE
5043 works also for new columns
5044 builds
5045 sets updated_at on INSERT
5046 sets updated_at on UPDATE
5047 works also for new columns
5049soft delete repo
5050 ensure that soft delete tables have the same fields that the originals
5051 soft deleting a repo moves all of the related data to deleted_* tables
5053Rake tasks
5054 rake db:create
5055 migrates the main db
5056 rake db:schema:load
5057 loads the main schema
5059Deprecation Warnings:
5061Using `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)>'.
5064If you need more of the backtrace for any of these deprecations to
5065identify where to make the necessary changes, you can configure
5066`config.raise_errors_for_deprecations!`, and it will turn the
5067deprecation warnings into errors, giving you the full backtrace.
50691 deprecation warning total
5071Finished in 38.72 seconds (files took 0.35475 seconds to load)
507219 examples, 0 failures
5074The command "bundle exec rspec spec" exited with 0.
cache.2
5075store build cache
50760.01s1.42snothing changed
after_success
50780.19s$ script/upload_structure.rb
5079<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)
5080 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'
5081 from script/upload_structure.rb:5:in `<main>'
5083Done. Your build exited with 0.
Top