AMD64
Ruby: 3.2.2
Git
Scroll to End of Log
0.00s0.22s0.13s0.07s0.00sTopworker_info1Worker information2hostname: 5b396509-62ea-4293-8db3-ac76641337ef@1.worker-n2-com-f8c4bb956-cnsdw.gce-production-13version: deploy_2024.10.02-2-gc32b553 https://github.com/travis-ci/worker/tree/c32b553e81363378d09787f52103ea9bcadf253c4instance: travis-job-bda5841b-6174-45b9-b762-7691c4749afd travis-ci-ubuntu-2004-1737724207-d0e199ee-dirty (via amqp)5startup: 5.77399829ssystem_info7Build system information8Build language: ruby9Build dist: focal10Build id: 27411539411Job id: 63034567412Runtime kernel version: 5.15.0-1074-gcp13VM: default14travis-build version: 6b157a1c15Build image provisioning date and time16Fri 24 Jan 2025 01:35:36 PM UTC17Operating System Details18Distributor ID: Ubuntu19Description: Ubuntu 20.04.6 LTS20Release: 20.0421Codename: focal22Systemd Version23systemd 245 (245.4-4ubuntu3.24)24Cookbooks Version25fd4012d https://github.com/travis-ci/travis-cookbooks/tree/fd4012d26git version27git version 2.48.128bash version29GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu)30gcc version31gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.032docker version33Client:34 Version: 24.0.735 API version: 1.4336 Go version: go1.21.137 Git commit: 24.0.7-0ubuntu2~20.04.138 Built: Wed Mar 13 20:29:24 202439 OS/Arch: linux/amd6440 Context: default42Server:43 Engine:44 Version: 24.0.745 API version: 1.43 (minimum version 1.12)46 Go version: go1.21.147 Git commit: 24.0.7-0ubuntu2~20.04.148 Built: Wed Mar 13 20:29:24 202449 OS/Arch: linux/amd6450 Experimental: false51 containerd:52 Version: 1.7.1253 GitCommit:54 runc:55 Version: 1.1.12-0ubuntu2~20.04.156 GitCommit:57 docker-init:58 Version: 0.19.059 GitCommit:60clang version61clang version 18.1.862jq version63jq-1.7.164bats version65Bats 1.11.166shellcheck version670.10.068shfmt version69v3.8.070ccache version713.7.772cmake version73cmake version 3.29.074heroku version75heroku/10.0.2 linux-x64 node-v20.17.076imagemagick version77Version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org78md5deep version794.480mercurial version81version 6.5.282mysql version83mysql Ver 8.0.40-0ubuntu0.20.04.1 for Linux on x86_64 ((Ubuntu))84openssl version85OpenSSL 1.1.1f 31 Mar 202086packer version87Packer v1.11.288postgresql client version89psql (PostgreSQL) 13.18 (Ubuntu 13.18-1.pgdg20.04+1)90ragel version91Ragel State Machine Compiler version 6.10 March 201792sudo version931.8.3194gzip version95gzip 1.1096zip version97Zip 3.098vim version99VIM - Vi IMproved 8.1 (2018 May 18, compiled Jan 20 2025 13:56:30)100iptables version101iptables v1.8.4 (legacy)102curl version103curl 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.3104wget version105GNU Wget 1.20.3 built on linux-gnu.106rsync version107rsync version 3.1.3 protocol version 31108go version109go version go1.23.5 linux/amd64110nvm version1110.40.1112perlbrew version113/home/travis/perl5/perlbrew/bin/perlbrew - App::perlbrew/0.95114phpenv version115rbenv 1.3.2116rvm version117rvm 1.29.12 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]118default ruby version119ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [x86_64-linux]120default python version121Python 3.7.17122ElasticSearch version1237.16.3124Installed Firefox version125firefox 99.0126MongoDB version127MongoDB 4.4.29128PhantomJS version1292.1.1130Redis version131redis-server 7.4.2132Pre-installed Go versions133go version go1.23.5 linux/amd64134mvn version135Apache Maven 3.9.4 (dfbb324ad4a7c8fb0bf182e6d91b0ae20e3d2dd9)136gradle version137Gradle 8.3!138lein version139Leiningen 2.11.2 on Java 11.0.21 OpenJDK 64-Bit Server VM140Pre-installed Node.js versions141v10.24.1142v12.22.12143v14.21.3144v16.15145v16.20.2146v18.20.3147v18.20.6148v20.18.2149v22.13.1150v4.9.1151v6.17.1152v8.17.0153phpenv versions154 system155 7.4156* 7.4.6 (set by /home/travis/.phpenv/version)157 hhvm-stable158 hhvm159composer --version160Composer version 1.10.6 2020-05-06 10:28:10161Pre-installed Ruby versions162ruby-2.7.6163ruby-3.3.51660.00s0.05s0.00s0.01s0.15s0.00s0.00s0.00s0.01s0.00s0.13s0.00s1.03s0.00s0.13s6.04s0.00s4.05s0.00s2.35sdocker_mtu_and_registry_mirrorsDockerresolvconfapt167Adding APT Sources169OK1700.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/null172Installing APT Packages173PostgreSQL package is detected. Stopping postgresql service. See https://github.com/travis-ci/travis-ci/issues/5737 for more information.174$ sudo systemctl stop postgresql17512.00s$ sudo -E apt-get -yq --no-install-suggests --no-install-recommends $(travis_apt_get_options) install postgresql-11 postgresql-client-11176Reading package lists...177Building dependency tree...178Reading state information...179The following packages were automatically installed and are no longer required:180 amd64-microcode bubblewrap dictionaries-common hunspell-en-us181 intel-microcode iucode-tool libaspell15 libenchant-2-2 libglu1-mesa182 libgstreamer-gl1.0-0 libgstreamer-plugins-base1.0-0 libgudev-1.0-0183 libharfbuzz-icu0 libhunspell-1.7-0 libhyphen0 libjavascriptcoregtk-4.0-18184 libnotify4 libopengl0 libopenjp2-7 liborc-0.4-0 libsecret-1-0185 libsecret-common libwebkit2gtk-4.0-37 libwebpdemux2 libwoff1186 libwxbase3.0-0v5 libwxgtk-webview3.0-gtk3-0v5 libwxgtk3.0-gtk3-0v5187 linux-image-unsigned-5.4.0-204-generic linux-modules-5.4.0-204-generic188 xdg-dbus-proxy189Use 'sudo apt autoremove' to remove them.190Suggested packages:191 postgresql-doc-11192Recommended packages:193 sysstat194The following NEW packages will be installed:195 postgresql-11 postgresql-client-111960 upgraded, 2 newly installed, 0 to remove and 55 not upgraded.197Need to get 15.8 MB of archives.198After this operation, 54.1 MB of additional disk space will be used.199Get:1 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-client-11 amd64 11.22-9.pgdg20.04+1 [1,495 kB]200Get:2 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-11 amd64 11.22-9.pgdg20.04+1 [14.3 MB]201Preconfiguring packages ...202Fetched 15.8 MB in 1s (28.1 MB/s)203Selecting previously unselected package postgresql-client-11.204(Reading database ... 153602 files and directories currently installed.)205Preparing to unpack .../postgresql-client-11_11.22-9.pgdg20.04+1_amd64.deb ...206Unpacking postgresql-client-11 (11.22-9.pgdg20.04+1) ...207Selecting previously unselected package postgresql-11.208Preparing to unpack .../postgresql-11_11.22-9.pgdg20.04+1_amd64.deb ...209Unpacking postgresql-11 (11.22-9.pgdg20.04+1) ...210Setting up postgresql-client-11 (11.22-9.pgdg20.04+1) ...211Setting up postgresql-11 (11.22-9.pgdg20.04+1) ...212Creating new PostgreSQL cluster 11/main ...213/usr/lib/postgresql/11/bin/initdb -D /var/lib/postgresql/11/main --auth-local peer --auth-host md5214The files belonging to this database system will be owned by user "postgres".215This user must also own the server process.217The database cluster will be initialized with locale "en_US.UTF-8".218The default database encoding has accordingly been set to "UTF8".219The default text search configuration will be set to "english".221Data page checksums are disabled.223fixing permissions on existing directory /var/lib/postgresql/11/main ... ok224creating subdirectories ... ok225selecting default max_connections ... 100226selecting default shared_buffers ... 128MB227selecting default timezone ... UTC228selecting dynamic shared memory implementation ... posix229creating configuration files ... ok230running bootstrap script ... ok231performing post-bootstrap initialization ... ok232syncing data to disk ... ok234Success. You can now start the database server using:236 pg_ctlcluster 11 main start238Processing triggers for postgresql-common (267.pgdg20.04+1) ...239Building PostgreSQL dictionaries from installed myspell/hunspell packages...240 en_us241Removing obsolete dictionary files:2423.01sservicesgit.checkout2470.01s0.57s$ git clone --depth=50 --branch=master https://github.com/travis-ci/travis-migrations.git travis-ci/travis-migrations248Cloning into 'travis-ci/travis-migrations'...249$ cd travis-ci/travis-migrations250$ git checkout -qf eceffad5926ead66098e9b887658be1e5b59c9ce2520.01s253Setting environment variables from repository settings254$ export QUAY_ROBOT_HANDLE=[secure]255$ export QUAY_ROBOT_TOKEN=[secure]256$ export ARTIFACTS_BUCKET=travis-migrations-structure-dumps257$ export ARTIFACTS_SECRET=[secure]258$ export ARTIFACTS_KEY=[secure]rvm261Downloading https://get.rvm.io262Downloading https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer.asc263Verifying /home/travis/.rvm/archives/rvm-installer.asc264gpg: Signature made Tue 21 Feb 2023 11:35:16 PM UTC265gpg: using RSA key 7D2BAF1CF37B13E2069D6956105BD0E739499BDB266gpg: Good signature from "Piotr Kuczynski <piotr.kuczynski@gmail.com>" [unknown]267gpg: WARNING: This key is not certified with a trusted signature!268gpg: There is no indication that the signature belongs to the owner.269Primary key fingerprint: 7D2B AF1C F37B 13E2 069D 6956 105B D0E7 3949 9BDB270GPG verified '/home/travis/.rvm/archives/rvm-installer'271Downloading https://github.com/rvm/rvm/archive/master.tar.gz272Upgrading the RVM installation in /home/travis/.rvm/273 RVM PATH line found in /home/travis/.mkshrc /home/travis/.profile /home/travis/.zshrc.274 RVM PATH line not found for Bash, rerun this command with '--auto-dotfiles' flag to fix it.275 RVM sourcing line found in /home/travis/.profile /home/travis/.bashrc /home/travis/.zlogin.276Upgrade of RVM in /home/travis/.rvm/ is complete.278<warn>Thanks for installing RVM 🙏</warn>279Please consider donating to our open collective to help us maintain RVM.281👉 Donate: <code>https://opencollective.com/rvm/donate</code>284RVM reloaded!286curl: (22) The requested URL returned error: 404287Required ruby-3.2.2 is not installed - installing.288curl: (22) The requested URL returned error: 404289Searching for binary rubies, this might take some time.290Found remote file https://rubies.travis-ci.org/ubuntu/20.04/x86_64/ruby-3.2.2.tar.bz2291Checking requirements for ubuntu.292Requirements installation successful.293ruby-3.2.2 - #configure294ruby-3.2.2 - #download295 % Total % Received % Xferd Average Speed Time Time Time Current296 Dload Upload Total Spent Left Speed297 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0298100 32.0M 100 32.0M 0 0 20.2M 0 0:00:01 0:00:01 --:--:-- 81.5M299No checksum for downloaded archive, recording checksum in user configuration.300ruby-3.2.2 - #validate archive301ruby-3.2.2 - #extract302ruby-3.2.2 - #validate binary303ruby-3.2.2 - #setup304ruby-3.2.2 - #gemset created /home/travis/.rvm/gems/ruby-3.2.2@global305ruby-3.2.2 - #importing gemset /home/travis/.rvm/gemsets/global.gems..................................308ruby-3.2.2 - #gemset created /home/travis/.rvm/gems/ruby-3.2.2311Using /home/travis/.rvm/gems/ruby-3.2.2313$ export BUNDLE_GEMFILE=$PWD/Gemfilecache.1314Setting up build cache315$ export CASHER_DIR=${TRAVIS_HOME}/.casher318fetching master/cache--linux-focal-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--rvm-3.2.2--gemfile-Gemfile.tgz319found cache321creating directory /home/travis/build/travis-ci/travis-migrations/vendor/bundleruby.versions324$ ruby --version325ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux]326$ rvm --version327rvm 1.29.12-next (master) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]328$ bundle --version329Bundler version 2.4.10330$ gem --version3313.4.10before_install.1334Updating rubygems-update335Successfully installed rubygems-update-3.6.3336Installing RubyGems 3.6.3337 Successfully built RubyGem338 Name: bundler339 Version: 2.6.3340 File: bundler-2.6.3.gem341Bundler 2.6.3 installed342RubyGems 3.6.3 installed343Regenerating binstubs344Regenerating plugins346# 3.6.3 / 2025-01-16348## Enhancements:350* Add credentials file path to `gem env`. Pull request351 [#8375](https://github.com/rubygems/rubygems/pull/8375) by duckinator352* Update SPDX license list as of 2024-12-30. Pull request353 [#8387](https://github.com/rubygems/rubygems/pull/8387) by354 github-actions[bot]355* Installs bundler 2.6.3 as a default gem.357## Bug fixes:359* Fix `@licenses` array unmarshalling. Pull request360 [#8411](https://github.com/rubygems/rubygems/pull/8411) by rykov362# 3.6.2 / 2024-12-23364## Security:366* Fix Gem::SafeMarshal buffer overrun when given lengths larger than fit367 into a byte. Pull request368 [#8305](https://github.com/rubygems/rubygems/pull/8305) by segiddins369* Improve type checking in marshal_load methods. Pull request370 [#8306](https://github.com/rubygems/rubygems/pull/8306) by segiddins372## Enhancements:374* Skip rdoc hooks and their tests on newer rdoc versions. Pull request375 [#8340](https://github.com/rubygems/rubygems/pull/8340) by376 deivid-rodriguez377* Installs bundler 2.6.2 as a default gem.379## Bug fixes:381* Fix serialized metadata including an empty `@original_platform`382 attribute. Pull request383 [#8355](https://github.com/rubygems/rubygems/pull/8355) by384 deivid-rodriguez386# 3.6.1 / 2024-12-17388## Enhancements:390* Installs bundler 2.6.1 as a default gem.392## Bug fixes:394* Fix `gem info` tagging some non default gems as default. Pull request395 [#8321](https://github.com/rubygems/rubygems/pull/8321) by396 deivid-rodriguez398## Documentation:400* Fix broken links. Pull request401 [#8327](https://github.com/rubygems/rubygems/pull/8327) by st0012403# 3.6.0 / 2024-12-16405## Security:407* Stop storing executable names in ivars. Pull request408 [#8307](https://github.com/rubygems/rubygems/pull/8307) by segiddins410## Breaking changes:412* Drop ruby 3.0 support. Pull request413 [#8091](https://github.com/rubygems/rubygems/pull/8091) by segiddins415## Features:417* Add --attestation option to gem push. Pull request418 [#8239](https://github.com/rubygems/rubygems/pull/8239) by segiddins420## Enhancements:422* Skip unresolved deps warning on `Gem::Specification.reset` on benign423 cases. Pull request424 [#8309](https://github.com/rubygems/rubygems/pull/8309) by425 deivid-rodriguez426* Let `gem install <name>` suggest `<name>-ruby` and `ruby-<name>` when427 providing "did you mean" suggestions. Pull request428 [#8197](https://github.com/rubygems/rubygems/pull/8197) by duckinator429* Update SPDX license list as of 2024-08-19. Pull request430 [#8233](https://github.com/rubygems/rubygems/pull/8233) by431 github-actions[bot]432* Add `--target-rbconfig` option to `gem install` and `gem update`433 commands. Pull request434 [#7628](https://github.com/rubygems/rubygems/pull/7628) by kateinoigakukun435* Skip nil-value keys to make metadata reproducible. Pull request436 [#7129](https://github.com/rubygems/rubygems/pull/7129) by nobu437* Allow disabling installation of compiled extensions into lib through438 `Gem.configuration.install_extension_in_lib`. Pull request439 [#6463](https://github.com/rubygems/rubygems/pull/6463) by hsbt440* Installs bundler 2.6.0 as a default gem.442## Bug fixes:444* Set $0 to exe when running `gem exec` to fix name in CLI output. Pull445 request [#8267](https://github.com/rubygems/rubygems/pull/8267) by adam12446* Fix manifest in gem package using incorrect platform sometimes. Pull447 request [#8202](https://github.com/rubygems/rubygems/pull/8202) by448 deivid-rodriguez450## Documentation:452* Fix missing single quote in git source example. Pull request453 [#8303](https://github.com/rubygems/rubygems/pull/8303) by nobu454* Update the `gem install` demo in REAME to use a gem that just works on455 Windows. Pull request456 [#8262](https://github.com/rubygems/rubygems/pull/8262) by soda92457* Unify rubygems and bundler docs directory. Pull request458 [#8159](https://github.com/rubygems/rubygems/pull/8159) by hsbt460# 3.5.23 / 2024-11-05462## Enhancements:464* Validate user input encoding of `gem` CLI arguments. Pull request465 [#6471](https://github.com/rubygems/rubygems/pull/6471) by466 deivid-rodriguez467* Fix `gem update --system` leaving old default bundler executables468 around. Pull request469 [#8172](https://github.com/rubygems/rubygems/pull/8172) by470 deivid-rodriguez471* Installs bundler 2.5.23 as a default gem.473## Bug fixes:475* Fix commands with 2 MFA requests when webauthn is enabled. Pull request476 [#8174](https://github.com/rubygems/rubygems/pull/8174) by477 deivid-rodriguez478* Make `--enable-load-relative` binstubs prolog work when Ruby is not479 installed in the same directory as the binstub. Pull request480 [#7872](https://github.com/rubygems/rubygems/pull/7872) by481 deivid-rodriguez483## Performance:485* Speed up `gem install <nonexistent-gem>` by finding alternative name486 suggestions faster. Pull request487 [#8084](https://github.com/rubygems/rubygems/pull/8084) by duckinator489## Documentation:491* Add missing comma in documentation. Pull request492 [#8152](https://github.com/rubygems/rubygems/pull/8152) by leoarnold494# 3.5.22 / 2024-10-16496## Enhancements:498* Prevent `._*` files in packages generated from macOS. Pull request499 [#8150](https://github.com/rubygems/rubygems/pull/8150) by500 deivid-rodriguez501* Fix `gem pristine etc` resetting gem twice sometimes. Pull request502 [#8117](https://github.com/rubygems/rubygems/pull/8117) by503 deivid-rodriguez504* Allow `gem pristine` to reset default gems too. Pull request505 [#8118](https://github.com/rubygems/rubygems/pull/8118) by506 deivid-rodriguez507* Update vendored `uri` and `net-http`. Pull request508 [#8112](https://github.com/rubygems/rubygems/pull/8112) by segiddins509* Installs bundler 2.5.22 as a default gem.511## Bug fixes:513* Fix `gem contents` for default gems. Pull request514 [#8132](https://github.com/rubygems/rubygems/pull/8132) by515 deivid-rodriguez516* Fix duplicated specs when they have been previously activated. Pull517 request [#8131](https://github.com/rubygems/rubygems/pull/8131) by518 deivid-rodriguez519* Fix `gem install` on NFS shares. Pull request520 [#8123](https://github.com/rubygems/rubygems/pull/8123) by521 deivid-rodriguez522* Fix a `gem install` crash during "done installing" hooks. Pull request523 [#8113](https://github.com/rubygems/rubygems/pull/8113) by524 deivid-rodriguez525* Fix plugin command loading. Pull request526 [#8121](https://github.com/rubygems/rubygems/pull/8121) by527 deivid-rodriguez529# 3.5.21 / 2024-10-03531## Enhancements:533* Fix `Gem::MissingSpecVersionError#to_s` not showing exception message.534 Pull request [#8074](https://github.com/rubygems/rubygems/pull/8074) by535 deivid-rodriguez536* Remove code that makes suggest_gems_from_name give worse results. Pull537 request [#8083](https://github.com/rubygems/rubygems/pull/8083) by538 duckinator539* Warning about PATH in `--user-install` mode is only necessary for gems540 with executables. Pull request541 [#8071](https://github.com/rubygems/rubygems/pull/8071) by542 deivid-rodriguez543* Installs bundler 2.5.21 as a default gem.545## Bug fixes:547* Fix error in one source when fetching dependency APIs clearing results548 from all sources. Pull request549 [#8080](https://github.com/rubygems/rubygems/pull/8080) by550 deivid-rodriguez551* Fix `gem cleanup` warning when two versions of psych installed. Pull552 request [#8072](https://github.com/rubygems/rubygems/pull/8072) by553 deivid-rodriguez555# 3.5.20 / 2024-09-24557## Enhancements:559* Installs bundler 2.5.20 as a default gem.561# 3.5.19 / 2024-09-18563## Enhancements:565* Standardize pretty-print output for `Gem::Source` and subclasses. Pull566 request [#7994](https://github.com/rubygems/rubygems/pull/7994) by567 djberube568* Update vendored `molinillo` to master and vendored `resolv` to 0.4.0.569 Pull request [#7521](https://github.com/rubygems/rubygems/pull/7521) by570 hsbt571* Installs bundler 2.5.19 as a default gem.573## Bug fixes:575* Fix `bundle exec rake install` failing when local gem has extensions.576 Pull request [#7977](https://github.com/rubygems/rubygems/pull/7977) by577 deivid-rodriguez578* Make `gem exec` use the standard GEM_HOME. Pull request579 [#7982](https://github.com/rubygems/rubygems/pull/7982) by580 deivid-rodriguez581* Fix `gem fetch` always exiting with zero status code. Pull request582 [#8007](https://github.com/rubygems/rubygems/pull/8007) by583 deivid-rodriguez584* Remove temporary `.lock` files unintentionally left around by gem585 installer. Pull request586 [#7939](https://github.com/rubygems/rubygems/pull/7939) by nobu587* Removed unused stringio. Pull request588 [#8001](https://github.com/rubygems/rubygems/pull/8001) by hsbt589* Avoid another race condition of open mode. Pull request590 [#7931](https://github.com/rubygems/rubygems/pull/7931) by nobu591* Fix `@license` typo preventing licenses from being correctly592 unmarshalled. Pull request593 [#7975](https://github.com/rubygems/rubygems/pull/7975) by djberube595## Performance:597* Fix `gem install does-not-exist` being super slow. Pull request598 [#8006](https://github.com/rubygems/rubygems/pull/8006) by599 deivid-rodriguez601# 3.5.18 / 2024-08-26603## Enhancements:605* Installs bundler 2.5.18 as a default gem.607## Bug fixes:609* Fix `gem uninstall <name>:<version>` failing on shadowed default gems.610 Pull request [#7949](https://github.com/rubygems/rubygems/pull/7949) by611 deivid-rodriguez613# 3.5.17 / 2024-08-01615## Enhancements:617* Explicitly encode `Gem::Dependency` to yaml. Pull request618 [#7867](https://github.com/rubygems/rubygems/pull/7867) by segiddins619* Installs bundler 2.5.17 as a default gem.621## Bug fixes:623* Fix `gem list` regression when a regular gem shadows a default one. Pull624 request [#7892](https://github.com/rubygems/rubygems/pull/7892) by625 deivid-rodriguez626* Always leave default gem executables around. Pull request627 [#7879](https://github.com/rubygems/rubygems/pull/7879) by628 deivid-rodriguez629* Fix line comment issue for hash when loading gemrc. Pull request630 [#7857](https://github.com/rubygems/rubygems/pull/7857) by leetking632# 3.5.16 / 2024-07-18634## Enhancements:636* Installs bundler 2.5.16 as a default gem.638## Bug fixes:640* Fix gemspec `require_paths` validation. Pull request641 [#7866](https://github.com/rubygems/rubygems/pull/7866) by642 deivid-rodriguez643* Fix loading of nested `gemrc` config keys when specified as symbols.644 Pull request [#7851](https://github.com/rubygems/rubygems/pull/7851) by645 moofkit647## Performance:649* Use `caller_locations` instead of splitting `caller`. Pull request650 [#7708](https://github.com/rubygems/rubygems/pull/7708) by nobu652# 3.5.15 / 2024-07-09654## Enhancements:656* Installs bundler 2.5.15 as a default gem.658## Bug fixes:660* Restrict generic `arm` to only match 32-bit arm. Pull request661 [#7830](https://github.com/rubygems/rubygems/pull/7830) by ntkme662* Protect creating binstubs with a file lock. Pull request663 [#7806](https://github.com/rubygems/rubygems/pull/7806) by664 deivid-rodriguez666## Documentation:668* Make it clearer that `add_dependency` is the main way to add669 non-development dependencies. Pull request670 [#7800](https://github.com/rubygems/rubygems/pull/7800) by jeromedalbert672# 3.5.14 / 2024-06-21674## Enhancements:676* Installs bundler 2.5.14 as a default gem.678## Bug fixes:680* Make "bundler? update --bundler" behave identically. Pull request681 [#7778](https://github.com/rubygems/rubygems/pull/7778) by x-yuri683# 3.5.13 / 2024-06-14685## Enhancements:687* Installs bundler 2.5.13 as a default gem.689## Bug fixes:691* Never remove executables that may belong to a default gem. Pull request692 [#7747](https://github.com/rubygems/rubygems/pull/7747) by693 deivid-rodriguez695# 3.5.12 / 2024-06-13697## Enhancements:699* Installs bundler 2.5.12 as a default gem.701## Bug fixes:703* Fix `gem uninstall` unresolved specifications warning. Pull request704 [#7667](https://github.com/rubygems/rubygems/pull/7667) by705 deivid-rodriguez706* Fix `gem pristine` sometimes failing to pristine user installed gems.707 Pull request [#7664](https://github.com/rubygems/rubygems/pull/7664) by708 deivid-rodriguez710# 3.5.11 / 2024-05-28712## Enhancements:714* Update SPDX license list as of 2024-05-22. Pull request715 [#7689](https://github.com/rubygems/rubygems/pull/7689) by716 github-actions[bot]717* Fix the update_rubygems inconsistency (--disable-gems). Pull request718 [#7658](https://github.com/rubygems/rubygems/pull/7658) by x-yuri719* Accept WASI as an OS name in Gem::Platform. Pull request720 [#7629](https://github.com/rubygems/rubygems/pull/7629) by kateinoigakukun721* Warn if RubyGems version explicitly set in gemspec does not match722 running version. Pull request723 [#7460](https://github.com/rubygems/rubygems/pull/7460) by724 deivid-rodriguez725* Installs bundler 2.5.11 as a default gem.727## Bug fixes:729* Fix binstubs sometimes not getting regenerated when `--destdir` is730 given. Pull request731 [#7660](https://github.com/rubygems/rubygems/pull/7660) by732 deivid-rodriguez733* Fix `gem uninstall --user-install` for symlinked HOME. Pull request734 [#7645](https://github.com/rubygems/rubygems/pull/7645) by735 deivid-rodriguez736* Fix issue when plugin stubs would sometimes not be properly removed by737 `gem uninstall`. Pull request738 [#7631](https://github.com/rubygems/rubygems/pull/7631) by739 deivid-rodriguez740* Fix plugins uninstallation for user installed gems. Pull request741 [#6456](https://github.com/rubygems/rubygems/pull/6456) by voxik743## Performance:745* Use a constant empty tar header to avoid extra allocations. Pull request746 [#7484](https://github.com/rubygems/rubygems/pull/7484) by segiddins748## Documentation:750* Recommend `bin/rake` over `rake` in contributing docs. Pull request751 [#7648](https://github.com/rubygems/rubygems/pull/7648) by752 deivid-rodriguez754# 3.5.10 / 2024-05-03756## Security:758* Add a limit to the size of the metadata and checksums files in a gem759 package. Pull request760 [#7568](https://github.com/rubygems/rubygems/pull/7568) by segiddins762## Enhancements:764* Don't fully require `rubygems` from `rubygems/package` to prevent some765 circular require warnings when using Bundler. Pull request766 [#7612](https://github.com/rubygems/rubygems/pull/7612) by767 deivid-rodriguez768* Installs bundler 2.5.10 as a default gem.770## Bug fixes:772* Rename credential email to identifier in WebAuthn poller. Pull request773 [#7623](https://github.com/rubygems/rubygems/pull/7623) by jenshenny775# 3.5.9 / 2024-04-12777## Enhancements:779* Installs bundler 2.5.9 as a default gem.781# 3.5.8 / 2024-04-11783## Security:785* Respect global umask when writing regular files. Pull request786 [#7518](https://github.com/rubygems/rubygems/pull/7518) by787 deivid-rodriguez789## Enhancements:791* Allow string keys with gemrc. Pull request792 [#7543](https://github.com/rubygems/rubygems/pull/7543) by hsbt793* [Experimental] Add "gem rebuild" command. Pull request794 [#4913](https://github.com/rubygems/rubygems/pull/4913) by duckinator795* Installs bundler 2.5.8 as a default gem.797## Bug fixes:799* Fix NoMethodError crash when building errors about corrupt package800 files. Pull request801 [#7539](https://github.com/rubygems/rubygems/pull/7539) by jez802* Fix resolver to properly intersect Arrays of `Gem::Resolver::Activation`803 objects. Pull request804 [#7537](https://github.com/rubygems/rubygems/pull/7537) by805 deivid-rodriguez807# 3.5.7 / 2024-03-22809## Enhancements:811* Warn on empty or open required_ruby_version specification attribute.812 Pull request [#5010](https://github.com/rubygems/rubygems/pull/5010) by813 simi814* Control whether YAML aliases are enabled in Gem::SafeYAML.safe_load via815 attribute. Pull request816 [#7464](https://github.com/rubygems/rubygems/pull/7464) by segiddins817* Update SPDX license list as of 2024-02-08. Pull request818 [#7468](https://github.com/rubygems/rubygems/pull/7468) by819 github-actions[bot]820* Installs bundler 2.5.7 as a default gem.822## Bug fixes:824* Allow prerelease activation (even if requirement is not explicit about825 it) when it's the only possibility. Pull request826 [#7428](https://github.com/rubygems/rubygems/pull/7428) by kimesf828## Documentation:830* Fix a typo. Pull request831 [#7505](https://github.com/rubygems/rubygems/pull/7505) by hsbt832* Use https instead of http in documentation links. Pull request833 [#7481](https://github.com/rubygems/rubygems/pull/7481) by hsbt835# 3.5.6 / 2024-02-06837## Enhancements:839* Deep copy requirements in `Gem::Specification` and `Gem::Requirement`.840 Pull request [#7439](https://github.com/rubygems/rubygems/pull/7439) by841 flavorjones842* Change gem login message to clear up that username can be also used.843 Pull request [#7422](https://github.com/rubygems/rubygems/pull/7422) by844 VitaliySerov845* Add metadata for rubygems.org. Pull request846 [#7435](https://github.com/rubygems/rubygems/pull/7435) by m-nakamura145847* Improve gem login scope selection. Pull request848 [#7342](https://github.com/rubygems/rubygems/pull/7342) by williantenfen849* Vendor uri in RubyGems. Pull request850 [#7386](https://github.com/rubygems/rubygems/pull/7386) by851 deivid-rodriguez852* Installs bundler 2.5.6 as a default gem.854## Bug fixes:856* Skip to load commented out words. Pull request857 [#7413](https://github.com/rubygems/rubygems/pull/7413) by hsbt858* Fix rake runtime dependency warning for rake based extension. Pull859 request [#7395](https://github.com/rubygems/rubygems/pull/7395) by ntkme861# 3.5.5 / 2024-01-18863## Enhancements:865* Installs bundler 2.5.5 as a default gem.867## Bug fixes:869* Fix `require` activation conflicts when requiring default gems under870 some situations. Pull request871 [#7379](https://github.com/rubygems/rubygems/pull/7379) by872 deivid-rodriguez873* Use cache_home instead of data_home in default_spec_cache_dir. Pull874 request [#7331](https://github.com/rubygems/rubygems/pull/7331) by mrkn876## Documentation:878* Use squiggly heredocs in `Gem::Specification#description` documentation,879 so it doesn't add leading whitespace. Pull request880 [#7373](https://github.com/rubygems/rubygems/pull/7373) by bravehager882# 3.5.4 / 2024-01-04884## Enhancements:886* Always avoid "Updating rubygems-update" message. Pull request887 [#7335](https://github.com/rubygems/rubygems/pull/7335) by888 deivid-rodriguez889* Installs bundler 2.5.4 as a default gem.891## Bug fixes:893* Make `gem update --system` respect ruby version constraints. Pull894 request [#7334](https://github.com/rubygems/rubygems/pull/7334) by895 deivid-rodriguez897# 3.5.3 / 2023-12-22899## Enhancements:901* Installs bundler 2.5.3 as a default gem.903# 3.5.2 / 2023-12-21905## Enhancements:907* Support dynamic library loading with extension .so or .o. Pull request908 [#7241](https://github.com/rubygems/rubygems/pull/7241) by hogelog909* Installs bundler 2.5.2 as a default gem.911## Performance:913* Replace `object_id` comparison with identity Hash. Pull request914 [#7303](https://github.com/rubygems/rubygems/pull/7303) by amomchilov915* Use IO.copy_stream when reading, writing. Pull request916 [#6958](https://github.com/rubygems/rubygems/pull/6958) by martinemde918# 3.5.1 / 2023-12-15920## Enhancements:922* Installs bundler 2.5.1 as a default gem.924# 3.5.0 / 2023-12-15926## Security:928* Replace `Marshal.load` with a fully-checked safe gemspec loader. Pull929 request [#6896](https://github.com/rubygems/rubygems/pull/6896) by930 segiddins932## Breaking changes:934* Drop ruby 2.6 and 2.7 support. Pull request935 [#7116](https://github.com/rubygems/rubygems/pull/7116) by936 deivid-rodriguez937* Release package no longer includes test files. Pull request938 [#6781](https://github.com/rubygems/rubygems/pull/6781) by hsbt939* Hide `Gem::MockGemUi` from users. Pull request940 [#6623](https://github.com/rubygems/rubygems/pull/6623) by hsbt941* Deprecated `Gem.datadir` has been removed. Pull request942 [#6469](https://github.com/rubygems/rubygems/pull/6469) by hsbt944## Deprecations:946* Deprecate `Gem::Platform.match?`. Pull request947 [#6783](https://github.com/rubygems/rubygems/pull/6783) by hsbt948* Deprecate `Gem::List`. Pull request949 [#6311](https://github.com/rubygems/rubygems/pull/6311) by segiddins951## Features:953* The `generate_index` command can now generate compact index files and954 lives as an external `rubygems-generate_index` gem. Pull request955 [#7085](https://github.com/rubygems/rubygems/pull/7085) by segiddins956* Make `gem install` fallback to user installation directory if default957 gem home is not writable. Pull request958 [#5327](https://github.com/rubygems/rubygems/pull/5327) by duckinator959* Leverage ruby feature to warn when requiring default gems from stdlib960 that will be turned into bundled gems in the future. Pull request961 [#6840](https://github.com/rubygems/rubygems/pull/6840) by hsbt963## Performance:965* Use match? when regexp match data is unused. Pull request966 [#7263](https://github.com/rubygems/rubygems/pull/7263) by segiddins967* Fewer allocations in gem installation. Pull request968 [#6975](https://github.com/rubygems/rubygems/pull/6975) by segiddins969* Optimize allocations in `Gem::Version`. Pull request970 [#6970](https://github.com/rubygems/rubygems/pull/6970) by segiddins972## Enhancements:974* Warn for duplicate meta data links when building gems. Pull request975 [#7213](https://github.com/rubygems/rubygems/pull/7213) by etherbob976* Vendor `net-http`, `net-protocol`, `resolv`, and `timeout` to reduce977 conflicts between Gemfile gems and internal dependencies. Pull request978 [#6793](https://github.com/rubygems/rubygems/pull/6793) by979 deivid-rodriguez980* Remove non-transparent requirement added to prerelease gems. Pull981 request [#7226](https://github.com/rubygems/rubygems/pull/7226) by982 deivid-rodriguez983* Stream output from ext builds when --verbose. Pull request984 [#7240](https://github.com/rubygems/rubygems/pull/7240) by osyoyu985* Add missing services to CI detection and make it consistent between986 RubyGems and Bundler. Pull request987 [#7205](https://github.com/rubygems/rubygems/pull/7205) by nevinera988* Update generate licenses template to not freeze regexps. Pull request989 [#7154](https://github.com/rubygems/rubygems/pull/7154) by990 github-actions[bot]991* Don't check `LIBRUBY_RELATIVE` in truffleruby to signal a bash prelude992 in rubygems binstubs. Pull request993 [#7156](https://github.com/rubygems/rubygems/pull/7156) by994 deivid-rodriguez995* Update SPDX list and warn on deprecated identifiers. Pull request996 [#6926](https://github.com/rubygems/rubygems/pull/6926) by simi997* Simplify extended `require` to potentially fix some deadlocks. Pull998 request [#6827](https://github.com/rubygems/rubygems/pull/6827) by nobu999* Small refactors for `Gem::Resolver`. Pull request1000 [#6766](https://github.com/rubygems/rubygems/pull/6766) by hsbt1001* Use double-quotes instead of single-quotes consistently in warnings.1002 Pull request [#6550](https://github.com/rubygems/rubygems/pull/6550) by1003 hsbt1004* Add debug message for `nil` version gemspec. Pull request1005 [#6436](https://github.com/rubygems/rubygems/pull/6436) by hsbt1006* Installs bundler 2.5.0 as a default gem.1008## Bug fixes:1010* Fix installing from source with same default bundler version already1011 installed. Pull request1012 [#7244](https://github.com/rubygems/rubygems/pull/7244) by1013 deivid-rodriguez1015## Documentation:1017* Improve comment explaining the necessity of `write_default_spec` method.1018 Pull request [#6563](https://github.com/rubygems/rubygems/pull/6563) by1019 voxik1021# 3.4.22 / 2023-11-091023## Enhancements:1025* Update SPDX license list as of 2023-10-05. Pull request1026 [#7040](https://github.com/rubygems/rubygems/pull/7040) by1027 github-actions[bot]1028* Remove unnecessary rescue. Pull request1029 [#7109](https://github.com/rubygems/rubygems/pull/7109) by1030 deivid-rodriguez1031* Installs bundler 2.4.22 as a default gem.1033## Bug fixes:1035* Handle empty array at built-in YAML serializer. Pull request1036 [#7099](https://github.com/rubygems/rubygems/pull/7099) by hsbt1037* Ignore non-tar format `.gem` files during search. Pull request1038 [#7095](https://github.com/rubygems/rubygems/pull/7095) by dearblue1039* Allow explicitly uninstalling multiple versions of same gem. Pull1040 request [#7063](https://github.com/rubygems/rubygems/pull/7063) by1041 kstevens7151043## Performance:1045* Avoid regexp match on every call to `Gem::Platform.local`. Pull request1046 [#7104](https://github.com/rubygems/rubygems/pull/7104) by segiddins1048## Documentation:1050* Get `Gem::Specification#extensions_dir` documented. Pull request1051 [#6218](https://github.com/rubygems/rubygems/pull/6218) by1052 deivid-rodriguez1054# 3.4.21 / 2023-10-171056## Enhancements:1058* Abort `setup.rb` if Ruby is too old. Pull request1059 [#7011](https://github.com/rubygems/rubygems/pull/7011) by1060 deivid-rodriguez1061* Remove usage of Dir.chdir that only execute a subprocess. Pull request1062 [#6930](https://github.com/rubygems/rubygems/pull/6930) by segiddins1063* Freeze more strings in generated gemspecs. Pull request1064 [#6974](https://github.com/rubygems/rubygems/pull/6974) by segiddins1065* Use pure-ruby YAML parser for loading configuration at RubyGems. Pull1066 request [#6615](https://github.com/rubygems/rubygems/pull/6615) by hsbt1067* Installs bundler 2.4.21 as a default gem.1069## Documentation:1071* Update suggested variable for bindir. Pull request1072 [#7028](https://github.com/rubygems/rubygems/pull/7028) by hsbt1073* Fix invalid links in documentation. Pull request1074 [#7008](https://github.com/rubygems/rubygems/pull/7008) by simi1076# 3.4.20 / 2023-09-271078## Enhancements:1080* Raise `Gem::Package::FormatError` when gem encounters corrupt EOF.1081 Pull request [#6882](https://github.com/rubygems/rubygems/pull/6882)1082 by martinemde1083* Allow skipping empty license `gem build` warning by setting license to1084 `nil`. Pull request1085 [#6879](https://github.com/rubygems/rubygems/pull/6879) by jhong971086* Update SPDX license list as of 2023-06-18. Pull request1087 [#6891](https://github.com/rubygems/rubygems/pull/6891) by1088 github-actions[bot]1089* Update SPDX license list as of 2023-04-28. Pull request1090 [#6642](https://github.com/rubygems/rubygems/pull/6642) by segiddins1091* Update SPDX license list as of 2023-01-26. Pull request1092 [#6310](https://github.com/rubygems/rubygems/pull/6310) by segiddins1093* Installs bundler 2.4.20 as a default gem.1095## Bug fixes:1097* Fixed false positive SymlinkError in symbolic link directory. Pull1098 request [#6947](https://github.com/rubygems/rubygems/pull/6947) by1099 negi01091100* Ensure that loading multiple gemspecs with legacy YAML class references1101 does not warn. Pull request1102 [#6889](https://github.com/rubygems/rubygems/pull/6889) by segiddins1103* Fix NoMethodError when choosing a too big number from `gem uni` list.1104 Pull request [#6901](https://github.com/rubygems/rubygems/pull/6901) by1105 amatsuda1107## Performance:1109* Reduce allocations for stub specifications. Pull request1110 [#6972](https://github.com/rubygems/rubygems/pull/6972) by segiddins1112# 3.4.19 / 2023-08-171114## Enhancements:1116* Installs bundler 2.4.19 as a default gem.1118## Performance:1120* Speedup building docs when updating rubygems. Pull request1121 [#6864](https://github.com/rubygems/rubygems/pull/6864) by1122 deivid-rodriguez1124# 3.4.18 / 2023-08-021126## Enhancements:1128* Add poller to fetch WebAuthn OTP. Pull request1129 [#6774](https://github.com/rubygems/rubygems/pull/6774) by jenshenny1130* Remove side effects when unmarshaling old `Gem::Specification`. Pull1131 request [#6825](https://github.com/rubygems/rubygems/pull/6825) by nobu1132* Ship rubygems executables in `exe` folder. Pull request1133 [#6704](https://github.com/rubygems/rubygems/pull/6704) by hsbt1134* Installs bundler 2.4.18 as a default gem.1136# 3.4.17 / 2023-07-141138## Enhancements:1140* Installs bundler 2.4.17 as a default gem.1142## Performance:1144* Avoid unnecessary work for private local gem installation. Pull request1145 [#6810](https://github.com/rubygems/rubygems/pull/6810) by1146 deivid-rodriguez1148# 3.4.16 / 2023-07-101150## Enhancements:1152* Installs bundler 2.4.16 as a default gem.1154# 3.4.15 / 2023-06-291156## Enhancements:1158* Installs bundler 2.4.15 as a default gem.1160## Bug fixes:1162* Autoload shellwords when it's needed. Pull request1163 [#6734](https://github.com/rubygems/rubygems/pull/6734) by ioquatix1165## Documentation:1167* Update command to test local gem command changes. Pull request1168 [#6761](https://github.com/rubygems/rubygems/pull/6761) by jenshenny1170# 3.4.14 / 2023-06-121172## Enhancements:1174* Load plugin immediately. Pull request1175 [#6673](https://github.com/rubygems/rubygems/pull/6673) by kou1176* Installs bundler 2.4.14 as a default gem.1178## Documentation:1180* Clarify what the `rubygems-update` gem is for, and link to source code1181 and guides. Pull request1182 [#6710](https://github.com/rubygems/rubygems/pull/6710) by davetron50001184# 3.4.13 / 2023-05-091186## Enhancements:1188* Installs bundler 2.4.13 as a default gem.1190# 3.4.12 / 2023-04-111192## Enhancements:1194* [Experimental] Add WebAuthn Support to the CLI. Pull request1195 [#6560](https://github.com/rubygems/rubygems/pull/6560) by jenshenny1196* Installs bundler 2.4.12 as a default gem.1198# 3.4.11 / 2023-04-101200## Enhancements:1202* Installs bundler 2.4.11 as a default gem.1205------------------------------------------------------------------------------1207RubyGems installed the following executables:1208 /home/travis/.rvm/rubies/ruby-3.2.2/bin/gem1209 /home/travis/.rvm/rubies/ruby-3.2.2/bin/bundle1210 /home/travis/.rvm/rubies/ruby-3.2.2/bin/bundler1212RubyGems system software updatedbefore_install.212130.02s$ sudo sed -i -e '/local.*peer/s/postgres/all/' -e 's/peer\|md5/trust/g' /etc/postgresql/11/main/pg_hba.confbefore_install.3before_install.4install.bundler1217[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 flag1218Bundler 2.6.3 is running, but your lockfile was generated with 2.4.14. Installing Bundler 2.4.14 and restarting using that version.1219Fetching gem metadata from https://rubygems.org/.1220Fetching bundler 2.4.141221Installing bundler 2.4.141222[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 flag1223Using rake 13.0.61224Using concurrent-ruby 1.2.21225Using i18n 1.14.11226Using minitest 5.18.11227Using tzinfo 2.0.61228Using activesupport 7.0.61229Using builder 3.2.41230Using erubi 1.12.01231Using racc 1.7.11232Using nokogiri 1.15.2 (x86_64-linux)1233Using rails-dom-testing 2.1.11234Using crass 1.0.61235Using loofah 2.21.31236Using rails-html-sanitizer 1.6.01237Using actionview 7.0.61238Using rack 2.2.71239Using rack-test 2.1.01240Using actionpack 7.0.61241Using nio4r 2.5.91242Using websocket-extensions 0.1.51243Using websocket-driver 0.7.51244Using actioncable 7.0.61245Using globalid 1.1.01246Using activejob 7.0.61247Using activemodel 7.0.61248Using activerecord 7.0.61249Using marcel 1.0.21250Using mini_mime 1.1.21251Using activestorage 7.0.61252Using date 3.3.31253Using timeout 0.4.01254Using net-protocol 0.2.11255Using net-imap 0.3.61256Using net-pop 0.1.21257Using net-smtp 0.3.31258Using mail 2.8.11259Using actionmailbox 7.0.61260Using actionmailer 7.0.61261Using actiontext 7.0.61262Using ansi 1.5.01263Using ast 2.4.21264Using aws-eventstream 1.2.01265Using aws-partitions 1.783.01266Using aws-sigv4 1.6.01267Using jmespath 1.6.21268Using aws-sdk-core 3.176.11269Using aws-sdk-kms 1.68.01270Using aws-sdk-s3 1.127.01271Using bundler 2.4.141272Using colored 1.21273Using diff-lcs 1.5.01274Using docile 1.4.01275Using json 2.6.31276Using language_server-protocol 3.17.0.31277Using method_source 1.0.01278Using parallel 1.23.01279Using parser 3.2.2.31280Using pg 1.5.31281Using thor 1.2.21282Using zeitwerk 2.6.81283Using railties 7.0.61284Using rails 7.0.61285Using rainbow 3.1.11286Using rake-notes 0.2.21287Using regexp_parser 2.8.11288Using rexml 3.2.51289Using routes 0.2.01290Using rspec-support 3.12.11291Using rspec-core 3.12.21292Using rspec-expectations 3.12.31293Using rspec-mocks 3.12.51294Using rspec 3.12.01295Using rubocop-ast 1.29.01296Using ruby-progressbar 1.13.01297Using unicode-display_width 2.4.21298Using rubocop 1.54.11299Using rubocop-capybara 2.18.01300Using rubocop-factory_bot 2.23.11301Using rubocop-performance 1.18.01302Using rubocop-rspec 2.22.01303Using simplecov-html 0.12.31304Using simplecov_json_formatter 0.1.41305Using simplecov 0.22.01306Using terminal-table 3.0.21307Using simplecov-console 0.9.11308Bundle complete! 12 Gemfile dependencies, 85 gems now installed.1309Bundled gems are installed into `./vendor/bundle`before_script.313151.49s$ curl -fs https://raw.githubusercontent.com/travis-ci/travis-migrations/master/db/main/structure.sql | psql -v ON_ERROR_STOP=1 travis_test1316SET1317SET1318SET1319SET1320SET1321 set_config1322------------1324(1 row)1326SET1327SET1328SET1329SET1330CREATE EXTENSION1331COMMENT1332CREATE EXTENSION1333COMMENT1334CREATE TYPE1335CREATE FUNCTION1336CREATE FUNCTION1337CREATE FUNCTION1338CREATE FUNCTION1339CREATE FUNCTION1340CREATE FUNCTION1341CREATE FUNCTION1342CREATE FUNCTION1343CREATE FUNCTION1344CREATE FUNCTION1345CREATE FUNCTION1346CREATE FUNCTION1347CREATE FUNCTION1348CREATE FUNCTION1349CREATE FUNCTION1350CREATE FUNCTION1351CREATE FUNCTION1352CREATE FUNCTION1353CREATE FUNCTION1354CREATE FUNCTION1355CREATE FUNCTION1356CREATE FUNCTION1357CREATE FUNCTION1358CREATE FUNCTION1359CREATE FUNCTION1360CREATE FUNCTION1361CREATE FUNCTION1362CREATE FUNCTION1363CREATE FUNCTION1364CREATE FUNCTION1365SET1366CREATE TABLE1367CREATE SEQUENCE1368ALTER SEQUENCE1369CREATE TABLE1370CREATE TABLE1371CREATE SEQUENCE1372ALTER SEQUENCE1373CREATE TABLE1374CREATE SEQUENCE1375ALTER SEQUENCE1376CREATE TABLE1377CREATE SEQUENCE1378ALTER SEQUENCE1379CREATE TABLE1380CREATE SEQUENCE1381ALTER SEQUENCE1382CREATE TABLE1383CREATE SEQUENCE1384ALTER SEQUENCE1385CREATE TABLE1386CREATE SEQUENCE1387ALTER SEQUENCE1388CREATE TABLE1389CREATE SEQUENCE1390ALTER SEQUENCE1391CREATE SEQUENCE1392CREATE TABLE1393CREATE SEQUENCE1394ALTER SEQUENCE1395CREATE TABLE1396CREATE SEQUENCE1397ALTER SEQUENCE1398CREATE TABLE1399CREATE SEQUENCE1400ALTER SEQUENCE1401CREATE TABLE1402CREATE SEQUENCE1403ALTER SEQUENCE1404CREATE TABLE1405CREATE SEQUENCE1406ALTER SEQUENCE1407CREATE TABLE1408CREATE SEQUENCE1409ALTER SEQUENCE1410CREATE TABLE1411CREATE TABLE1412CREATE TABLE1413CREATE TABLE1414CREATE TABLE1415CREATE TABLE1416CREATE TABLE1417CREATE TABLE1418CREATE TABLE1419CREATE TABLE1420CREATE TABLE1421CREATE TABLE1422CREATE TABLE1423CREATE TABLE1424CREATE TABLE1425CREATE TABLE1426CREATE SEQUENCE1427ALTER SEQUENCE1428CREATE TABLE1429CREATE SEQUENCE1430ALTER SEQUENCE1431CREATE TABLE1432CREATE TABLE1433CREATE SEQUENCE1434ALTER SEQUENCE1435CREATE TABLE1436CREATE SEQUENCE1437ALTER SEQUENCE1438CREATE TABLE1439CREATE SEQUENCE1440ALTER SEQUENCE1441CREATE TABLE1442CREATE SEQUENCE1443ALTER SEQUENCE1444CREATE TABLE1445CREATE SEQUENCE1446ALTER SEQUENCE1447CREATE TABLE1448CREATE SEQUENCE1449ALTER SEQUENCE1450CREATE TABLE1451CREATE SEQUENCE1452ALTER SEQUENCE1453CREATE TABLE1454CREATE SEQUENCE1455ALTER SEQUENCE1456CREATE TABLE1457CREATE SEQUENCE1458ALTER SEQUENCE1459CREATE TABLE1460CREATE SEQUENCE1461ALTER SEQUENCE1462CREATE TABLE1463CREATE SEQUENCE1464ALTER SEQUENCE1465CREATE TABLE1466CREATE SEQUENCE1467ALTER SEQUENCE1468CREATE TABLE1469CREATE SEQUENCE1470ALTER SEQUENCE1471CREATE TABLE1472CREATE SEQUENCE1473ALTER SEQUENCE1474CREATE TABLE1475CREATE SEQUENCE1476ALTER SEQUENCE1477CREATE TABLE1478CREATE TABLE1479CREATE SEQUENCE1480ALTER SEQUENCE1481CREATE TABLE1482CREATE SEQUENCE1483ALTER SEQUENCE1484CREATE TABLE1485CREATE SEQUENCE1486ALTER SEQUENCE1487CREATE TABLE1488CREATE SEQUENCE1489ALTER SEQUENCE1490CREATE TABLE1491CREATE SEQUENCE1492ALTER SEQUENCE1493CREATE TABLE1494CREATE SEQUENCE1495ALTER SEQUENCE1496CREATE TABLE1497CREATE SEQUENCE1498ALTER SEQUENCE1499CREATE TABLE1500CREATE SEQUENCE1501ALTER SEQUENCE1502CREATE TABLE1503CREATE TABLE1504CREATE SEQUENCE1505ALTER SEQUENCE1506CREATE TABLE1507CREATE TABLE1508CREATE SEQUENCE1509ALTER SEQUENCE1510CREATE TABLE1511CREATE SEQUENCE1512ALTER SEQUENCE1513CREATE TABLE1514CREATE SEQUENCE1515ALTER SEQUENCE1516CREATE TABLE1517CREATE SEQUENCE1518ALTER SEQUENCE1519CREATE TABLE1520CREATE SEQUENCE1521ALTER SEQUENCE1522CREATE TABLE1523CREATE SEQUENCE1524ALTER SEQUENCE1525CREATE TABLE1526CREATE SEQUENCE1527ALTER SEQUENCE1528CREATE TABLE1529CREATE SEQUENCE1530ALTER SEQUENCE1531CREATE TABLE1532CREATE SEQUENCE1533ALTER SEQUENCE1534CREATE TABLE1535CREATE SEQUENCE1536ALTER SEQUENCE1537CREATE TABLE1538CREATE SEQUENCE1539ALTER SEQUENCE1540CREATE TABLE1541CREATE SEQUENCE1542ALTER SEQUENCE1543CREATE TABLE1544CREATE SEQUENCE1545ALTER SEQUENCE1546CREATE TABLE1547ALTER TABLE1548ALTER TABLE1549ALTER TABLE1550ALTER TABLE1551ALTER TABLE1552ALTER TABLE1553ALTER TABLE1554ALTER TABLE1555ALTER TABLE1556ALTER TABLE1557ALTER TABLE1558ALTER TABLE1559ALTER TABLE1560ALTER TABLE1561ALTER TABLE1562ALTER TABLE1563ALTER TABLE1564ALTER TABLE1565ALTER TABLE1566ALTER TABLE1567ALTER TABLE1568ALTER TABLE1569ALTER TABLE1570ALTER TABLE1571ALTER TABLE1572ALTER TABLE1573ALTER TABLE1574ALTER TABLE1575ALTER TABLE1576ALTER TABLE1577ALTER TABLE1578ALTER TABLE1579ALTER TABLE1580ALTER TABLE1581ALTER TABLE1582ALTER TABLE1583ALTER TABLE1584ALTER TABLE1585ALTER TABLE1586ALTER TABLE1587ALTER TABLE1588ALTER TABLE1589ALTER TABLE1590ALTER TABLE1591ALTER TABLE1592ALTER TABLE1593ALTER TABLE1594ALTER TABLE1595ALTER TABLE1596ALTER TABLE1597ALTER TABLE1598ALTER TABLE1599ALTER TABLE1600ALTER TABLE1601ALTER TABLE1602ALTER TABLE1603ALTER TABLE1604ALTER TABLE1605ALTER TABLE1606ALTER TABLE1607ALTER TABLE1608ALTER TABLE1609ALTER TABLE1610ALTER TABLE1611ALTER TABLE1612ALTER TABLE1613ALTER TABLE1614ALTER TABLE1615ALTER TABLE1616ALTER TABLE1617ALTER TABLE1618ALTER TABLE1619ALTER TABLE1620ALTER TABLE1621ALTER TABLE1622ALTER TABLE1623ALTER TABLE1624ALTER TABLE1625ALTER TABLE1626ALTER TABLE1627ALTER TABLE1628ALTER TABLE1629ALTER TABLE1630ALTER TABLE1631ALTER TABLE1632ALTER TABLE1633ALTER TABLE1634ALTER TABLE1635ALTER TABLE1636ALTER TABLE1637ALTER TABLE1638ALTER TABLE1639ALTER TABLE1640ALTER TABLE1641ALTER TABLE1642ALTER TABLE1643ALTER TABLE1644ALTER TABLE1645ALTER TABLE1646ALTER TABLE1647ALTER TABLE1648ALTER TABLE1649ALTER TABLE1650ALTER TABLE1651ALTER TABLE1652ALTER TABLE1653CREATE INDEX1654CREATE INDEX1655CREATE INDEX1656CREATE INDEX1657CREATE INDEX1658CREATE INDEX1659CREATE INDEX1660CREATE INDEX1661CREATE INDEX1662CREATE INDEX1663CREATE INDEX1664CREATE INDEX1665CREATE INDEX1666CREATE INDEX1667CREATE INDEX1668CREATE INDEX1669CREATE INDEX1670CREATE INDEX1671CREATE INDEX1672CREATE INDEX1673CREATE INDEX1674CREATE INDEX1675CREATE INDEX1676CREATE INDEX1677CREATE INDEX1678CREATE INDEX1679CREATE INDEX1680CREATE INDEX1681CREATE INDEX1682CREATE INDEX1683CREATE INDEX1684CREATE INDEX1685CREATE INDEX1686CREATE INDEX1687CREATE INDEX1688CREATE INDEX1689CREATE INDEX1690CREATE INDEX1691CREATE INDEX1692CREATE INDEX1693CREATE INDEX1694CREATE INDEX1695CREATE INDEX1696CREATE INDEX1697CREATE INDEX1698CREATE INDEX1699CREATE INDEX1700CREATE INDEX1701CREATE INDEX1702CREATE INDEX1703CREATE INDEX1704CREATE INDEX1705CREATE INDEX1706CREATE INDEX1707CREATE INDEX1708CREATE INDEX1709CREATE INDEX1710CREATE INDEX1711CREATE INDEX1712CREATE INDEX1713CREATE INDEX1714CREATE INDEX1715CREATE INDEX1716CREATE INDEX1717CREATE INDEX1718CREATE INDEX1719CREATE INDEX1720CREATE INDEX1721CREATE INDEX1722CREATE INDEX1723CREATE INDEX1724CREATE INDEX1725CREATE INDEX1726CREATE INDEX1727CREATE INDEX1728CREATE INDEX1729CREATE INDEX1730CREATE INDEX1731CREATE INDEX1732CREATE INDEX1733CREATE INDEX1734CREATE INDEX1735CREATE INDEX1736CREATE INDEX1737CREATE INDEX1738CREATE INDEX1739CREATE INDEX1740CREATE INDEX1741CREATE INDEX1742CREATE INDEX1743CREATE INDEX1744CREATE INDEX1745CREATE INDEX1746CREATE INDEX1747CREATE INDEX1748CREATE INDEX1749CREATE INDEX1750CREATE INDEX1751CREATE INDEX1752CREATE INDEX1753CREATE INDEX1754CREATE INDEX1755CREATE INDEX1756CREATE INDEX1757CREATE INDEX1758CREATE INDEX1759CREATE INDEX1760CREATE INDEX1761CREATE INDEX1762CREATE INDEX1763CREATE INDEX1764CREATE INDEX1765CREATE INDEX1766CREATE INDEX1767CREATE INDEX1768CREATE INDEX1769CREATE INDEX1770CREATE INDEX1771CREATE INDEX1772CREATE INDEX1773CREATE INDEX1774CREATE INDEX1775CREATE INDEX1776CREATE INDEX1777CREATE INDEX1778CREATE INDEX1779CREATE INDEX1780CREATE INDEX1781CREATE INDEX1782CREATE INDEX1783CREATE INDEX1784CREATE INDEX1785CREATE INDEX1786CREATE INDEX1787CREATE INDEX1788CREATE INDEX1789CREATE INDEX1790CREATE INDEX1791CREATE INDEX1792CREATE INDEX1793CREATE INDEX1794CREATE INDEX1795CREATE INDEX1796CREATE INDEX1797CREATE INDEX1798CREATE INDEX1799CREATE INDEX1800CREATE INDEX1801CREATE INDEX1802CREATE INDEX1803CREATE INDEX1804CREATE INDEX1805CREATE INDEX1806CREATE INDEX1807CREATE INDEX1808CREATE INDEX1809CREATE INDEX1810CREATE INDEX1811CREATE INDEX1812CREATE INDEX1813CREATE INDEX1814CREATE INDEX1815CREATE INDEX1816CREATE INDEX1817CREATE INDEX1818CREATE INDEX1819CREATE INDEX1820CREATE INDEX1821CREATE INDEX1822CREATE INDEX1823CREATE INDEX1824CREATE INDEX1825CREATE INDEX1826CREATE INDEX1827CREATE INDEX1828CREATE INDEX1829CREATE INDEX1830CREATE INDEX1831CREATE INDEX1832CREATE INDEX1833CREATE INDEX1834CREATE INDEX1835CREATE INDEX1836CREATE INDEX1837CREATE INDEX1838CREATE INDEX1839CREATE INDEX1840CREATE INDEX1841CREATE INDEX1842CREATE INDEX1843CREATE INDEX1844CREATE INDEX1845CREATE INDEX1846CREATE INDEX1847CREATE INDEX1848CREATE INDEX1849CREATE INDEX1850CREATE INDEX1851CREATE INDEX1852CREATE INDEX1853CREATE INDEX1854CREATE INDEX1855CREATE INDEX1856CREATE INDEX1857CREATE INDEX1858CREATE INDEX1859CREATE INDEX1860CREATE INDEX1861CREATE INDEX1862CREATE INDEX1863CREATE TRIGGER1864CREATE TRIGGER1865CREATE TRIGGER1866CREATE TRIGGER1867CREATE TRIGGER1868CREATE TRIGGER1869CREATE TRIGGER1870CREATE TRIGGER1871CREATE TRIGGER1872CREATE TRIGGER1873CREATE TRIGGER1874CREATE TRIGGER1875CREATE TRIGGER1876CREATE TRIGGER1877CREATE TRIGGER1878CREATE TRIGGER1879CREATE TRIGGER1880ALTER TABLE1881ALTER TABLE1882ALTER TABLE1883ALTER TABLE1884ALTER TABLE1885ALTER TABLE1886ALTER TABLE1887ALTER TABLE1888ALTER TABLE1889ALTER TABLE1890ALTER TABLE1891ALTER TABLE1892ALTER TABLE1893ALTER TABLE1894ALTER TABLE1895ALTER TABLE1896ALTER TABLE1897ALTER TABLE1898ALTER TABLE1899ALTER TABLE1900ALTER TABLE1901ALTER TABLE1902ALTER TABLE1903ALTER TABLE1904ALTER TABLE1905ALTER TABLE1906ALTER TABLE1907ALTER TABLE1908ALTER TABLE1909ALTER TABLE1910ALTER TABLE1911ALTER TABLE1912ALTER TABLE1913SET1914INSERT 0 3941917Repo counts1918 before aggregation1919 after aggregating per repo1920 after aggregating all counts1921 does not raise if repos are missing1922 does not raise if builds are deleted before stages1924set_updated_at trigger1925Dropped database 'travis_test'1926Created database 'travis_test'1927== 201207261749 CreatePlans: migrating ========================================1928-- create_table(:plans, {:id=>:integer})1929 -> 0.0072s1930== 201207261749 CreatePlans: migrated (0.0073s) ===============================1932== 20101126174706 CreateRepositories: migrating ===============================1933-- create_table(:repositories, {:id=>:integer})1934 -> 0.0064s1935== 20101126174706 CreateRepositories: migrated (0.0065s) ======================1937== 20101126174715 CreateBuilds: migrating =====================================1938-- create_table(:builds, {:id=>:integer})1939 -> 0.0067s1940== 20101126174715 CreateBuilds: migrated (0.0068s) ============================1942== 20110109130532 DeviseCreateUsers: migrating ================================1943-- create_table(:users, {:id=>:integer})1944 -> 0.0055s1945-- add_index(:users, :login, {:unique=>true})1946 -> 0.0026s1947== 20110109130532 DeviseCreateUsers: migrated (0.0083s) =======================1949== 20110116155100 RepositoriesAddUsername: migrating ==========================1950-- change_table(:repositories)1951 -> 0.0008s1952== 20110116155100 RepositoriesAddUsername: migrated (0.0009s) =================1954== 20110130102621 CreateTokens: migrating =====================================1955-- create_table(:tokens, {:id=>:integer})1956 -> 0.0058s1957== 20110130102621 CreateTokens: migrated (0.0058s) ============================1959== 20110301071656 AddBuildParentIdAndConfiguration: migrating =================1960-- change_table(:builds)1961 -> 0.0013s1962-- change_column(:builds, :number, :string)1963 -> 0.0059s1964-- add_index(:builds, :repository_id)1965 -> 0.0026s1966-- add_index(:builds, :parent_id)1967 -> 0.0024s1968== 20110301071656 AddBuildParentIdAndConfiguration: migrated (0.0124s) ========1970== 20110316174721 RepositoriesDenormalizeLastBuildAttributes: migrating =======1971-- change_table(:repositories)1972 -> 0.0025s1973== 20110316174721 RepositoriesDenormalizeLastBuildAttributes: migrated (0.0026s)1975== 20110321075539 RepositoriesAddOwnerNameAndOwnerEmail: migrating ============1976-- change_table(:repositories)1977 -> 0.0015s1978-- remove_column(:repositories, :username)1979 -> 0.0004s1980== 20110321075539 RepositoriesAddOwnerNameAndOwnerEmail: migrated (0.0019s) ===1982== 20110411171936 CreateHistoriesTable: migrating =============================1983-- create_table(:histories, {:id=>:integer})1984 -> 0.0057s1985-- add_index(:histories, [:item, :table, :month, :year])1986 -> 0.0023s1987== 20110411171936 CreateHistoriesTable: migrated (0.0082s) ====================1989== 20110411171937 RenameHistoriesToRailsAdminHistories: migrating =============1990-- remove_index(:histories, nil, {:name=>:index_histories_on_item_and_table_and_month_and_year})1991 -> 0.0005s1992-- rename_table(:histories, :rails_admin_histories)1993 -> 0.0034s1994-- add_index("rails_admin_histories", ["item", "table", "month", "year"], {:name=>"index_histories_on_item_and_table_and_month_and_year"})1995 -> 0.0024s1996== 20110411171937 RenameHistoriesToRailsAdminHistories: migrated (0.0077s) ====1998== 20110411172518 AddAdminFlagToUser: migrating ===============================1999-- change_table(:users)2000 -> 0.0011s2001== 20110411172518 AddAdminFlagToUser: migrated (0.0012s) ======================2003== 20110413101057 BuildsAddRef: migrating =====================================2004-- change_table(:builds)2005 -> 0.0011s2006== 20110413101057 BuildsAddRef: migrated (0.0011s) ============================2008== 20110414131100 BuildsAddGithubPayload: migrating ===========================2009-- change_table(:builds)2010 -> 0.0007s2011== 20110414131100 BuildsAddGithubPayload: migrated (0.0007s) ==================2013== 20110503150504 AddGithubIdToUsersTable: migrating ==========================2014-- add_column(:users, :github_id, :integer)2015 -> 0.0006s2016-- add_index(:users, :github_id)2017 -> 0.0021s2018== 20110503150504 AddGithubIdToUsersTable: migrated (0.0028s) =================2020== 20110523012243 RepositoriesChangeOwnerEmailType: migrating =================2021-- change_column(:repositories, :owner_email, :text)2022 -> 0.0007s2023== 20110523012243 RepositoriesChangeOwnerEmailType: migrated (0.0007s) ========2025== 20110611203537 AddGithubOauthTokenToUser: migrating ========================2026-- add_column(:users, :github_oauth_token, :string)2027 -> 0.0006s2028-- add_index(:users, :github_oauth_token)2029 -> 0.0023s2030== 20110611203537 AddGithubOauthTokenToUser: migrated (0.0030s) ===============2032== 20110613210252 AddCompareUrlToBuild: migrating =============================2033-- add_column(:builds, :compare_url, :string)2034 -> 0.0007s2035== 20110613210252 AddCompareUrlToBuild: migrated (0.0007s) ====================2037== 20110615152003 BuildsRemoveJobId: migrating ================================2038-- change_table(:builds)2039 -> 0.0006s2040== 20110615152003 BuildsRemoveJobId: migrated (0.0007s) =======================2042== 20110616211744 BuildRemoveLastBuiltAt: migrating ===========================2043-- change_table(:repositories)2044 -> 0.0006s2045== 20110616211744 BuildRemoveLastBuiltAt: migrated (0.0007s) ==================2047== 20110617114728 AddMissingIndexes: migrating ================================2048-- add_index(:repositories, :last_build_started_at)2049 -> 0.0025s2050-- add_index(:repositories, [:owner_name, :name])2051 -> 0.0022s2052-- add_index(:builds, [:repository_id, :parent_id, :started_at])2053 -> 0.0022s2054== 20110617114728 AddMissingIndexes: migrated (0.0070s) =======================2056== 20110619100906 AddActiveToRepositories: migrating ==========================2057-- add_column(:repositories, :is_active, :boolean)2058 -> 0.0008s2059== 20110619100906 AddActiveToRepositories: migrated (0.0008s) =================2061== 20110729094426 StoreTokenInBuild: migrating ================================2062-- add_column(:builds, :token, :string)2063 -> 0.0007s2064== 20110729094426 StoreTokenInBuild: migrated (0.0007s) =======================2066== 20110801161819 CreateRequestsCommitsAndTasks: migrating ====================2067-- change_table(:builds)2068 -> 0.0016s2069-- create_table(:commits, {:force=>true, :id=>:integer})2070 -> 0.0061s2071-- create_table(:requests, {:force=>true, :id=>:integer})2072 -> 0.0066s2073-- create_table(:tasks, {:force=>true, :id=>:integer})2074 -> 0.0070s2075-- add_index(:commits, :commit)2076 -> 0.0026s2077-- add_index(:builds, :commit)2078 -> 0.0024s2079-- add_index(:requests, :commit)2080 -> 0.0025s2081-- add_index(:tasks, :commit)2082 -> 0.0025s2083-- execute("UPDATE requests SET commit_id = (SELECT commits.id FROM commits WHERE commits.commit = requests.commit LIMIT 1)")2084 -> 0.0008s2085-- execute("UPDATE tasks SET commit_id = (SELECT commits.id FROM commits WHERE commits.commit = tasks.commit LIMIT 1)")2086 -> 0.0005s2087-- execute("DELETE FROM builds WHERE parent_id IS NOT NULL")2088 -> 0.0005s2089-- execute("UPDATE builds SET request_id = (SELECT requests.id FROM requests WHERE requests.commit = builds.commit LIMIT 1)")2090 -> 0.0004s2091-- execute("UPDATE builds SET commit_id = (SELECT commits.id FROM commits WHERE commits.commit = builds.commit LIMIT 1)")2092 -> 0.0004s2093-- execute("CREATE SEQUENCE shared_builds_tasks_seq CACHE 30")2094 -> 0.0005s2095-- execute("ALTER TABLE builds ALTER COLUMN id TYPE BIGINT")2096 -> 0.0134s2097-- execute("ALTER TABLE builds ALTER COLUMN id SET DEFAULT nextval('shared_builds_tasks_seq')")2098 -> 0.0006s2099-- execute("ALTER TABLE tasks ALTER COLUMN id TYPE BIGINT")2100 -> 0.0073s2101-- execute("ALTER TABLE tasks ALTER COLUMN id SET DEFAULT nextval('shared_builds_tasks_seq')")2102 -> 0.0006s2103-- select_value("SELECT max(id) FROM commits")2104 -> 0.0006s2105-- execute("SELECT setval('commits_id_seq', 1)")2106 -> 0.0004s2107-- select_value("SELECT max(id) FROM requests")2108 -> 0.0004s2109-- execute("SELECT setval('requests_id_seq', 1)")2110 -> 0.0003s2111-- select_value("SELECT max(id) FROM tasks")2112 -> 0.0006s2113-- execute("SELECT setval('tasks_id_seq', 1)")2114 -> 0.0003s2115-- remove_column(:builds, :parent_id)2116 -> 0.0005s2117-- remove_column(:builds, :commit)2118 -> 0.0004s2119-- remove_column(:requests, :commit)2120 -> 0.0004s2121-- remove_column(:tasks, :commit)2122 -> 0.0004s2123== 20110801161819 CreateRequestsCommitsAndTasks: migrated (0.0615s) ===========2125== 20110805030147 RepositoryRenameIsActiveToActive: migrating =================2126-- rename_column(:repositories, :is_active, :active)2127 -> 0.0099s2128== 20110805030147 RepositoryRenameIsActiveToActive: migrated (0.0099s) ========2130== 20110819232908 TasksAddTags: migrating =====================================2131-- add_column(:tasks, :tags, :text)2132 -> 0.0013s2133== 20110819232908 TasksAddTags: migrated (0.0087s) ============================2135== 20110911204538 CacheOneNumberForSharedBuildsTasksSequence: migrating =======2136-- execute("ALTER SEQUENCE shared_builds_tasks_seq CACHE 1 NO MAXVALUE NO CYCLE")2137 -> 0.0010s2138== 20110911204538 CacheOneNumberForSharedBuildsTasksSequence: migrated (0.0011s)2140== 20111107134436 RenameTasksToJobs: migrating ================================2141-- rename_table(:tasks, :jobs)2142 -> 0.0045s2143-- execute("UPDATE jobs SET type = 'Job::Test' WHERE type = 'Task::Test'")2144 -> 0.0007s2145-- execute("UPDATE jobs SET type = 'Job::Configure' WHERE type = 'Task::Configure'")2146 -> 0.0004s2147== 20111107134436 RenameTasksToJobs: migrated (0.0057s) =======================2149== 20111107134437 CreateArtifacts: migrating ==================================2150-- create_table(:artifacts, {:id=>:integer})2151 -> 0.0075s2152-- execute("UPDATE artifacts SET job_id = id")2153 -> 0.0007s2154-- execute("select setval('artifacts_id_seq', (select max(id) + 1 from artifacts));")2155 -> 0.0007s2156-- add_index(:artifacts, [:type, :job_id])2157 -> 0.0029s2158== 20111107134437 CreateArtifacts: migrated (0.0121s) =========================2160== 20111107134438 CreateWorkers: migrating ====================================2161-- create_table(:workers, {:id=>:integer})2162 -> 0.0085s2163-- add_index(:workers, [:name, :host])2164 -> 0.0026s2165== 20111107134438 CreateWorkers: migrated (0.0114s) ===========================2167== 20111107134439 JobsAddRetries: migrating ===================================2168-- change_table(:jobs)2169 -> 0.0018s2170== 20111107134439 JobsAddRetries: migrated (0.0018s) ==========================2172== 20111107134440 RemoveRailsAdmin: migrating =================================2173-- drop_table(:rails_admin_histories)2174 -> 0.0029s2175== 20111107134440 RemoveRailsAdmin: migrated (0.0033s) ========================2177== 20111128235043 AddIndexesToJobs: migrating =================================2178-- add_index(:jobs, [:queue, :state])2179 -> 0.0050s2180== 20111128235043 AddIndexesToJobs: migrated (0.0056s) ========================2182== 20111129014329 AddRepositoryIdIndexToJobs: migrating =======================2183-- add_index(:jobs, :repository_id)2184 -> 0.0045s2185== 20111129014329 AddRepositoryIdIndexToJobs: migrated (0.0050s) ==============2187== 20111129022625 AddOwnerAndTypeIndexToJobs: migrating =======================2188-- add_index(:jobs, [:type, :owner_id, :owner_type])2189 -> 0.0047s2190== 20111129022625 AddOwnerAndTypeIndexToJobs: migrated (0.0050s) ==============2192== 20111201113500 WorkersAddPayloadAndLastError: migrating ====================2193-- change_table(:workers)2194 -> 0.0014s2195== 20111201113500 WorkersAddPayloadAndLastError: migrated (0.0014s) ===========2197== 20111203002341 RepositoriesAddDescriptionAndLastLanguage: migrating ========2198-- change_table(:repositories)2199 -> 0.0012s2200-- change_table(:builds)2201 -> 0.0006s2202== 20111203002341 RepositoriesAddDescriptionAndLastLanguage: migrated (0.0018s)2204== 20111203221720 BuildsAddArchivedAt: migrating ==============================2205-- change_table(:builds)2206 -> 0.0008s2207== 20111203221720 BuildsAddArchivedAt: migrated (0.0008s) =====================2209== 20111207093700 MimicProductionDb: migrating ================================2210-- column_exists?(:users, :oauth2_uid, :integer)2211 -> 0.0018s2212-- column_exists?(:users, :oauth2_token, :string)2213 -> 0.0016s2214-- column_exists?(:repositories, :user_id, :integer)2215 -> 0.0015s2216== 20111207093700 MimicProductionDb: migrated (0.0050s) =======================2218== 20111212103859 BuildsAddDuration: migrating ================================2219-- change_table(:builds)2220 -> 0.0008s2221== 20111212103859 BuildsAddDuration: migrated (0.0008s) =======================2223== 20111212112411 RepositoriesAddLastBuildDuration: migrating =================2224-- change_table(:repositories)2225 -> 0.0007s2226== 20111212112411 RepositoriesAddLastBuildDuration: migrated (0.0008s) ========2228== 20111214173922 CreateSslKeys: migrating ====================================2229-- create_table(:ssl_keys, {:id=>:integer})2230 -> 0.0057s2231-- add_index("ssl_keys", ["repository_id"], {:name=>"index_ssl_key_on_repository_id"})2232 -> 0.0023s2233== 20111214173922 CreateSslKeys: migrated (0.0081s) ===========================2235== 20120114125404 AddAllowFailureToJobs: migrating ============================2236-- add_column(:jobs, :allow_failure, :boolean, {:default=>false})2237 -> 0.0011s2238== 20120114125404 AddAllowFailureToJobs: migrated (0.0011s) ===================2240== 20120216133223 AddPullRequestFieldsToRequest: migrating ====================2241-- add_column(:requests, :event_type, :string)2242 -> 0.0007s2243-- add_column(:requests, :comments_url, :string)2244 -> 0.0004s2245-- add_column(:requests, :base_commit, :string)2246 -> 0.0004s2247-- add_column(:requests, :head_commit, :string)2248 -> 0.0003s2249== 20120216133223 AddPullRequestFieldsToRequest: migrated (0.0019s) ===========2251== 20120222082522 AddGravatarIdToUsers: migrating =============================2252-- add_column(:users, :gravatar_id, :string)2253 -> 0.0006s2254== 20120222082522 AddGravatarIdToUsers: migrated (0.0006s) ====================2256== 20120301131209 OrganizationsCreate: migrating ==============================2257-- create_table(:organizations, {:id=>:integer})2258 -> 0.0054s2259== 20120301131209 OrganizationsCreate: migrated (0.0054s) =====================2261== 20120304000502 JobsRenameOwnerToSource: migrating ==========================2262-- change_table(:jobs)2263 -> 0.0057s2264== 20120304000502 JobsRenameOwnerToSource: migrated (0.0058s) =================2266== 20120304000503 RepositoriesAddOwner: migrating =============================2267-- change_table(:repositories)2268 -> 0.0012s2269== 20120304000503 RepositoriesAddOwner: migrated (0.0012s) ====================2271== 20120304000504 BuildsAddOwner: migrating ===================================2272-- change_table(:builds)2273 -> 0.0011s2274== 20120304000504 BuildsAddOwner: migrated (0.0011s) ==========================2276== 20120304000505 JobsAddOwner: migrating =====================================2277-- change_table(:jobs)2278 -> 0.0011s2279== 20120304000505 JobsAddOwner: migrated (0.0011s) ============================2281== 20120304000506 RequestsAddOwner: migrating =================================2282-- change_table(:requests)2283 -> 0.0010s2284== 20120304000506 RequestsAddOwner: migrated (0.0011s) ========================2286== 20120311234933 AddLocaleToUser: migrating ==================================2287-- add_column(:users, :locale, :string)2288 -> 0.0006s2289== 20120311234933 AddLocaleToUser: migrated (0.0007s) =========================2291== 20120316123726 CreateMemberships: migrating ================================2292-- create_table(:memberships, {:id=>:integer})2293 -> 0.0035s2294== 20120316123726 CreateMemberships: migrated (0.0036s) =======================2296== 20120319170001 RepositoriesAddPrivate: migrating ===========================2297-- change_table(:repositories)2298 -> 0.0011s2299== 20120319170001 RepositoriesAddPrivate: migrated (0.0011s) ==================2301== 20120324104051 CreateUrls: migrating =======================================2302-- create_table(:urls, {:id=>:integer})2303 -> 0.0052s2304== 20120324104051 CreateUrls: migrated (0.0052s) ==============================2306== 20120505165100 CopyStatusToResult: migrating ===============================2307-- add_column(:builds, :result, :integer)2308 -> 0.0007s2309-- add_column(:jobs, :result, :integer)2310 -> 0.0004s2311-- add_column(:repositories, :last_build_result, :integer)2312 -> 0.0004s2313Executing: UPDATE builds SET result = status;2314Executing: UPDATE jobs SET result = status;2315Executing: UPDATE repositories SET last_build_result = last_build_status;2316== 20120505165100 CopyStatusToResult: migrated (0.0030s) ======================2318== 20120511171900 RequestsAddIndexOnHeadCommit: migrating =====================2319-- add_index(:requests, :head_commit)2320 -> 0.0028s2321== 20120511171900 RequestsAddIndexOnHeadCommit: migrated (0.0028s) ============2323== 20120521174400 CreatePermissions: migrating ================================2324-- create_table(:permissions, {:id=>:integer})2325 -> 0.0178s2326-- add_index(:permissions, :user_id)2327 -> 0.0027s2328-- add_index(:permissions, :repository_id)2329 -> 0.0026s2330== 20120521174400 CreatePermissions: migrated (0.0235s) =======================2332== 20120527235800 BuildsAddPreviousResult: migrating ==========================2333-- change_table(:builds)2334 -> 0.0035s2335== 20120527235800 BuildsAddPreviousResult: migrated (0.0037s) =================2337== 20120702111126 CreateSubscriptions: migrating ==============================2338-- create_table(:subscriptions, {:id=>:integer})2339 -> 0.0113s2340== 20120702111126 CreateSubscriptions: migrated (0.0116s) =====================2342== 20120703114226 AddBillingEmailCreditCardDataToSubscriptions: migrating =====2343-- change_table(:subscriptions)2344 -> 0.0088s2345== 20120703114226 AddBillingEmailCreditCardDataToSubscriptions: migrated (0.0090s)2347== 20120713140816 AddSyncInfoToUser: migrating ================================2348-- add_column(:users, :in_sync, :boolean)2349 -> 0.0027s2350-- add_column(:users, :synced_at, :timestamp)2351 -> 0.0016s2352== 20120713140816 AddSyncInfoToUser: migrated (0.0047s) =======================2354== 20120713153215 RenameInSyncToIsSyncing: migrating ==========================2355-- rename_column(:users, :in_sync, :is_syncing)2356 -> 0.0088s2357== 20120713153215 RenameInSyncToIsSyncing: migrated (0.0090s) =================2359== 20120725005300 AddQueueToWorkers: migrating ================================2360-- add_column(:workers, :queue, :string)2361 -> 0.0008s2362== 20120725005300 AddQueueToWorkers: migrated (0.0008s) =======================2364== 20120727151900 AddJobsIndexOnStateOwnerTypeOwnerId: migrating ==============2365-- add_index(:jobs, ["state", "owner_id", "owner_type"], {:name=>"index_jobs_on_state_owner_type_owner_id"})2366 -> 0.0028s2367== 20120727151900 AddJobsIndexOnStateOwnerTypeOwnerId: migrated (0.0029s) =====2369== 20120731005301 AddQueuedAtToJobs: migrating ================================2370-- add_column(:jobs, :queued_at, :timestamp, {:precision=>nil})2371 -> 0.0007s2372== 20120731005301 AddQueuedAtToJobs: migrated (0.0007s) =======================2374== 20120731074000 AddAmountToPlans: migrating =================================2375-- change_table(:plans)2376 -> 0.0007s2377== 20120731074000 AddAmountToPlans: migrated (0.0007s) ========================2379== 20120802001001 AddPushAndPullToPermissions: migrating ======================2380-- add_column(:permissions, :push, :boolean, {:default=>false})2381 -> 0.0010s2382-- add_column(:permissions, :pull, :boolean, {:default=>false})2383 -> 0.0008s2384-- change_column_default(:permissions, :admin, false)2385 -> 0.0020s2386== 20120802001001 AddPushAndPullToPermissions: migrated (0.0038s) =============2388== 20120803164000 CreateInvoices: migrating ===================================2389-- create_table(:invoices, {:id=>:integer})2390 -> 0.0057s2391== 20120803164000 CreateInvoices: migrated (0.0058s) ==========================2393== 20120803182300 AddInvoiceIdToInvoices: migrating ===========================2394-- change_table(:invoices)2395 -> 0.0009s2396== 20120803182300 AddInvoiceIdToInvoices: migrated (0.0009s) ==================2398== 20120804122700 AddStripeInvoiceIdToInvoices: migrating =====================2399-- change_table(:invoices)2400 -> 0.0007s2401-- add_index(:invoices, :stripe_id)2402 -> 0.0022s2403== 20120804122700 AddStripeInvoiceIdToInvoices: migrated (0.0030s) ============2405== 20120806120400 AddPlanToSubscriptions: migrating ===========================2406-- change_table(:subscriptions)2407 -> 0.0007s2408== 20120806120400 AddPlanToSubscriptions: migrated (0.0007s) ==================2410== 20120820164000 RenamePlanOnSubscriptions: migrating ========================2411-- change_table(:subscriptions)2412 -> 0.0015s2413== 20120820164000 RenamePlanOnSubscriptions: migrated (0.0015s) ===============2415== 20120905093300 CreateStripeEvents: migrating ===============================2416-- create_table(:stripe_events, {:id=>:integer})2417 -> 0.0061s2418-- add_index(:stripe_events, :event_type)2419 -> 0.0024s2420-- add_index(:stripe_events, :date)2421 -> 0.0024s2422== 20120905093300 CreateStripeEvents: migrated (0.0111s) ======================2424== 20120905171300 AddEventIdToStripeEvents: migrating =========================2425-- change_table(:stripe_events)2426 -> 0.0008s2427-- add_index(:stripe_events, :event_id)2428 -> 0.0025s2429== 20120905171300 AddEventIdToStripeEvents: migrated (0.0033s) ================2431== 20120911160000 AddBuildsIndexOnRepositoryIdAndState: migrating =============2432-- remove_index("builds", nil, {:column=>"repository_id", :name=>"index_builds_on_repository_id"})2433 -> 0.0017s2434-- add_index("builds", ["repository_id", "state"])2435 -> 0.0026s2436== 20120911160000 AddBuildsIndexOnRepositoryIdAndState: migrated (0.0054s) ====2438== 20120911230000 ArtifactsAddAggregatedAt: migrating =========================2439-- add_column(:artifacts, :aggregated_at, :timestamp, {:precision=>nil})2440 -> 0.0007s2441== 20120911230000 ArtifactsAddAggregatedAt: migrated (0.0007s) ================2443== 20120911230001 AddArtifactParts: migrating =================================2444-- create_table(:artifact_parts, {:id=>:integer})2445 -> 0.0055s2446-- add_index(:artifact_parts, [:artifact_id, :number])2447 -> 0.0022s2448== 20120911230001 AddArtifactParts: migrated (0.0078s) ========================2450== 20120913143800 AddSubscriptionsCoupon: migrating ===========================2451-- change_table(:subscriptions)2452 -> 0.0008s2453== 20120913143800 AddSubscriptionsCoupon: migrated (0.0008s) ==================2455== 20120915012000 BuildsAddIndexOnFinishedAt: migrating =======================2456-- add_index("builds", "finished_at")2457 -> 0.0024s2458== 20120915012000 BuildsAddIndexOnFinishedAt: migrated (0.0024s) ==============2460== 20120915012001 CommitsAddIndexOnBranch: migrating ==========================2461-- add_index("commits", "branch")2462 -> 0.0024s2463== 20120915012001 CommitsAddIndexOnBranch: migrated (0.0024s) =================2465== 20120915150000 JobsAddIndexOnCreatedAt: migrating ==========================2466-- add_index("jobs", "created_at")2467 -> 0.0025s2468== 20120915150000 JobsAddIndexOnCreatedAt: migrated (0.0025s) =================2470== 20121015002500 CreateEvents: migrating =====================================2471-- create_table(:events, {:id=>:integer})2472 -> 0.0055s2473== 20121015002500 CreateEvents: migrated (0.0056s) ============================2475== 20121015002501 RequestsAddResultAndMessage: migrating ======================2476-- add_column(:requests, :result, :string)2477 -> 0.0008s2478-- add_column(:requests, :message, :string)2479 -> 0.0004s2480== 20121015002501 RequestsAddResultAndMessage: migrated (0.0012s) =============2482== 20121017040100 CreateBroadcasts: migrating =================================2483-- create_table(:broadcasts, {:id=>:integer})2484 -> 0.0054s2485== 20121017040100 CreateBroadcasts: migrated (0.0055s) ========================2487== 20121017040200 EventsChangeDataToText: migrating ===========================2488-- change_column(:events, :data, :text)2489 -> 0.0006s2490== 20121017040200 EventsChangeDataToText: migrated (0.0007s) ==================2492== 20121018201301 AddEventTypeToBuilds: migrating =============================2493-- add_column(:builds, :event_type, :string)2494 -> 0.0006s2495== 20121018201301 AddEventTypeToBuilds: migrated (0.0007s) ====================2497== 20121018203728 UpdateEventTypeOnBuilds: migrating ==========================2498-- execute(" UPDATE builds\n SET event_type = requests.event_type\n FROM requests\n WHERE builds.request_id = requests.id\n")2499 -> 0.0009s2500== 20121018203728 UpdateEventTypeOnBuilds: migrated (0.0010s) =================2502== 20121018210156 AddIndexOnRepositoryIdAndEventTypeToBuilds: migrating =======2503-- add_index(:builds, [:repository_id, :event_type])2504 -> 0.0025s2505== 20121018210156 AddIndexOnRepositoryIdAndEventTypeToBuilds: migrated (0.0025s)2507== 20121125122700 RepositoriesAddLastBuildState: migrating ====================2508-- add_column(:repositories, :last_build_state, :string)2509 -> 0.0007s2510== 20121125122700 RepositoriesAddLastBuildState: migrated (0.0007s) ===========2512== 20121125122701 BuildsAddPreviousState: migrating ===========================2513-- add_column(:builds, :previous_state, :string)2514 -> 0.0006s2515== 20121125122701 BuildsAddPreviousState: migrated (0.0007s) ==================2517== 20121222125200 ArtifactPartsAddFinal: migrating ============================2518-- add_column(:artifact_parts, :final, :boolean)2519 -> 0.0031s2520-- add_column(:artifact_parts, :created_at, :timestamp)2521 -> 0.0012s2522== 20121222125200 ArtifactPartsAddFinal: migrated (0.0051s) ===================2524== 20121222125300 ArtifactPartsChangeContentToText: migrating =================2525-- change_column(:artifact_parts, :content, :text)2526 -> 0.0024s2527== 20121222125300 ArtifactPartsChangeContentToText: migrated (0.0026s) ========2529== 20121222140200 ArtifactPartsAddIndexOnArtifactId: migrating ================2530-- add_index(:artifact_parts, :artifact_id)2531 -> 0.0043s2532== 20121222140200 ArtifactPartsAddIndexOnArtifactId: migrated (0.0044s) =======2534== 20121223162300 ArtifactPartsRemoveIndexOnArtifactId: migrating =============2535-- remove_index(:artifact_parts, :artifact_id, {:name=>"index_artifact_parts_on_artifact_id"})2536 -> 0.0062s2537== 20121223162300 ArtifactPartsRemoveIndexOnArtifactId: migrated (0.0092s) ====2539== 20130107165057 AddGithubScopesToUser: migrating ============================2540-- add_column(:users, :github_scopes, :text)2541 -> 0.0028s2542== 20130107165057 AddGithubScopesToUser: migrated (0.0031s) ===================2544== 20130115125836 AddIndexOnLastSeenAtToWorkers: migrating ====================2545-- add_index(:workers, :last_seen_at)2546 -> 0.0041s2547== 20130115125836 AddIndexOnLastSeenAtToWorkers: migrated (0.0043s) ===========2549== 20130115145728 CacheFullNameInWorkers: migrating ===========================2550-- add_column(:workers, :full_name, :string)2551 -> 0.0026s2552-- add_index(:workers, :full_name)2553 -> 0.0034s2554== 20130115145728 CacheFullNameInWorkers: migrated (0.0063s) ==================2556== 20130125002600 ArtifactsAddArchivedAt: migrating ===========================2557-- add_column(:artifacts, :archived_at, :timestamp, {:precision=>nil})2558 -> 0.0006s2559-- add_index(:artifacts, :archived_at)2560 -> 0.0024s2561== 20130125002600 ArtifactsAddArchivedAt: migrated (0.0030s) ==================2563== 20130125171100 ArtifactsAddArchivingAndVerified: migrating =================2564-- add_column(:artifacts, :archiving, :boolean)2565 -> 0.0007s2566-- add_column(:artifacts, :archive_verified, :boolean)2567 -> 0.0007s2568-- add_index(:artifacts, :archiving)2569 -> 0.0023s2570-- add_index(:artifacts, :archive_verified)2571 -> 0.0021s2572== 20130125171100 ArtifactsAddArchivingAndVerified: migrated (0.0059s) ========2574== 20130129142703 CreateEmails: migrating =====================================2575-- create_table(:emails, {:id=>:integer})2576 -> 0.0050s2577-- add_index(:emails, :user_id)2578 -> 0.0022s2579-- add_index(:emails, :email)2580 -> 0.0020s2581== 20130129142703 CreateEmails: migrated (0.0093s) ============================2583== 20130208135800 RenameArtifacts: migrating ==================================2584-- rename_table(:artifacts, :artifacts_backup)2585 -> 0.0058s2586-- rename_table(:artifact_parts, :artifact_parts_backup)2587 -> 0.0034s2588== 20130208135800 RenameArtifacts: migrated (0.0093s) =========================2590== 20130208135801 DropArtifacts: migrating ====================================2591-- drop_table(:artifacts_backup)2592 -> 0.0012s2593-- drop_table(:artifact_parts_backup)2594 -> 0.0007s2595== 20130208135801 DropArtifacts: migrated (0.0019s) ===========================2597== 20130306154311 CreatePgcryptoExtension: migrating ==========================2598-- execute("create extension if not exists pgcrypto")2599 -> 0.0040s2600== 20130306154311 CreatePgcryptoExtension: migrated (0.0040s) =================2602== 20130311211101 AddPullRequestTitleToBuilds: migrating ======================2603-- add_column(:builds, :pull_request_title, :text)2604 -> 0.0009s2605== 20130311211101 AddPullRequestTitleToBuilds: migrated (0.0009s) =============2607== 20130327100801 AddPullRequestNumberToBuilds: migrating =====================2608-- add_column(:builds, :pull_request_number, :integer)2609 -> 0.0007s2610== 20130327100801 AddPullRequestNumberToBuilds: migrated (0.0007s) ============2612== 20130418101437 AddIndexToBuildsRequestId: migrating ========================2613-- execute("CREATE INDEX CONCURRENTLY index_builds_on_request_id ON builds(request_id)")2614 -> 0.0040s2615== 20130418101437 AddIndexToBuildsRequestId: migrated (0.0041s) ===============2617== 20130418103306 AddIndexToJobsOnOwnerIdOwnerTypeAndState: migrating =========2618-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_owner_id_and_owner_type_and_state ON jobs(owner_id, owner_type, state)")2619 -> 0.0039s2620== 20130418103306 AddIndexToJobsOnOwnerIdOwnerTypeAndState: migrated (0.0039s)2622== 20130505023259 AddMoreIndexesToBuilds: migrating ===========================2623-- 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")2624 -> 0.0039s2625== 20130505023259 AddMoreIndexesToBuilds: migrated (0.0039s) ==================2627== 20130521115725 AddIndexOnBuildState: migrating =============================2628-- execute(" CREATE INDEX CONCURRENTLY index_builds_on_state\n ON builds(state);\n")2629 -> 0.0041s2630== 20130521115725 AddIndexOnBuildState: migrated (0.0042s) ====================2632== 20130521133050 UpdateFinishedJobs: migrating ===============================2633-- execute("UPDATE jobs SET state = 'passed' WHERE state = 'finished' AND result = 0 AND type = 'Job::Test'")2634 -> 0.0008s2635-- execute("UPDATE jobs SET state = 'failed' WHERE state = 'finished' AND result = 1 AND type = 'Job::Test'")2636 -> 0.0004s2637-- execute("UPDATE jobs SET state = 'errored' WHERE state = 'finished' AND result IS NULL AND type = 'Job::Test'")2638 -> 0.0003s2639-- execute("SELECT COUNT(*) FROM jobs WHERE state = 'finished' AND type = 'Job::Test'")2640 -> 0.0004s2641== 20130521133050 UpdateFinishedJobs: migrated (0.0020s) ======================2643== 20130521134224 UpdateFinishedBuilds: migrating =============================2644-- execute("UPDATE builds SET state = 'passed' WHERE state = 'finished' AND result = 0")2645 -> 0.0007s2646-- execute("UPDATE builds SET state = 'failed' WHERE state = 'finished' AND result = 1")2647 -> 0.0003s2648-- execute("UPDATE builds SET state = 'errored' WHERE state = 'finished' AND result IS NULL")2649 -> 0.0003s2650-- execute("SELECT COUNT(*) FROM builds WHERE state = 'finished'")2651 -> 0.0003s2652== 20130521134224 UpdateFinishedBuilds: migrated (0.0018s) ====================2654== 20130521134800 RemoveUnusedBuildColumns: migrating =========================2655-- remove_column(:builds, :result)2656 -> 0.0006s2657-- remove_column(:builds, :status)2658 -> 0.0004s2659-- remove_column(:builds, :previous_result)2660 -> 0.0003s2661-- remove_column(:builds, :agent)2662 -> 0.0003s2663-- remove_column(:builds, :language)2664 -> 0.0004s2665-- remove_column(:builds, :archived_at)2666 -> 0.0003s2667== 20130521134800 RemoveUnusedBuildColumns: migrated (0.0025s) ================2669== 20130521141357 RemoveUnusedJobColumns: migrating ===========================2670-- remove_column(:jobs, :status)2671 -> 0.0006s2672-- remove_column(:jobs, :job_id)2673 -> 0.0003s2674-- remove_column(:jobs, :retries)2675 -> 0.0005s2676== 20130521141357 RemoveUnusedJobColumns: migrated (0.0014s) ==================2678== 20130618084205 AddCoupons: migrating =======================================2679-- create_table(:coupons, {:id=>:integer})2680 -> 0.0054s2681== 20130618084205 AddCoupons: migrated (0.0055s) ==============================2683== 20130629122945 AddGithubIdToUsers: migrating ===============================2684-- add_column(:repositories, :github_id, :integer)2685 -> 0.0007s2686-- add_index(:repositories, :github_id)2687 -> 0.0021s2688== 20130629122945 AddGithubIdToUsers: migrated (0.0029s) ======================2690== 20130629133531 AddDefaultBranchToRepositories: migrating ===================2691-- add_column(:repositories, :default_branch, :string)2692 -> 0.0007s2693== 20130629133531 AddDefaultBranchToRepositories: migrated (0.0007s) ==========2695== 20130629174449 AddGithubLanguageToRepositories: migrating ==================2696-- add_column(:repositories, :github_language, :string)2697 -> 0.0007s2698== 20130629174449 AddGithubLanguageToRepositories: migrated (0.0007s) =========2700== 20130701175200 AddContactIdToSubscriptions: migrating ======================2701-- change_table(:subscriptions)2702 -> 0.0007s2703== 20130701175200 AddContactIdToSubscriptions: migrated (0.0007s) =============2705== 20130702123456 RemoveUnusedRepositoryColumns: migrating ====================2706-- remove_column(:repositories, :last_duration)2707 -> 0.0023s2708-- remove_column(:repositories, :last_build_status)2709 -> 0.0011s2710-- remove_column(:repositories, :last_build_result)2711 -> 0.0011s2712-- remove_column(:repositories, :last_build_language)2713 -> 0.0008s2714== 20130702123456 RemoveUnusedRepositoryColumns: migrated (0.0061s) ===========2716== 20130702144325 AddUniqueIndexOnUsersGithubIdAndRemoveUniqueIndexOnUsersLogin: migrating2717-- execute("DROP INDEX index_users_on_login")2718 -> 0.0017s2719-- execute("CREATE INDEX CONCURRENTLY index_users_on_login ON users(login)")2720 -> 0.0042s2721-- execute("DROP INDEX index_users_on_github_id")2722 -> 0.0013s2723-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_users_on_github_id ON users(github_id)")2724 -> 0.0041s2725== 20130702144325 AddUniqueIndexOnUsersGithubIdAndRemoveUniqueIndexOnUsersLogin: migrated (0.0116s)2727== 20130705123456 AddExtraColumnsToOrganizations: migrating ===================2728-- add_column(:organizations, :avatar_url, :string)2729 -> 0.0011s2730-- add_column(:organizations, :location, :string)2731 -> 0.0011s2732-- add_column(:organizations, :email, :string)2733 -> 0.0012s2734-- add_column(:organizations, :company, :string)2735 -> 0.0006s2736-- add_column(:organizations, :homepage, :string)2737 -> 0.0012s2738== 20130705123456 AddExtraColumnsToOrganizations: migrated (0.0062s) ==========2740== 20130707164854 AddIndexOnGithubIdToOrganizations: migrating ================2741-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_organizations_on_github_id ON organizations(github_id)")2742 -> 0.0041s2743== 20130707164854 AddIndexOnGithubIdToOrganizations: migrated (0.0043s) =======2745== 20130709185200 CreateAnnotations: migrating ================================2746-- create_table(:annotations, {:id=>:integer})2747 -> 0.0086s2748== 20130709185200 CreateAnnotations: migrated (0.0087s) =======================2750== 20130709233500 CreateAnnotationProviders: migrating ========================2751-- create_table(:annotation_providers, {:id=>:integer})2752 -> 0.0089s2753== 20130709233500 CreateAnnotationProviders: migrated (0.0091s) ===============2755== 20130710000745 AddAnnotationProviderIdToAnnotations: migrating =============2756-- add_column(:annotations, :annotation_provider_id, :integer, {:null=>false})2757 -> 0.0008s2758== 20130710000745 AddAnnotationProviderIdToAnnotations: migrated (0.0008s) ====2760== 20130726101124 AddCanceledAtToJobsAndBuilds: migrating =====================2761-- add_column(:builds, :canceled_at, :timestamp, {:precision=>nil})2762 -> 0.0007s2763-- add_column(:jobs, :canceled_at, :timestamp, {:precision=>nil})2764 -> 0.0004s2765== 20130726101124 AddCanceledAtToJobsAndBuilds: migrated (0.0012s) ============2767== 20130901183019 AddIndexOnRepositoryGithubId: migrating =====================2768-- execute("DROP INDEX index_repositories_on_github_id")2769 -> 0.0012s2770-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_github_id ON repositories(github_id)")2771 -> 0.0039s2772== 20130901183019 AddIndexOnRepositoryGithubId: migrated (0.0052s) ============2774== 20130909203321 AddCachedMatrixIdsToBuilds: migrating =======================2775-- execute("ALTER TABLE builds ADD COLUMN cached_matrix_ids integer[]")2776 -> 0.0006s2777== 20130909203321 AddCachedMatrixIdsToBuilds: migrated (0.0007s) ==============2779== 20130910184823 CreateIndexOnBuildsIdDescAndRepositoryIdAndEventType: migrating2780-- execute("CREATE INDEX CONCURRENTLY index_builds_on_id_repository_id_and_event_type_desc ON builds (id DESC, repository_id, event_type);")2781 -> 0.0042s2782== 20130910184823 CreateIndexOnBuildsIdDescAndRepositoryIdAndEventType: migrated (0.0042s)2784== 20130916101056 AddUniqueIndexOnRepositoryGithubId: migrating ===============2785-- execute("DROP INDEX index_repositories_on_github_id")2786 -> 0.0013s2787-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_repositories_on_github_id ON repositories(github_id)")2788 -> 0.0044s2789== 20130916101056 AddUniqueIndexOnRepositoryGithubId: migrated (0.0058s) ======2791== 20130920135744 AddSettingsToRepositories: migrating ========================2792-- add_column(:repositories, :settings, :json)2793 -> 0.0007s2794== 20130920135744 AddSettingsToRepositories: migrated (0.0008s) ===============2796== 20131104101056 RemoveWorkersTableAndIndexes: migrating =====================2797-- drop_table(:workers)2798 -> 0.0011s2799== 20131104101056 RemoveWorkersTableAndIndexes: migrated (0.0011s) ============2801== 20131109101056 RemoveEventsTable: migrating ================================2802-- drop_table(:events)2803 -> 0.0009s2804== 20131109101056 RemoveEventsTable: migrated (0.0010s) =======================2806== 20140120225125 RemoveAnnotationImageInfo: migrating ========================2807-- remove_column(:annotations, :image_url)2808 -> 0.0006s2809-- remove_column(:annotations, :image_alt)2810 -> 0.0003s2811== 20140120225125 RemoveAnnotationImageInfo: migrated (0.0010s) ===============2813== 20140121003026 AddStatusToAnnotations: migrating ===========================2814-- add_column(:annotations, :status, :string)2815 -> 0.0006s2816== 20140121003026 AddStatusToAnnotations: migrated (0.0007s) ==================2818== 20140204220926 AddIndicesToRequests: migrating =============================2819-- execute("CREATE INDEX CONCURRENTLY index_requests_on_repository_id ON requests(repository_id)")2820 -> 0.0037s2821-- execute("CREATE INDEX CONCURRENTLY index_requests_on_commit_id ON requests(commit_id)")2822 -> 0.0033s2823== 20140204220926 AddIndicesToRequests: migrated (0.0071s) ====================2825== 20140210003014 AddIndicesToMemberships: migrating ==========================2826-- execute("CREATE INDEX CONCURRENTLY index_memberships_on_user_id ON memberships(user_id)")2827 -> 0.0038s2828== 20140210003014 AddIndicesToMemberships: migrated (0.0038s) =================2830== 20140210012509 RemoveUnusedIndices: migrating ==============================2831-- execute("DROP INDEX CONCURRENTLY index_commits_on_commit")2832 -> 0.0019s2833-- execute("DROP INDEX CONCURRENTLY index_builds_on_state")2834 -> 0.0019s2835-- execute("DROP INDEX CONCURRENTLY index_commits_on_branch")2836 -> 0.0018s2837-- execute("DROP INDEX CONCURRENTLY index_users_on_github_oauth_token")2838 -> 0.0018s2839-- execute("DROP INDEX CONCURRENTLY index_builds_on_finished_at")2840 -> 0.0022s2841-- execute("DROP INDEX CONCURRENTLY index_jobs_on_queue_and_state")2842 -> 0.0023s2843-- execute("DROP INDEX CONCURRENTLY index_jobs_on_created_at")2844 -> 0.0020s2845== 20140210012509 RemoveUnusedIndices: migrated (0.0140s) =====================2847== 20140612131826 AddRemovedInfoToLogs: migrating =============================2848== 20140612131826 AddRemovedInfoToLogs: migrated (0.0007s) ====================2850== 20140827121945 AddEducationFieldToUser: migrating ==========================2851-- add_column(:users, :education, :boolean)2852 -> 0.0007s2853== 20140827121945 AddEducationFieldToUser: migrated (0.0007s) =================2855== 20150121135400 JobsAddReceivedAt: migrating ================================2856-- add_column(:jobs, :received_at, :timestamp, {:precision=>nil})2857 -> 0.0007s2858== 20150121135400 JobsAddReceivedAt: migrated (0.0007s) =======================2860== 20150121135401 BuildsAddReceivedAt: migrating ==============================2861-- add_column(:builds, :received_at, :timestamp, {:precision=>nil})2862 -> 0.0007s2863== 20150121135401 BuildsAddReceivedAt: migrated (0.0007s) =====================2865== 20150204144312 AddIndexOnRepositoryIdToCommits: migrating ==================2866-- execute("DROP INDEX IF EXISTS index_commits_on_repository_id")2867 -> 0.0003s2868-- execute("CREATE INDEX CONCURRENTLY index_commits_on_repository_id ON commits(repository_id)")2869 -> 0.0043s2870== 20150204144312 AddIndexOnRepositoryIdToCommits: migrated (0.0047s) =========2872== 20150210170900 IndexRequestsOnCreatedAt: migrating =========================2873-- execute("DROP INDEX IF EXISTS index_requests_on_created_at")2874 -> 0.0003s2875-- execute("CREATE INDEX CONCURRENTLY index_requests_on_created_at ON requests(created_at)")2876 -> 0.0038s2877== 20150210170900 IndexRequestsOnCreatedAt: migrated (0.0041s) ================2879== 20150223125700 CreateBranches: migrating ===================================2880-- create_table(:branches, {:id=>:integer})2881 -> 0.0206s2882-- add_index(:branches, [:repository_id, :name], {:unique=>true})2883 -> 0.0024s2884== 20150223125700 CreateBranches: migrated (0.0232s) ==========================2886== 20150311020321 AddNextBuildNumberToRepository: migrating ===================2887-- add_column(:repositories, :next_build_number, :integer)2888 -> 0.0031s2889== 20150311020321 AddNextBuildNumberToRepository: migrated (0.0035s) ==========2891== 20150316020321 AddActiveIndexToRepository: migrating =======================2892-- execute("DROP INDEX IF EXISTS index_repositories_on_active")2893 -> 0.0013s2894-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_active ON repositories(active)")2895 -> 0.0045s2896== 20150316020321 AddActiveIndexToRepository: migrated (0.0061s) ==============2898== 20150316080321 AddOwnerTypeAndOwnerIdIndexesToBuilds: migrating ============2899-- execute("DROP INDEX IF EXISTS index_builds_on_owner_type")2900 -> 0.0012s2901-- execute("DROP INDEX IF EXISTS index_builds_on_owner_id")2902 -> 0.0006s2903-- execute("CREATE INDEX CONCURRENTLY index_builds_on_owner_type ON builds(owner_type)")2904 -> 0.0041s2905-- execute("CREATE INDEX CONCURRENTLY index_builds_on_owner_id ON builds(owner_id)")2906 -> 0.0041s2907== 20150316080321 AddOwnerTypeAndOwnerIdIndexesToBuilds: migrated (0.0105s) ===2909== 20150316100321 AddOwnerTypeAndOwnerIdIndexesToRepositories: migrating ======2910-- execute("DROP INDEX IF EXISTS index_repositories_on_owner_type")2911 -> 0.0004s2912-- execute("DROP INDEX IF EXISTS index_repositories_on_owner_id")2913 -> 0.0003s2914-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_owner_type ON repositories(owner_type)")2915 -> 0.0040s2916-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_owner_id ON repositories(owner_id)")2917 -> 0.0037s2918== 20150316100321 AddOwnerTypeAndOwnerIdIndexesToRepositories: migrated (0.0086s)2920== 20150317004600 AddSlugIndexToRepositories: migrating =======================2921-- execute("CREATE EXTENSION IF NOT EXISTS pg_trgm")2922 -> 0.0144s2923-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_slug ON repositories USING gin((owner_name || '/' || name) gin_trgm_ops)")2924 -> 0.0037s2925== 20150317004600 AddSlugIndexToRepositories: migrated (0.0183s) ==============2927== 20150317020321 AddTokenIndexToTokens: migrating ============================2928-- execute("DROP INDEX IF EXISTS index_tokens_on_token")2929 -> 0.0004s2930-- execute("CREATE INDEX CONCURRENTLY index_tokens_on_token ON tokens(token)")2931 -> 0.0046s2932== 20150317020321 AddTokenIndexToTokens: migrated (0.0052s) ===================2934== 20150317080321 AddLoginIndexToOrganizations: migrating =====================2935-- execute("DROP INDEX IF EXISTS index_organizations_on_login")2936 -> 0.0004s2937-- execute("CREATE INDEX CONCURRENTLY index_organizations_on_login ON organizations(login)")2938 -> 0.0042s2939== 20150317080321 AddLoginIndexToOrganizations: migrated (0.0047s) ============2941== 20150414001337 AddLowerCaseIndices: migrating ==============================2942-- execute("DROP INDEX IF EXISTS index_organizations_on_lower_login")2943 -> 0.0003s2944-- execute("CREATE INDEX CONCURRENTLY index_organizations_on_lower_login ON organizations USING btree(lower(login))")2945 -> 0.0041s2946-- execute("DROP INDEX IF EXISTS index_users_on_lower_login")2947 -> 0.0002s2948-- execute("CREATE INDEX CONCURRENTLY index_users_on_lower_login ON users USING btree(lower(login))")2949 -> 0.0040s2950-- execute("DROP INDEX IF EXISTS index_repositories_on_lower_name")2951 -> 0.0002s2952-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_lower_name ON repositories USING btree(lower(name))")2953 -> 0.0037s2954-- execute("DROP INDEX IF EXISTS index_repositories_on_lower_owner_name")2955 -> 0.0002s2956-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_lower_owner_name ON repositories USING btree(lower(owner_name))")2957 -> 0.0038s2958== 20150414001337 AddLowerCaseIndices: migrated (0.0169s) =====================2960== 20150528101600 RepositoriesAddIndexOwnerName: migrating ====================2961-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_owner_name ON repositories(owner_name)")2962 -> 0.0040s2963== 20150528101600 RepositoriesAddIndexOwnerName: migrated (0.0040s) ===========2965== 20150528101601 RepositoriesAddIndexName: migrating =========================2966-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_name ON repositories(name)")2967 -> 0.0040s2968== 20150528101601 RepositoriesAddIndexName: migrated (0.0040s) ================2970== 20150528101602 RepositoriesDropIndexOwnerNameName: migrating ===============2971-- execute("DROP INDEX CONCURRENTLY index_repositories_on_owner_name_and_name")2972 -> 0.0022s2973== 20150528101602 RepositoriesDropIndexOwnerNameName: migrated (0.0022s) ======2975== 20150528101603 BuildsAddIndexEventType: migrating ==========================2976-- execute("CREATE INDEX CONCURRENTLY index_builds_on_event_type ON builds (event_type)")2977 -> 0.0039s2978== 20150528101603 BuildsAddIndexEventType: migrated (0.0039s) =================2980== 20150528101604 BuildsAddIndexRepositoryId: migrating =======================2981-- execute("CREATE INDEX CONCURRENTLY index_builds_on_repository_id ON builds (repository_id)")2982 -> 0.0039s2983== 20150528101604 BuildsAddIndexRepositoryId: migrated (0.0040s) ==============2985== 20150528101605 BuildsAddIndexState: migrating ==============================2986-- execute("CREATE INDEX CONCURRENTLY index_builds_on_state ON builds (state)")2987 -> 0.0036s2988== 20150528101605 BuildsAddIndexState: migrated (0.0037s) =====================2990== 20150528101607 BuildsAddIndexBranch: migrating =============================2991-- execute("CREATE INDEX CONCURRENTLY index_builds_on_branch ON builds (branch)")2992 -> 0.0038s2993== 20150528101607 BuildsAddIndexBranch: migrated (0.0039s) ====================2995== 20150528101608 BuildsDropIndexRepositoryIdAndState: migrating ==============2996-- execute("DROP INDEX CONCURRENTLY index_builds_on_repository_id_and_state")2997 -> 0.0023s2998== 20150528101608 BuildsDropIndexRepositoryIdAndState: migrated (0.0023s) =====3000== 20150528101609 BuildsDropIndexRepositoryIdAndEventType: migrating ==========3001-- execute("DROP INDEX CONCURRENTLY index_builds_on_repository_id_and_event_type")3002 -> 0.0024s3003== 20150528101609 BuildsDropIndexRepositoryIdAndEventType: migrated (0.0024s) =3005== 20150528101610 BuildsDropIndexIdRepositoryIdAndEventTypeDesc: migrating ====3006-- execute("DROP INDEX CONCURRENTLY index_builds_on_id_repository_id_and_event_type_desc")3007 -> 0.0025s3008== 20150528101610 BuildsDropIndexIdRepositoryIdAndEventTypeDesc: migrated (0.0025s)3010== 20150528101611 BuildsDropIndexRepositoryIdAndEventTypeAndStateAndBranch: migrating3011-- execute("DROP INDEX CONCURRENTLY index_builds_on_repository_id_and_event_type_and_state_and_bran")3012 -> 0.0022s3013== 20150528101611 BuildsDropIndexRepositoryIdAndEventTypeAndStateAndBranch: migrated (0.0022s)3015== 20150609175200 AddCancelationColumnsToSubscriptions: migrating =============3016-- change_table(:subscriptions)3017 -> 0.0012s3018== 20150609175200 AddCancelationColumnsToSubscriptions: migrated (0.0012s) ====3020== 20150610143500 JobsAddIndexOwnerId: migrating ==============================3021-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_owner_id ON jobs (owner_id)")3022 -> 0.0045s3023== 20150610143500 JobsAddIndexOwnerId: migrated (0.0045s) =====================3025== 20150610143501 JobsAddIndexOwnerType: migrating ============================3026-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_owner_type ON jobs (owner_type)")3027 -> 0.0041s3028== 20150610143501 JobsAddIndexOwnerType: migrated (0.0041s) ===================3030== 20150610143502 JobsAddIndexSourceId: migrating =============================3031-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_source_id ON jobs (source_id)")3032 -> 0.0038s3033== 20150610143502 JobsAddIndexSourceId: migrated (0.0039s) ====================3035== 20150610143503 JobsAddIndexSourceType: migrating ===========================3036-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_source_type ON jobs (source_type)")3037 -> 0.0038s3038== 20150610143503 JobsAddIndexSourceType: migrated (0.0038s) ==================3040== 20150610143504 JobsAddIndexType: migrating =================================3041-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_type ON jobs (type)")3042 -> 0.0091s3043== 20150610143504 JobsAddIndexType: migrated (0.0091s) ========================3045== 20150610143505 JobsDropIndexOwnerIdAndOwnerTypeAndState: migrating =========3046-- execute("DROP INDEX CONCURRENTLY index_jobs_on_owner_id_and_owner_type_and_state")3047 -> 0.0025s3048== 20150610143505 JobsDropIndexOwnerIdAndOwnerTypeAndState: migrated (0.0025s)3050== 20150610143506 JobsDropIndexStateOwnerTypeOwnerId: migrating ===============3051-- execute("DROP INDEX CONCURRENTLY index_jobs_on_state_owner_type_owner_id")3052 -> 0.0025s3053== 20150610143506 JobsDropIndexStateOwnerTypeOwnerId: migrated (0.0025s) ======3055== 20150610143507 JobsDropIndexTypeAndSourceIdAndSourceType: migrating ========3056-- 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"})3057 -> 0.0058s3058== 20150610143507 JobsDropIndexTypeAndSourceIdAndSourceType: migrated (0.0058s)3060== 20150610143508 JobsAddIndexState: migrating ================================3061-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_state ON jobs (state)")3062 -> 0.0052s3063== 20150610143508 JobsAddIndexState: migrated (0.0052s) =======================3065== 20150610143509 JobsAddIndexQueue: migrating ================================3066-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_queue ON jobs (queue)")3067 -> 0.0041s3068== 20150610143509 JobsAddIndexQueue: migrated (0.0042s) =======================3070== 20150610143510 TokensAddIndexUserId: migrating =============================3071-- execute("CREATE INDEX CONCURRENTLY index_tokens_on_user_id ON tokens (user_id)")3072 -> 0.0044s3073== 20150610143510 TokensAddIndexUserId: migrated (0.0045s) ====================3075== 20150615103059 AddStatusToSubscriptions: migrating =========================3076-- add_column(:subscriptions, :status, :string)3077 -> 0.0012s3078== 20150615103059 AddStatusToSubscriptions: migrated (0.0013s) ================3080== 20150629231300 ReposAddInvalidatedAt: migrating ============================3081-- add_column(:repositories, :invalidated_at, :timestamp, {:precision=>nil})3082 -> 0.0011s3083== 20150629231300 ReposAddInvalidatedAt: migrated (0.0012s) ===================3085== 20150923131400 BroadcastsAddCategory: migrating ============================3086-- add_column(:broadcasts, :category, :string)3087 -> 0.0012s3088== 20150923131400 BroadcastsAddCategory: migrated (0.0013s) ===================3090== 20151112153500 CreateStars: migrating ======================================3091-- create_table(:stars, {:id=>:integer})3092 -> 0.0047s3093-- add_index(:stars, :user_id)3094 -> 0.0023s3095== 20151112153500 CreateStars: migrated (0.0072s) =============================3097== 20151113111400 StarsAddIndexUserIdAndRepositoryId: migrating ===============3098-- execute("CREATE UNIQUE INDEX index_stars_on_user_id_and_repository_id ON stars (user_id, repository_id)")3099 -> 0.0028s3100== 20151113111400 StarsAddIndexUserIdAndRepositoryId: migrated (0.0069s) ======3102== 20151127153500 UsersAddIndexGithubOauthToken: migrating ====================3103-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_users_on_github_oauth_token ON users (github_oauth_token)")3104 -> 0.0057s3105== 20151127153500 UsersAddIndexGithubOauthToken: migrated (0.0058s) ===========3107== 20151127154200 AnnotationsAddIndexJobId: migrating =========================3108-- execute("CREATE INDEX CONCURRENTLY index_annotations_on_job_id ON annotations (job_id)")3109 -> 0.0044s3110== 20151127154200 AnnotationsAddIndexJobId: migrated (0.0046s) ================3112== 20151127154600 BroadcastsAddIndexRecipientIdAndRecipientType: migrating ====3113-- execute("CREATE INDEX CONCURRENTLY index_broadcasts_on_recipient_id_and_recipient_type ON broadcasts (recipient_id, recipient_type)")3114 -> 0.0044s3115== 20151127154600 BroadcastsAddIndexRecipientIdAndRecipientType: migrated (0.0045s)3117== 20151202122200 UsersAddFirstLoggedInAt: migrating ==========================3118-- add_column(:users, :first_logged_in_at, :timestamp, {:precision=>nil})3119 -> 0.0009s3120== 20151202122200 UsersAddFirstLoggedInAt: migrated (0.0010s) =================3122== 20160107120927 AddCronTable: migrating =====================================3123-- create_table(:crons, {:id=>:integer})3124 -> 0.0059s3125== 20160107120927 AddCronTable: migrated (0.0060s) ============================3127== 20160303165750 AddDebugOptionsToJobs: migrating ============================3128-- add_column(:jobs, :debug_options, :text)3129 -> 0.0008s3130== 20160303165750 AddDebugOptionsToJobs: migrated (0.0008s) ===================3132== 20160412113020 BuildsDropIndexOwnerType: migrating =========================3133-- execute("DROP INDEX CONCURRENTLY index_builds_on_owner_type")3134 -> 0.0023s3135== 20160412113020 BuildsDropIndexOwnerType: migrated (0.0024s) ================3137== 20160412113070 RepositoriesDropIndexLastBuildStartedAt: migrating ==========3138-- execute("DROP INDEX CONCURRENTLY index_repositories_on_last_build_started_at")3139 -> 0.0020s3140== 20160412113070 RepositoriesDropIndexLastBuildStartedAt: migrated (0.0020s) =3142== 20160412121405 JobsDropIndexType: migrating ================================3143-- execute("DROP INDEX CONCURRENTLY index_jobs_on_type")3144 -> 0.0019s3145== 20160412121405 JobsDropIndexType: migrated (0.0020s) =======================3147== 20160412123900 JobsDropIndexSourceType: migrating ==========================3148-- execute("DROP INDEX CONCURRENTLY index_jobs_on_source_type")3149 -> 0.0020s3150== 20160412123900 JobsDropIndexSourceType: migrated (0.0021s) =================3152== 20160414214442 JobsAddIndexQueuedAt: migrating =============================3153-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_queued_at ON jobs (queued_at)")3154 -> 0.0036s3155== 20160414214442 JobsAddIndexQueuedAt: migrated (0.0037s) ====================3157== 20160422104300 BuildsAddIndexNumber: migrating =============================3158-- execute("CREATE INDEX CONCURRENTLY index_builds_on_number ON builds (number)")3159 -> 0.0038s3160== 20160422104300 BuildsAddIndexNumber: migrated (0.0038s) ====================3162== 20160422121400 BuildsAddIndexRepositoryIdAndNumberAndEventType: migrating ==3163-- execute("CREATE INDEX CONCURRENTLY index_builds_on_repository_id_and_number_and_event_type ON builds (repository_id, number, event_type)")3164 -> 0.0040s3165== 20160422121400 BuildsAddIndexRepositoryIdAndNumberAndEventType: migrated (0.0040s)3167== 20160510142700 JobsAddIndexCreatedAt: migrating ============================3168-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_created_at ON jobs (created_at)")3169 -> 0.0504s3170== 20160510142700 JobsAddIndexCreatedAt: migrated (0.0505s) ===================3172== 20160510144200 BuildsAddPrivate: migrating =================================3173-- change_table(:builds)3174 -> 0.0009s3175== 20160510144200 BuildsAddPrivate: migrated (0.0010s) ========================3177== 20160510150300 JobsAddPrivate: migrating ===================================3178-- change_table(:jobs)3179 -> 0.0008s3180== 20160510150300 JobsAddPrivate: migrated (0.0009s) ==========================3182== 20160510150400 RequestsAddPrivate: migrating ===============================3183-- change_table(:requests)3184 -> 0.0007s3185== 20160510150400 RequestsAddPrivate: migrated (0.0007s) ======================3187== 20160513074300 AddCurrentBuildIdToRepositories: migrating ==================3188-- add_column(:repositories, :current_build_id, :bigint)3189 -> 0.0007s3190-- execute("ALTER TABLE repositories ADD CONSTRAINT fk_repositories_current_build_id FOREIGN KEY (current_build_id) REFERENCES builds (id);")3191 -> 0.0016s3192== 20160513074300 AddCurrentBuildIdToRepositories: migrated (0.0023s) =========3194== 20160609163600 PermissionsAddIndexUserIdAndRepositoryId: migrating =========3195-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_permissions_on_user_id_and_repository_id ON permissions (user_id, repository_id)")3196 -> 0.0040s3197== 20160609163600 PermissionsAddIndexUserIdAndRepositoryId: migrated (0.0041s)3199== 20160623133900 CreatePreviousJobStates: migrating ==========================3200-- create_table(:previous_job_states, {:id=>:integer})3201 -> 0.0057s3202-- add_column(:jobs, :previous_job_state_id, :bigint)3203 -> 0.0005s3204== 20160623133900 CreatePreviousJobStates: migrated (0.0064s) =================3206== 20160623133901 AddPreviousStatesTriggers: migrating ========================3207-- 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")3208 -> 0.0070s3209== 20160623133901 AddPreviousStatesTriggers: migrated (0.0071s) ===============3211== 20160712125400 RevertPreviousJobStates: migrating ==========================3212-- 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")3213 -> 0.0013s3214-- remove_column(:jobs, :previous_job_state_id)3215 -> 0.0005s3216-- drop_table(:previous_job_states)3217 -> 0.0010s3218== 20160712125400 RevertPreviousJobStates: migrated (0.0028s) =================3220== 20160819103700 AddAvatarUrlToUsers: migrating ==============================3221-- add_column(:users, :avatar_url, :string)3222 -> 0.0015s3223== 20160819103700 AddAvatarUrlToUsers: migrated (0.0016s) =====================3225== 20160920220400 AddRoleToMemberships: migrating =============================3226-- add_column(:memberships, :role, :string)3227 -> 0.0047s3228== 20160920220400 AddRoleToMemberships: migrated (0.0050s) ====================3230== 20161028154600 RemoveTypeIndices: migrating ================================3231-- execute("DROP INDEX CONCURRENTLY IF EXISTS index_requests_on_event_type")3232 -> 0.0009s3233-- execute("DROP INDEX CONCURRENTLY IF EXISTS index_jobs_on_owner_type")3234 -> 0.0028s3235== 20161028154600 RemoveTypeIndices: migrated (0.0041s) =======================3237== 20161101000000 AddNextRunLastRunToCrons: migrating =========================3238-- column_exists?(:crons, :next_run)3239 -> 0.0095s3240-- add_column(:crons, :next_run, :timestamp, {:precision=>nil})3241 -> 0.0019s3242-- column_exists?(:crons, :last_run)3243 -> 0.0034s3244-- add_column(:crons, :last_run, :timestamp, {:precision=>nil})3245 -> 0.0016s3246== 20161101000000 AddNextRunLastRunToCrons: migrated (0.0173s) ================3248== 20161101000001 AddDontRunIfRecentBuildExists: migrating ====================3249-- column_exists?(:crons, :dont_run_if_recent_build_exists)3250 -> 0.0044s3251-- add_column(:crons, :dont_run_if_recent_build_exists, :boolean, {:default=>false})3252 -> 0.0033s3253== 20161101000001 AddDontRunIfRecentBuildExists: migrated (0.0078s) ===========3255== 20161201112200 CreateBetaFeatures: migrating ===============================3256-- create_table(:beta_features, {:id=>:integer})3257 -> 0.0074s3258== 20161201112200 CreateBetaFeatures: migrated (0.0075s) ======================3260== 20161201112600 CreateUserBetaFeatures: migrating ===========================3261-- create_table(:user_beta_features, {:id=>:integer})3262 -> 0.0036s3263-- add_index(:user_beta_features, [:user_id, :beta_feature_id])3264 -> 0.0021s3265== 20161201112600 CreateUserBetaFeatures: migrated (0.0058s) ==================3267== 20161202000000 RemoveDisableByBuildFromCrons: migrating ====================3268-- remove_column(:crons, :disable_by_build)3269 -> 0.0006s3270== 20161202000000 RemoveDisableByBuildFromCrons: migrated (0.0006s) ===========3272== 20161206155800 AddBillingAdminOnlyToOrganizations: migrating ===============3273-- add_column(:organizations, :billing_admin_only, :boolean)3274 -> 0.0005s3275== 20161206155800 AddBillingAdminOnlyToOrganizations: migrated (0.0006s) ======3277== 20161221171300 BuildsAddIndexRepositoryIdAndNumber: migrating ==============3278-- execute("CREATE INDEX CONCURRENTLY index_builds_on_repository_id_and_number ON builds(repository_id, (number::integer))")3279 -> 0.0041s3280== 20161221171300 BuildsAddIndexRepositoryIdAndNumber: migrated (0.0041s) =====3282== 20170211000000 JobsAddStageNumber: migrating ===============================3283-- add_column(:jobs, :stage_number, :string)3284 -> 0.0005s3285== 20170211000000 JobsAddStageNumber: migrated (0.0006s) ======================3287== 20170211000001 JobsAddStageId: migrating ===================================3288-- change_table(:jobs)3289 -> 0.0007s3290== 20170211000001 JobsAddStageId: migrated (0.0007s) ==========================3292== 20170211000002 StagesCreate: migrating =====================================3293-- create_table(:stages, {:id=>:integer})3294 -> 0.0055s3295== 20170211000002 StagesCreate: migrated (0.0055s) ============================3297== 20170211000003 StagesAddStateAndTimestamps: migrating ======================3298-- change_table(:stages)3299 -> 0.0014s3300== 20170211000003 StagesAddStateAndTimestamps: migrated (0.0014s) =============3302== 20170213124000 AddConstraintForOwnerIdToSubscriptions: migrating ===========3303-- execute("CREATE UNIQUE INDEX subscriptions_owner ON subscriptions (owner_id, owner_type) WHERE (status = 'subscribed');")3304 -> 0.0026s3305== 20170213124000 AddConstraintForOwnerIdToSubscriptions: migrated (0.0026s) ==3307== 20170316000000 QueueableJobsCreate: migrating ==============================3308-- create_table(:queueable_jobs, {:id=>:integer})3309 -> 0.0032s3310== 20170316000000 QueueableJobsCreate: migrated (0.0033s) =====================3312== 20170316000001 QueueableJobsIndexJobId: migrating ==========================3313-- add_index(:queueable_jobs, :job_id, {:algorithm=>:concurrently})3314 -> 0.0040s3315== 20170316000001 QueueableJobsIndexJobId: migrated (0.0040s) =================3317== 20170318000000 PullRequestsCreate: migrating ===============================3318-- create_table(:pull_requests, {:id=>:integer})3319 -> 0.0055s3320== 20170318000000 PullRequestsCreate: migrated (0.0056s) ======================3322== 20170318000001 RequestsAddPullRequestId: migrating =========================3323-- change_table(:requests)3324 -> 0.0008s3325== 20170318000001 RequestsAddPullRequestId: migrated (0.0008s) ================3327== 20170318000002 BuildsAddPullRequestId: migrating ===========================3328-- change_table(:builds)3329 -> 0.0007s3330== 20170318000002 BuildsAddPullRequestId: migrated (0.0008s) ==================3332== 20170322000000 AddIndexOnRequestsRepositoryIdAndIdDesc: migrating ==========3333-- execute("CREATE INDEX CONCURRENTLY index_requests_on_repository_id_and_id_desc ON requests (repository_id, id DESC);")3334 -> 0.0040s3335== 20170322000000 AddIndexOnRequestsRepositoryIdAndIdDesc: migrated (0.0041s) =3337== 20170331000000 AddIndexRepositoryIdOnPullRequests: migrating ===============3338-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_pull_requests_on_repository_id_and_number ON pull_requests (repository_id, (number::integer));")3339 -> 0.0037s3340== 20170331000000 AddIndexRepositoryIdOnPullRequests: migrated (0.0037s) ======3342== 20170401000000 OwnerGroupsCreate: migrating ================================3343-- create_table(:owner_groups, {:id=>:integer})3344 -> 0.0055s3345== 20170401000000 OwnerGroupsCreate: migrated (0.0056s) =======================3347== 20170401000001 OwnerGroupsIndexOwnerIdOwnerType: migrating =================3348-- execute("CREATE INDEX CONCURRENTLY index_owner_groups_on_owner_type_and_owner_id ON owner_groups (owner_type, owner_id);")3349 -> 0.0035s3350== 20170401000001 OwnerGroupsIndexOwnerIdOwnerType: migrated (0.0035s) ========3352== 20170401000002 OwnerGroupsIndexUuid: migrating =============================3353-- execute("CREATE INDEX CONCURRENTLY index_owner_groups_on_uuid ON owner_groups (uuid);")3354 -> 0.0036s3355== 20170401000002 OwnerGroupsIndexUuid: migrated (0.0036s) ====================3357== 20170405000000 TagsCreate: migrating =======================================3358-- create_table(:tags, {:id=>:integer})3359 -> 0.0048s3360== 20170405000000 TagsCreate: migrated (0.0049s) ==============================3362== 20170405000001 RequestsAddBranchIdAndTagId: migrating ======================3363-- change_table(:requests)3364 -> 0.0151s3365== 20170405000001 RequestsAddBranchIdAndTagId: migrated (0.0153s) =============3367== 20170405000002 CommitsAddBranchIdAndTagId: migrating =======================3368-- change_table(:commits)3369 -> 0.0044s3370== 20170405000002 CommitsAddBranchIdAndTagId: migrated (0.0045s) ==============3372== 20170405000003 BuildsAddBranchIdAndTagId: migrating ========================3373-- change_table(:builds)3374 -> 0.0041s3375== 20170405000003 BuildsAddBranchIdAndTagId: migrated (0.0044s) ===============3377== 20170408000000 RequestsAddSenderId: migrating ==============================3378-- change_table(:requests)3379 -> 0.0042s3380== 20170408000000 RequestsAddSenderId: migrated (0.0043s) =====================3382== 20170408000001 BuildsAddSenderId: migrating ================================3383-- change_table(:builds)3384 -> 0.0018s3385== 20170408000001 BuildsAddSenderId: migrated (0.0018s) =======================3387== 20170410000000 JobsIndexStageId: migrating =================================3388-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_stage_id ON jobs (stage_id);")3389 -> 0.0044s3390== 20170410000000 JobsIndexStageId: migrated (0.0044s) ========================3392== 20170411000000 TagsIndexRepoIdAndName: migrating ===========================3393-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_tags_on_repository_id_and_name ON tags (repository_id, name);")3394 -> 0.0036s3395== 20170411000000 TagsIndexRepoIdAndName: migrated (0.0036s) ==================3397== 20170419093249 AddSourceToSubscriptions: migrating =========================3398-- execute(" CREATE TYPE source_type AS ENUM ('manual', 'stripe', 'github', 'unknown');\n")3399 -> 0.0010s3400-- add_column(:subscriptions, :source, :source_type, {:default=>"unknown", :null=>false})3401 -> 0.0010s3402== 20170419093249 AddSourceToSubscriptions: migrated (0.0021s) ================3404== 20170531125700 AddIndexOnBuildsSenderTypeAndSenderId: migrating ============3405-- execute("CREATE INDEX CONCURRENTLY index_builds_on_sender_type_and_sender_id ON builds (sender_type, sender_id);")3406 -> 0.0044s3407== 20170531125700 AddIndexOnBuildsSenderTypeAndSenderId: migrated (0.0044s) ===3409== 20170601163700 DropIndexOnRepositoriesBuildsAndCommits: migrating ==========3410-- execute("DROP INDEX CONCURRENTLY index_repositories_on_lower_owner_name")3411 -> 0.0020s3412-- execute("DROP INDEX CONCURRENTLY index_repositories_on_owner_type")3413 -> 0.0020s3414-- execute("DROP INDEX CONCURRENTLY index_commits_on_repository_id")3415 -> 0.0021s3416-- execute("DROP INDEX CONCURRENTLY index_builds_on_number")3417 -> 0.0022s3418== 20170601163700 DropIndexOnRepositoriesBuildsAndCommits: migrated (0.0085s) =3420== 20170601164400 AddIndexOnBuildsAndStages: migrating ========================3421-- execute("CREATE INDEX CONCURRENTLY index_builds_on_repository_id_and_branch_and_event_type_and_id ON builds (repository_id, branch, event_type, id)")3422 -> 0.0039s3423-- execute("CREATE INDEX CONCURRENTLY index_stages_on_build_id ON stages (build_id)")3424 -> 0.0032s3425== 20170601164400 AddIndexOnBuildsAndStages: migrated (0.0072s) ===============3427== 20170609174400 DropUnusedIndexesOnJobsAndBuilds: migrating =================3428-- execute("DROP INDEX CONCURRENTLY index_jobs_on_repository_id")3429 -> 0.0021s3430-- execute("DROP INDEX CONCURRENTLY index_jobs_on_queued_at")3431 -> 0.0020s3432-- execute("DROP INDEX CONCURRENTLY index_jobs_on_queue")3433 -> 0.0019s3434-- execute("DROP INDEX CONCURRENTLY index_jobs_on_owner_id")3435 -> 0.0017s3436-- execute("DROP INDEX CONCURRENTLY index_builds_on_branch")3437 -> 0.0018s3438-- execute("DROP INDEX CONCURRENTLY index_builds_on_event_type")3439 -> 0.0018s3440-- execute("DROP INDEX CONCURRENTLY index_builds_on_owner_id")3441 -> 0.0018s3442== 20170609174400 DropUnusedIndexesOnJobsAndBuilds: migrated (0.0130s) ========3444== 20170613000000 CreateTrials: migrating =====================================3445-- create_table(:trials, {:id=>:integer})3446 -> 0.0065s3447-- execute("CREATE INDEX CONCURRENTLY index_trials_on_owner ON trials(owner_id, owner_type)")3448 -> 0.0036s3449== 20170613000000 CreateTrials: migrated (0.0102s) ============================3451== 20170620144500 AddIndexesOnBuildsAndJobsAndBranches: migrating =============3452-- execute("CREATE INDEX CONCURRENTLY index_builds_on_repository_id_and_branch_and_id_desc ON builds (repository_id, branch, id DESC)")3453 -> 0.0036s3454-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_owner_id_and_owner_type_and_state ON jobs (owner_id, owner_type, state)")3455 -> 0.0038s3456-- execute("CREATE INDEX CONCURRENTLY index_branches_on_repository_id ON branches (repository_id)")3457 -> 0.0035s3458== 20170620144500 AddIndexesOnBuildsAndJobsAndBranches: migrated (0.0110s) ====3460== 20170621142300 RemovePlansTable: migrating =================================3461-- drop_table(:plans)3462 -> 0.0010s3463== 20170621142300 RemovePlansTable: migrated (0.0010s) ========================3465== 20170713162000 AddCcLastDigitsToInvoices: migrating ========================3466-- change_table(:invoices)3467 -> 0.0007s3468== 20170713162000 AddCcLastDigitsToInvoices: migrated (0.0007s) ===============3470== 20170822171600 CreateMessages: migrating ===================================3471-- create_table("messages", {:force=>:cascade, :id=>:integer})3472 -> 0.0061s3473-- execute("CREATE INDEX CONCURRENTLY index_messages_on_subject_type_and_subject_id ON messages(subject_type, subject_id)")3474 -> 0.0039s3475== 20170822171600 CreateMessages: migrated (0.0101s) ==========================3477== 20170831000000 CreateTrialAllowances: migrating ============================3478-- create_table(:trial_allowances, {:id=>:integer})3479 -> 0.0051s3480-- add_index(:trial_allowances, :trial_id)3481 -> 0.0019s3482-- add_index(:trial_allowances, [:creator_id, :creator_type])3483 -> 0.0019s3484== 20170831000000 CreateTrialAllowances: migrated (0.0091s) ===================3486== 20170911172800 AddIndexOnJobsUpdatedAt: migrating ==========================3487-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_updated_at ON jobs (updated_at)")3488 -> 0.0035s3489== 20170911172800 AddIndexOnJobsUpdatedAt: migrated (0.0036s) =================3491== 20171017104500 AddConcurrencyToSubscriptions: migrating ====================3492-- change_table(:subscriptions)3493 -> 0.0007s3494== 20171017104500 AddConcurrencyToSubscriptions: migrated (0.0007s) ===========3496== 20171024000000 AddAbuseTable: migrating ====================================3497-- create_table(:abuses, {:id=>:integer})3498 -> 0.0062s3499-- execute("CREATE INDEX CONCURRENTLY index_abuses_on_owner ON abuses(owner_id)")3500 -> 0.0034s3501== 20171024000000 AddAbuseTable: migrated (0.0097s) ===========================3503== 20171025000000 AddUpdatedAtTriggerToBuildsAndJobs: migrating ===============3504-- 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")3505 -> 0.0008s3506== 20171025000000 AddUpdatedAtTriggerToBuildsAndJobs: migrated (0.0008s) ======3508== 20171103000000 UpdateIndexOnAbuses: migrating ==============================3509-- index_exists?(:abuses, :owner, {:name=>"index_abuses_on_owner"})3510 -> 0.0014s3511-- index_exists?(:abuses, [:owner_id, :owner_type, :level], {:name=>"index_abuses_on_owner_id_and_owner_type_and_level"})3512 -> 0.0011s3513-- add_index(:abuses, [:owner_id, :owner_type, :level], {:unique=>true, :algorithm=>:concurrently})3514 -> 0.0039s3515== 20171103000000 UpdateIndexOnAbuses: migrated (0.0066s) =====================3517== 20171211000000 AddRepositoryIdBranchEventTypeIndexOnBuilds: migrating ======3518-- 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')")3519 -> 0.0040s3520== 20171211000000 AddRepositoryIdBranchEventTypeIndexOnBuilds: migrated (0.0040s)3522== 20180212000000 UsersAddSuspended: migrating ================================3523-- add_column(:users, :suspended, :boolean, {:default=>false})3524 -> 0.0016s3525== 20180212000000 UsersAddSuspended: migrated (0.0017s) =======================3527== 20180213000000 UsersAddSuspendedAt: migrating ==============================3528-- add_column(:users, :suspended_at, :timestamp, {:precision=>nil})3529 -> 0.0011s3530== 20180213000000 UsersAddSuspendedAt: migrated (0.0012s) =====================3532== 20180222000000 AddComIdAndOrgId: migrating =================================3533-- add_column(:branches, :org_id, :integer)3534 -> 0.0008s3535-- add_column(:builds, :org_id, :integer)3536 -> 0.0005s3537-- add_column(:commits, :org_id, :integer)3538 -> 0.0005s3539-- add_column(:crons, :org_id, :integer)3540 -> 0.0005s3541-- add_column(:jobs, :org_id, :integer)3542 -> 0.0005s3543-- add_column(:organizations, :org_id, :integer)3544 -> 0.0004s3545-- add_column(:permissions, :org_id, :integer)3546 -> 0.0005s3547-- add_column(:pull_requests, :org_id, :integer)3548 -> 0.0005s3549-- add_column(:repositories, :org_id, :integer)3550 -> 0.0005s3551-- add_column(:requests, :org_id, :integer)3552 -> 0.0005s3553-- add_column(:ssl_keys, :org_id, :integer)3554 -> 0.0005s3555-- add_column(:stages, :org_id, :integer)3556 -> 0.0004s3557-- add_column(:tags, :org_id, :integer)3558 -> 0.0005s3559-- add_column(:users, :org_id, :integer)3560 -> 0.0005s3561-- add_column(:branches, :com_id, :integer)3562 -> 0.0005s3563-- add_column(:builds, :com_id, :integer)3564 -> 0.0005s3565-- add_column(:commits, :com_id, :integer)3566 -> 0.0004s3567-- add_column(:crons, :com_id, :integer)3568 -> 0.0004s3569-- add_column(:jobs, :com_id, :integer)3570 -> 0.0005s3571-- add_column(:organizations, :com_id, :integer)3572 -> 0.0004s3573-- add_column(:permissions, :com_id, :integer)3574 -> 0.0004s3575-- add_column(:pull_requests, :com_id, :integer)3576 -> 0.0004s3577-- add_column(:repositories, :com_id, :integer)3578 -> 0.0005s3579-- add_column(:requests, :com_id, :integer)3580 -> 0.0005s3581-- add_column(:ssl_keys, :com_id, :integer)3582 -> 0.0004s3583-- add_column(:stages, :com_id, :integer)3584 -> 0.0004s3585-- add_column(:tags, :com_id, :integer)3586 -> 0.0004s3587-- add_column(:users, :com_id, :integer)3588 -> 0.0004s3589== 20180222000000 AddComIdAndOrgId: migrated (0.0144s) ========================3591== 20180222000001 AddComIdAndOrgIdIndices: migrating ==========================3592-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_branches_on_org_id ON branches USING btree (org_id)")3593 -> 0.0047s3594-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_builds_on_org_id ON builds USING btree (org_id)")3595 -> 0.0056s3596-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_jobs_on_org_id ON jobs USING btree (org_id)")3597 -> 0.0046s3598-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_commits_on_org_id ON commits USING btree (org_id)")3599 -> 0.0038s3600-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_crons_on_org_id ON crons USING btree (org_id)")3601 -> 0.0038s3602-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_organizations_on_org_id ON organizations USING btree (org_id)")3603 -> 0.0035s3604-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_permissions_on_org_id ON permissions USING btree (org_id)")3605 -> 0.0038s3606-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_pull_requests_on_org_id ON pull_requests USING btree (org_id)")3607 -> 0.0038s3608-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_repositories_on_org_id ON repositories USING btree (org_id)")3609 -> 0.0040s3610-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_requests_on_org_id ON requests USING btree (org_id)")3611 -> 0.0037s3612-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_ssl_keys_on_org_id ON ssl_keys USING btree (org_id)")3613 -> 0.0037s3614-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_stages_on_org_id ON stages USING btree (org_id)")3615 -> 0.0042s3616-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_tags_on_org_id ON tags USING btree (org_id)")3617 -> 0.0039s3618-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_users_on_org_id ON users USING btree (org_id)")3619 -> 0.0041s3620-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_branches_on_com_id ON branches USING btree (com_id)")3621 -> 0.0035s3622-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_builds_on_com_id ON builds USING btree (com_id)")3623 -> 0.0038s3624-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_jobs_on_com_id ON jobs USING btree (com_id)")3625 -> 0.0042s3626-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_commits_on_com_id ON commits USING btree (com_id)")3627 -> 0.0042s3628-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_crons_on_com_id ON crons USING btree (com_id)")3629 -> 0.0042s3630-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_organizations_on_com_id ON organizations USING btree (com_id)")3631 -> 0.0043s3632-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_permissions_on_com_id ON permissions USING btree (com_id)")3633 -> 0.0047s3634-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_pull_requests_on_com_id ON pull_requests USING btree (com_id)")3635 -> 0.0055s3636-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_repositories_on_com_id ON repositories USING btree (com_id)")3637 -> 0.0064s3638-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_requests_on_com_id ON requests USING btree (com_id)")3639 -> 0.0036s3640-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_ssl_keys_on_com_id ON ssl_keys USING btree (com_id)")3641 -> 0.0038s3642-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_stages_on_com_id ON stages USING btree (com_id)")3643 -> 0.0035s3644-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_tags_on_com_id ON tags USING btree (com_id)")3645 -> 0.0039s3646-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_users_on_com_id ON users USING btree (com_id)")3647 -> 0.0034s3648== 20180222000001 AddComIdAndOrgIdIndices: migrated (0.1181s) =================3650== 20180222000002 AddMigrating: migrating =====================================3651-- add_column(:repositories, :migrating, :boolean)3652 -> 0.0007s3653-- add_column(:repositories, :migrated_at, :timestamp, {:precision=>nil})3654 -> 0.0004s3655-- add_column(:organizations, :migrating, :boolean)3656 -> 0.0004s3657-- add_column(:organizations, :migrated_at, :timestamp, {:precision=>nil})3658 -> 0.0004s3659-- add_column(:users, :migrating, :boolean)3660 -> 0.0004s3661-- add_column(:users, :migrated_at, :timestamp, {:precision=>nil})3662 -> 0.0006s3663== 20180222000002 AddMigrating: migrated (0.0030s) ============================3665== 20180222000003 DropFkRepositoriesCurrentBuildId: migrating =================3666-- execute("ALTER TABLE repositories DROP CONSTRAINT fk_repositories_current_build_id")3667 -> 0.0008s3668== 20180222000003 DropFkRepositoriesCurrentBuildId: migrated (0.0008s) ========3670== 20180222000009 CreateRepoCounts: migrating =================================3671-- create_table(:repo_counts, {:id=>false})3672 -> 0.0032s3673-- add_index(:repo_counts, :repository_id)3674 -> 0.0020s3675== 20180222000009 CreateRepoCounts: migrated (0.0053s) ========================3677== 20180222000012 CreateRepoCountsTriggers: migrating =========================3678-- 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")3679 -> 0.0212s3680== 20180222000012 CreateRepoCountsTriggers: migrated (0.0217s) ================3682== 20180222164100 DropAnnotations: migrating ==================================3683-- drop_table(:annotations)3684 -> 0.0023s3685-- drop_table(:annotation_providers)3686 -> 0.0021s3687== 20180222164100 DropAnnotations: migrated (0.0045s) =========================3689== 20180305143800 IndexBuildsOnRepositoryIdWhereStateNotFinished: migrating ===3690-- execute("CREATE INDEX CONCURRENTLY index_builds_on_repository_id_where_state_not_finished ON builds (repository_id) WHERE state IN ('created', 'queued', 'received', 'started');")3691 -> 0.0046s3692== 20180305143800 IndexBuildsOnRepositoryIdWhereStateNotFinished: migrated (0.0046s)3694== 20180321102400 IndexJobsOnRepositoryIdWhereStateRunning: migrating =========3695-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_repository_id_where_state_running ON jobs (repository_id) WHERE state IN ('queued', 'received', 'started')")3696 -> 0.0039s3697== 20180321102400 IndexJobsOnRepositoryIdWhereStateRunning: migrated (0.0039s)3699== 20180330000000 CreateRequestPayloads: migrating ============================3700-- create_table(:request_payloads, {:id=>:integer})3701 -> 0.0066s3702-- add_index(:request_payloads, :request_id)3703 -> 0.0022s3704-- add_index(:request_payloads, [:created_at, :archived])3705 -> 0.0021s3706== 20180330000000 CreateRequestPayloads: migrated (0.0110s) ===================3708== 20180331000000 CreateConfigs: migrating ====================================3709-- create_table(:request_configs, {:id=>:integer})3710 -> 0.0057s3711-- create_table(:build_configs, {:id=>:integer})3712 -> 0.0052s3713-- create_table(:job_configs, {:id=>:integer})3714 -> 0.0057s3715-- add_index(:request_configs, [:repository_id, :key])3716 -> 0.0022s3717-- add_index(:build_configs, [:repository_id, :key])3718 -> 0.0022s3719-- add_index(:job_configs, [:repository_id, :key])3720 -> 0.0023s3721-- add_column(:requests, :config_id, :integer)3722 -> 0.0007s3723-- add_column(:builds, :config_id, :integer)3724 -> 0.0007s3725-- add_column(:jobs, :config_id, :integer)3726 -> 0.0006s3727== 20180331000000 CreateConfigs: migrated (0.0259s) ===========================3729== 20180404000001 CreateInstallations: migrating ==============================3730-- create_table(:installations, {:id=>:integer})3731 -> 0.0120s3732-- change_table(:repositories)3733 -> 0.0015s3734== 20180404000001 CreateInstallations: migrated (0.0137s) =====================3736== 20180410000000 RequestsDropPayload: migrating ==============================3737-- remove_column(:requests, :payload, :text)3738 -> 0.0010s3739== 20180410000000 RequestsDropPayload: migrated (0.0011s) =====================3741== 20180413000000 IndexBranchesOnRepositoryIdAndNameAndId: migrating ==========3742-- execute("CREATE INDEX CONCURRENTLY index_branches_on_repository_id_and_name_and_id ON branches (repository_id, name, id)")3743 -> 0.0043s3744-- execute("DROP INDEX CONCURRENTLY index_branches_on_repository_id_and_name")3745 -> 0.0022s3746== 20180413000000 IndexBranchesOnRepositoryIdAndNameAndId: migrated (0.0067s) =3748== 20180417000000 IndexBuildsOrganizationsUsersOnUpdatedAt: migrating =========3749-- execute("CREATE INDEX CONCURRENTLY index_builds_on_updated_at ON builds (updated_at)")3750 -> 0.0042s3751-- execute("CREATE INDEX CONCURRENTLY index_users_on_updated_at ON users (updated_at)")3752 -> 0.0040s3753-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_updated_at ON repositories (updated_at)")3754 -> 0.0037s3755-- execute("CREATE INDEX CONCURRENTLY index_organizations_on_updated_at ON organizations (updated_at)")3756 -> 0.0034s3757== 20180417000000 IndexBuildsOrganizationsUsersOnUpdatedAt: migrated (0.0156s)3759== 20180420000000 ConstraintsAndIndexesForGhApps: migrating ===================3760-- execute("CREATE UNIQUE INDEX CONCURRENTLY github_id_installations_idx ON installations (github_id)")3761 -> 0.0036s3762-- execute("CREATE INDEX CONCURRENTLY managed_repositories_idx ON repositories (managed_by_installation_at)")3763 -> 0.0039s3764-- execute("CREATE UNIQUE INDEX CONCURRENTLY owner_installations_idx ON installations (owner_id, owner_type) WHERE removed_by_id IS NULL")3765 -> 0.0037s3766== 20180420000000 ConstraintsAndIndexesForGhApps: migrated (0.0113s) ==========3768== 20180425000000 IndexActiveOnOrg: migrating =================================3769-- execute("CREATE INDEX CONCURRENTLY index_active_on_org ON repositories (active_on_org)")3770 -> 0.0039s3771== 20180425000000 IndexActiveOnOrg: migrated (0.0039s) ========================3773== 20180425100000 AddRemovedAtOnInstallations: migrating ======================3774-- add_column(:installations, :removed_at, :timestamp, {:precision=>nil})3775 -> 0.0007s3776== 20180425100000 AddRemovedAtOnInstallations: migrated (0.0008s) =============3778== 20180429000000 IndexRepositoriesOnOwnerNameAndName: migrating ==============3779-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_owner_name_and_name ON repositories (owner_name, name) WHERE invalidated_at IS NULL")3780 -> 0.0041s3781== 20180429000000 IndexRepositoriesOnOwnerNameAndName: migrated (0.0041s) =====3783== 20180501000000 IndexJobsOnOwnerWhereStateRunning: migrating ================3784-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_owner_where_state_running ON jobs (owner_id, owner_type) WHERE state IN ('queued', 'received', 'started')")3785 -> 0.0042s3786== 20180501000000 IndexJobsOnOwnerWhereStateRunning: migrated (0.0043s) =======3788== 20180517000000 IndexRequestsConfigId: migrating ============================3789-- execute("CREATE INDEX CONCURRENTLY index_requests_on_config_id ON requests (config_id)")3790 -> 0.0038s3791== 20180517000000 IndexRequestsConfigId: migrated (0.0039s) ===================3793== 20180517000001 IndexBuildsConfigId: migrating ==============================3794-- execute("CREATE INDEX CONCURRENTLY index_builds_on_config_id ON requests (config_id)")3795 -> 0.0045s3796== 20180517000001 IndexBuildsConfigId: migrated (0.0045s) =====================3798== 20180517000002 IndexJobsConfigId: migrating ================================3799-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_config_id ON requests (config_id)")3800 -> 0.0040s3801== 20180517000002 IndexJobsConfigId: migrated (0.0040s) =======================3803== 20180518000000 IndexBuildsOnMultiple: migrating ============================3804-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_builds_on_repo_branch_event_type_and_private ON builds (repository_id, branch, event_type, private)")3805 -> 0.0046s3806== 20180518000000 IndexBuildsOnMultiple: migrated (0.0046s) ===================3808== 20180522000000 AddActiveFlagToCrons: migrating =============================3809-- change_table(:crons)3810 -> 0.0015s3811-- add_index(:crons, :next_run, {:where=>"(active IS TRUE)", :algorithm=>:concurrently})3812 -> 0.0040s3813== 20180522000000 AddActiveFlagToCrons: migrated (0.0056s) ====================3815== 20180531000000 CreateRequestYamlConfigs: migrating =========================3816-- create_table(:request_yaml_configs, {:id=>:integer})3817 -> 0.0063s3818-- add_index(:request_yaml_configs, [:repository_id, :key])3819 -> 0.0029s3820-- add_column(:requests, :yaml_config_id, :integer)3821 -> 0.0011s3822== 20180531000000 CreateRequestYamlConfigs: migrated (0.0105s) ================3824== 20180606000000 IndexCommitsOnRepositoryId: migrating =======================3825-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_commits_on_repository_id ON commits (repository_id)")3826 -> 0.0057s3827== 20180606000000 IndexCommitsOnRepositoryId: migrated (0.0057s) ==============3829== 20180606000001 IndexJobsOnRepositoryId: migrating ==========================3830-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_jobs_on_repository_id ON jobs (repository_id)")3831 -> 0.0035s3832== 20180606000001 IndexJobsOnRepositoryId: migrated (0.0036s) =================3834== 20180614000000 DropRequestsConfig: migrating ===============================3835-- remove_column(:requests, :config)3836 -> 0.0008s3837== 20180614000000 DropRequestsConfig: migrated (0.0008s) ======================3839== 20180614000001 DropBuildsConfig: migrating =================================3840-- remove_column(:builds, :config)3841 -> 0.0007s3842== 20180614000001 DropBuildsConfig: migrated (0.0008s) ========================3844== 20180614000002 DropJobsConfig: migrating ===================================3845-- remove_column(:jobs, :config)3846 -> 0.0008s3847== 20180614000002 DropJobsConfig: migrated (0.0008s) ==========================3849== 20180620000000 IndexBuildsOnRepositoryIdEventTypeId: migrating =============3850-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_builds_on_repository_id_event_type_id ON builds (repository_id, event_type, id DESC)")3851 -> 0.0039s3852== 20180620000000 IndexBuildsOnRepositoryIdEventTypeId: migrated (0.0040s) ====3854== 20180725000000 CreateCancellations: migrating ==============================3855-- create_table(:cancellations, {:id=>:integer})3856 -> 0.0075s3857== 20180725000000 CreateCancellations: migrated (0.0076s) =====================3859== 20180726000000 CommitsIndexAuthorEmail: migrating ==========================3860-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_commits_on_author_email ON commits (author_email)")3861 -> 0.0036s3862== 20180726000000 CommitsIndexAuthorEmail: migrated (0.0036s) =================3864== 20180726000001 CommitsIndexCommitterEmail: migrating =======================3865-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_commits_on_committer_email ON commits (committer_email)")3866 -> 0.0034s3867== 20180726000001 CommitsIndexCommitterEmail: migrated (0.0035s) ==============3869== 20180801000001 UsersAddRedactedAt: migrating ===============================3870-- change_table(:users)3871 -> 0.0008s3872== 20180801000001 UsersAddRedactedAt: migrated (0.0009s) ======================3874== 20180822000000 CreateEmailUnsubscribes: migrating ==========================3875-- create_table(:email_unsubscribes, {:id=>:integer})3876 -> 0.0093s3877== 20180822000000 CreateEmailUnsubscribes: migrated (0.0093s) =================3879== 20180823000000 AddPreferences: migrating ===================================3880-- change_table(:users)3881 -> 0.0012s3882== 20180823000000 AddPreferences: migrated (0.0012s) ==========================3884== 20180828000000 ChangePreferencesDefault: migrating =========================3885-- change_column_default(:users, :preferences, {})3886 -> 0.0039s3887== 20180828000000 ChangePreferencesDefault: migrated (0.0039s) ================3889== 20180829000000 MakeEmailUnsubscribesIdBigint: migrating ====================3890-- change_column(:email_unsubscribes, :id, :bigint)3891 -> 0.0077s3892== 20180829000000 MakeEmailUnsubscribesIdBigint: migrated (0.0077s) ===========3894== 20180830000001 JobsAddRestartedAt: migrating ===============================3895-- change_table(:jobs)3896 -> 0.0009s3897== 20180830000001 JobsAddRestartedAt: migrated (0.0009s) ======================3899== 20180830000002 BuildsAddRestartedAt: migrating =============================3900-- change_table(:builds)3901 -> 0.0008s3902== 20180830000002 BuildsAddRestartedAt: migrated (0.0009s) ====================3904== 20180830000003 JobVersionsCreate: migrating ================================3905-- create_table(:job_versions, {:id=>:integer})3906 -> 0.0054s3907== 20180830000003 JobVersionsCreate: migrated (0.0054s) =======================3909== 20180903000000 JobConfigsIndexConfigResourcesGpu: migrating ================3910-- 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")3911 -> 0.0010s3912-- 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")3913 -> 0.0040s3914== 20180903000000 JobConfigsIndexConfigResourcesGpu: migrated (0.0050s) =======3916== 20180903000001 FixIndexesOnBuildsAndJobsConfigId: migrating ================3917-- execute("DROP INDEX index_builds_on_config_id")3918 -> 0.0011s3919-- execute("CREATE INDEX CONCURRENTLY index_builds_on_config_id ON builds (config_id)")3920 -> 0.0036s3921-- execute("DROP INDEX index_jobs_on_config_id")3922 -> 0.0012s3923-- execute("CREATE INDEX CONCURRENTLY index_jobs_on_config_id ON jobs (config_id)")3924 -> 0.0035s3925== 20180903000001 FixIndexesOnBuildsAndJobsConfigId: migrated (0.0095s) =======3927== 20180904000001 CreateJobConfigsGpu: migrating ==============================3928-- 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")3929 -> 0.0022s3930== 20180904000001 CreateJobConfigsGpu: migrated (0.0023s) =====================3932== 20180906000000 AddIndexUsersPreferencesBuildEmails: migrating ==============3933-- execute("CREATE INDEX CONCURRENTLY user_preferences_build_emails_false ON users (id) WHERE preferences->>'build_emails' = 'false';\n")3934 -> 0.0039s3935== 20180906000000 AddIndexUsersPreferencesBuildEmails: migrated (0.0039s) =====3937== 20181002115306 DeleteDuplicateRecordsFromMemberships: migrating ============3938-- 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")3939 -> 0.0014s3940== 20181002115306 DeleteDuplicateRecordsFromMemberships: migrated (0.0014s) ===3942== 20181002115307 AddConstraintOnOrganizationAndUserToMemberships: migrating ==3943-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_organization_id_and_user_id_on_memberships ON memberships USING btree (organization_id, user_id);\n")3944 -> 0.0036s3945== 20181002115307 AddConstraintOnOrganizationAndUserToMemberships: migrated (0.0036s)3947== 20181018000000 IndexBuildsOnCreatedAt: migrating ===========================3948-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_builds_on_created_at ON builds (created_at)")3949 -> 0.0038s3950== 20181018000000 IndexBuildsOnCreatedAt: migrated (0.0039s) ==================3952== 20181029120000 AddMigrationStatusColumnToRepositories: migrating ===========3953-- add_column(:repositories, :migration_status, :string)3954 -> 0.0008s3955== 20181029120000 AddMigrationStatusColumnToRepositories: migrated (0.0009s) ==3957== 20181113120000 AddGithubGuidColumnToRequests: migrating ====================3958-- add_column(:requests, :github_guid, :text)3959 -> 0.0010s3960-- add_index(:requests, :github_guid, {:algorithm=>:concurrently, :unique=>true})3961 -> 0.0037s3962== 20181113120000 AddGithubGuidColumnToRequests: migrated (0.0048s) ===========3964== 20181116800000 AddConstraintsToMultipleTables: migrating ===================3965-- 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")3966 -> 0.0012s3967-- 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")3968 -> 0.0008s3969-- execute("ALTER TABLE builds ADD CONSTRAINT fk_builds_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID")3970 -> 0.0008s3971-- execute("ALTER TABLE builds ADD CONSTRAINT fk_builds_on_commit_id FOREIGN KEY (commit_id) REFERENCES commits(id) NOT VALID")3972 -> 0.0007s3973-- execute("ALTER TABLE builds ADD CONSTRAINT fk_builds_on_request_id FOREIGN KEY (request_id) REFERENCES requests(id) NOT VALID")3974 -> 0.0009s3975-- execute("ALTER TABLE builds ADD CONSTRAINT fk_builds_on_pull_request_id FOREIGN KEY (pull_request_id) REFERENCES pull_requests(id) NOT VALID")3976 -> 0.0014s3977-- execute("ALTER TABLE builds ADD CONSTRAINT fk_builds_on_branch_id FOREIGN KEY (branch_id) REFERENCES branches(id) NOT VALID")3978 -> 0.0011s3979-- execute("ALTER TABLE builds ADD CONSTRAINT fk_builds_on_tag_id FOREIGN KEY (tag_id) REFERENCES tags(id) NOT VALID")3980 -> 0.0012s3981-- execute("ALTER TABLE builds ADD CONSTRAINT fk_builds_on_config_id FOREIGN KEY (config_id) REFERENCES build_configs(id) NOT VALID")3982 -> 0.0012s3983-- execute("ALTER TABLE jobs ADD CONSTRAINT fk_jobs_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID")3984 -> 0.0012s3985-- execute("ALTER TABLE jobs ADD CONSTRAINT fk_jobs_on_commit_id FOREIGN KEY (commit_id) REFERENCES commits(id) NOT VALID")3986 -> 0.0011s3987-- execute("ALTER TABLE jobs ADD CONSTRAINT fk_jobs_on_stage_id FOREIGN KEY (stage_id) REFERENCES stages(id) NOT VALID")3988 -> 0.0011s3989-- execute("ALTER TABLE jobs ADD CONSTRAINT fk_jobs_on_config_id FOREIGN KEY (config_id) REFERENCES job_configs(id) NOT VALID")3990 -> 0.0014s3991-- execute("ALTER TABLE branches ADD CONSTRAINT fk_branches_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID")3992 -> 0.0011s3993-- 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")3994 -> 0.0012s3995-- execute("ALTER TABLE tags ADD CONSTRAINT fk_tags_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID")3996 -> 0.0010s3997-- 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")3998 -> 0.0009s3999-- execute("ALTER TABLE commits ADD CONSTRAINT fk_commits_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID")4000 -> 0.0012s4001-- execute("ALTER TABLE commits ADD CONSTRAINT fk_commits_on_branch_id FOREIGN KEY (branch_id) REFERENCES branches(id) NOT VALID")4002 -> 0.0010s4003-- execute("ALTER TABLE commits ADD CONSTRAINT fk_commits_on_tag_id FOREIGN KEY (tag_id) REFERENCES tags(id) NOT VALID")4004 -> 0.0010s4005-- execute("ALTER TABLE crons ADD CONSTRAINT fk_crons_on_branch_id FOREIGN KEY (branch_id) REFERENCES branches(id) NOT VALID")4006 -> 0.0015s4007-- execute("ALTER TABLE job_configs ADD CONSTRAINT fk_job_configs_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID")4008 -> 0.0013s4009-- execute("ALTER TABLE build_configs ADD CONSTRAINT fk_build_configs_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID")4010 -> 0.0011s4011-- execute("ALTER TABLE pull_requests ADD CONSTRAINT fk_pull_requests_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID")4012 -> 0.0013s4013-- execute("ALTER TABLE ssl_keys ADD CONSTRAINT fk_ssl_keys_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID")4014 -> 0.0011s4015-- execute("ALTER TABLE requests ADD CONSTRAINT fk_requests_on_commit_id FOREIGN KEY (commit_id) REFERENCES commits(id) NOT VALID")4016 -> 0.0015s4017-- execute("ALTER TABLE requests ADD CONSTRAINT fk_requests_on_pull_request_id FOREIGN KEY (pull_request_id) REFERENCES pull_requests(id) NOT VALID")4018 -> 0.0011s4019-- execute("ALTER TABLE requests ADD CONSTRAINT fk_requests_on_branch_id FOREIGN KEY (branch_id) REFERENCES branches(id) NOT VALID")4020 -> 0.0011s4021-- execute("ALTER TABLE requests ADD CONSTRAINT fk_requests_on_tag_id FOREIGN KEY (tag_id) REFERENCES tags(id) NOT VALID")4022 -> 0.0011s4023-- execute("ALTER TABLE requests ADD CONSTRAINT fk_requests_on_config_id FOREIGN KEY (config_id) REFERENCES request_configs(id) NOT VALID")4024 -> 0.0008s4025-- execute("ALTER TABLE stages ADD CONSTRAINT fk_stages_on_build_id FOREIGN KEY (build_id) REFERENCES builds(id) NOT VALID")4026 -> 0.0008s4027== 20181116800000 AddConstraintsToMultipleTables: migrated (0.0349s) ==========4029== 20181116800001 ValidateConstraints: migrating ==============================4030-- execute("ALTER TABLE repositories VALIDATE CONSTRAINT fk_repositories_on_current_build_id")4031 -> 0.0048s4032-- execute("ALTER TABLE repositories VALIDATE CONSTRAINT fk_repositories_on_last_build_id")4033 -> 0.0026s4034-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_builds_on_repository_id")4035 -> 0.0018s4036-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_builds_on_commit_id")4037 -> 0.0024s4038-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_builds_on_request_id")4039 -> 0.0027s4040-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_builds_on_pull_request_id")4041 -> 0.0025s4042-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_builds_on_branch_id")4043 -> 0.0021s4044-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_builds_on_tag_id")4045 -> 0.0029s4046-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_builds_on_config_id")4047 -> 0.0024s4048-- execute("ALTER TABLE jobs VALIDATE CONSTRAINT fk_jobs_on_repository_id")4049 -> 0.0029s4050-- execute("ALTER TABLE jobs VALIDATE CONSTRAINT fk_jobs_on_commit_id")4051 -> 0.0019s4052-- execute("ALTER TABLE jobs VALIDATE CONSTRAINT fk_jobs_on_stage_id")4053 -> 0.0023s4054-- execute("ALTER TABLE jobs VALIDATE CONSTRAINT fk_jobs_on_config_id")4055 -> 0.0021s4056-- execute("ALTER TABLE branches VALIDATE CONSTRAINT fk_branches_on_repository_id")4057 -> 0.0021s4058-- execute("ALTER TABLE branches VALIDATE CONSTRAINT fk_branches_on_last_build_id")4059 -> 0.0015s4060-- execute("ALTER TABLE tags VALIDATE CONSTRAINT fk_tags_on_repository_id")4061 -> 0.0021s4062-- execute("ALTER TABLE tags VALIDATE CONSTRAINT fk_tags_on_last_build_id")4063 -> 0.0017s4064-- execute("ALTER TABLE commits VALIDATE CONSTRAINT fk_commits_on_repository_id")4065 -> 0.0019s4066-- execute("ALTER TABLE commits VALIDATE CONSTRAINT fk_commits_on_branch_id")4067 -> 0.0017s4068-- execute("ALTER TABLE commits VALIDATE CONSTRAINT fk_commits_on_tag_id")4069 -> 0.0011s4070-- execute("ALTER TABLE crons VALIDATE CONSTRAINT fk_crons_on_branch_id")4071 -> 0.0024s4072-- execute("ALTER TABLE job_configs VALIDATE CONSTRAINT fk_job_configs_on_repository_id")4073 -> 0.0015s4074-- execute("ALTER TABLE build_configs VALIDATE CONSTRAINT fk_build_configs_on_repository_id")4075 -> 0.0018s4076-- execute("ALTER TABLE pull_requests VALIDATE CONSTRAINT fk_pull_requests_on_repository_id")4077 -> 0.0020s4078-- execute("ALTER TABLE ssl_keys VALIDATE CONSTRAINT fk_ssl_keys_on_repository_id")4079 -> 0.0016s4080-- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_requests_on_commit_id")4081 -> 0.0008s4082-- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_requests_on_pull_request_id")4083 -> 0.0008s4084-- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_requests_on_branch_id")4085 -> 0.0009s4086-- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_requests_on_tag_id")4087 -> 0.0008s4088-- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_requests_on_config_id")4089 -> 0.0010s4090-- execute("ALTER TABLE stages VALIDATE CONSTRAINT fk_stages_on_build_id")4091 -> 0.0010s4092== 20181116800001 ValidateConstraints: migrated (0.0607s) =====================4094== 20181126080000 AddIndexesForForeignKeys: migrating =========================4095-- index_exists?(:builds, :branch_id)4096 -> 0.0120s4097-- add_index(:builds, :branch_id, {:algorithm=>:concurrently})4098 -> 0.0064s4099-- index_exists?(:builds, :commit_id)4100 -> 0.0180s4101-- add_index(:builds, :commit_id, {:algorithm=>:concurrently})4102 -> 0.0051s4103-- index_exists?(:builds, :pull_request_id)4104 -> 0.0144s4105-- add_index(:builds, :pull_request_id, {:algorithm=>:concurrently})4106 -> 0.0049s4107-- index_exists?(:builds, :tag_id)4108 -> 0.0152s4109-- add_index(:builds, :tag_id, {:algorithm=>:concurrently})4110 -> 0.0042s4111-- index_exists?(:jobs, :commit_id)4112 -> 0.0055s4113-- add_index(:jobs, :commit_id, {:algorithm=>:concurrently})4114 -> 0.0037s4115-- index_exists?(:branches, :last_build_id)4116 -> 0.0021s4117-- add_index(:branches, :last_build_id, {:algorithm=>:concurrently})4118 -> 0.0033s4119-- index_exists?(:tags, :repository_id)4120 -> 0.0017s4121-- add_index(:tags, :repository_id, {:algorithm=>:concurrently})4122 -> 0.0035s4123-- index_exists?(:tags, :last_build_id)4124 -> 0.0020s4125-- add_index(:tags, :last_build_id, {:algorithm=>:concurrently})4126 -> 0.0039s4127-- index_exists?(:commits, :tag_id)4128 -> 0.0026s4129-- add_index(:commits, :tag_id, {:algorithm=>:concurrently})4130 -> 0.0037s4131-- index_exists?(:commits, :branch_id)4132 -> 0.0029s4133-- add_index(:commits, :branch_id, {:algorithm=>:concurrently})4134 -> 0.0041s4135-- index_exists?(:job_configs, :repository_id)4136 -> 0.0014s4137-- add_index(:job_configs, :repository_id, {:algorithm=>:concurrently})4138 -> 0.0039s4139-- index_exists?(:build_configs, :repository_id)4140 -> 0.0012s4141-- add_index(:build_configs, :repository_id, {:algorithm=>:concurrently})4142 -> 0.0033s4143-- index_exists?(:pull_requests, :repository_id)4144 -> 0.0020s4145-- add_index(:pull_requests, :repository_id, {:algorithm=>:concurrently})4146 -> 0.0034s4147-- index_exists?(:requests, :pull_request_id)4148 -> 0.0195s4149-- add_index(:requests, :pull_request_id, {:algorithm=>:concurrently})4150 -> 0.0214s4151-- index_exists?(:requests, :tag_id)4152 -> 0.0084s4153-- add_index(:requests, :tag_id, {:algorithm=>:concurrently})4154 -> 0.0044s4155-- index_exists?(:requests, :branch_id)4156 -> 0.0089s4157-- add_index(:requests, :branch_id, {:algorithm=>:concurrently})4158 -> 0.0046s4159-- index_exists?(:repositories, :current_build_id)4160 -> 0.0095s4161-- add_index(:repositories, :current_build_id, {:algorithm=>:concurrently})4162 -> 0.0049s4163-- index_exists?(:repositories, :last_build_id)4164 -> 0.0120s4165-- add_index(:repositories, :last_build_id, {:algorithm=>:concurrently})4166 -> 0.0050s4167-- index_exists?(:crons, :branch_id)4168 -> 0.0020s4169-- add_index(:crons, :branch_id, {:algorithm=>:concurrently})4170 -> 0.0033s4171== 20181126080000 AddIndexesForForeignKeys: migrated (0.2407s) ================4173== 20181128120000 AddUniqueIndexToBranchesOnRepositoryIdAndName: migrating ====4174-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_branches_on_repository_id_and_name ON branches(repository_id, name)")4175 -> 0.0037s4176== 20181128120000 AddUniqueIndexToBranchesOnRepositoryIdAndName: migrated (0.0037s)4178== 20181203075818 AddUniqueNameColumnToBranches: migrating ====================4179-- add_column(:branches, :unique_name, :text)4180 -> 0.0007s4181== 20181203075818 AddUniqueNameColumnToBranches: migrated (0.0008s) ===========4183== 20181203075819 AddSetUniqueNameTriggerToBranches: migrating ================4184-- 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")4185 -> 0.0008s4186== 20181203075819 AddSetUniqueNameTriggerToBranches: migrated (0.0009s) =======4188== 20181203080356 CreateIndexOnBranchesUniqueNameAndRepositoryId: migrating ===4189-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_branches_repository_id_unique_name ON branches(repository_id, unique_name) WHERE unique_name IS NOT NULL")4190 -> 0.0040s4191== 20181203080356 CreateIndexOnBranchesUniqueNameAndRepositoryId: migrated (0.0040s)4193== 20181205152712 AddUniqueIndexToCronsOnBranchId: migrating ==================4194-- execute("DROP INDEX CONCURRENTLY index_crons_on_branch_id")4195 -> 0.0026s4196-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_crons_on_branch_id ON crons(branch_id)")4197 -> 0.0038s4198== 20181205152712 AddUniqueIndexToCronsOnBranchId: migrated (0.0064s) =========4200== 20190102000000 AddOrganizationPreferences: migrating =======================4201-- change_table(:organizations)4202 -> 0.0011s4203== 20190102000000 AddOrganizationPreferences: migrated (0.0011s) ==============4205== 20190102000001 ChangeOrganizationPreferencesDefault: migrating =============4206-- change_column_default(:organizations, :preferences, {})4207 -> 0.0022s4208== 20190102000001 ChangeOrganizationPreferencesDefault: migrated (0.0023s) ====4210== 20190109000000 CreateBetaMigrationRequestTable: migrating ==================4211-- create_table(:beta_migration_requests, {:id=>:integer})4212 -> 0.0055s4213-- add_index(:beta_migration_requests, [:owner_type, :owner_id])4214 -> 0.0019s4215== 20190109000000 CreateBetaMigrationRequestTable: migrated (0.0075s) =========4217== 20190118000000 AddBetaMigrationRequestColumnToOrganizations: migrating =====4218-- add_column(:organizations, :beta_migration_request_id, :integer)4219 -> 0.0007s4220== 20190118000000 AddBetaMigrationRequestColumnToOrganizations: migrated (0.0008s)4222== 20190204000000 MakeSubscriptionOwnerNotNullable: migrating =================4223-- change_column_null(:subscriptions, :owner_type, false)4224 -> 0.0006s4225-- change_column_null(:subscriptions, :owner_id, false)4226 -> 0.0003s4227== 20190204000000 MakeSubscriptionOwnerNotNullable: migrated (0.0010s) ========4229== 20190313000000 RequestRawConfigsCreate: migrating ==========================4230-- create_table(:request_raw_configs, {:id=>:integer})4231 -> 0.0053s4232-- add_index(:request_raw_configs, [:repository_id, :key])4233 -> 0.0021s4234-- create_table(:request_raw_configurations, {:id=>:integer})4235 -> 0.0047s4236-- add_index(:request_raw_configurations, :request_id)4237 -> 0.0019s4238-- add_index(:request_raw_configurations, :request_raw_config_id)4239 -> 0.0019s4240== 20190313000000 RequestRawConfigsCreate: migrated (0.0161s) =================4242== 20190329093854 CreateGatekeeperWorkers: migrating ==========================4243-- create_table(:gatekeeper_workers)4244 -> 0.0031s4245-- execute("INSERT INTO gatekeeper_workers(id) SELECT generate_series(1,200) as id;")4246 -> 0.0007s4247== 20190329093854 CreateGatekeeperWorkers: migrated (0.0039s) =================4249== 20190409133118 AddUniqueNumberColumnToBuilds: migrating ====================4250-- add_column(:builds, :unique_number, :int)4251 -> 0.0008s4252== 20190409133118 AddUniqueNumberColumnToBuilds: migrated (0.0008s) ===========4254== 20190409133320 AddSetUniqueNumberTriggerToBuilds: migrating ================4255-- 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")4256 -> 0.0009s4257== 20190409133320 AddSetUniqueNumberTriggerToBuilds: migrated (0.0010s) =======4259== 20190409133444 CreateUniqueIndexOnRepositoryIdAndNumberOnBuilds: migrating =4260-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_builds_repository_id_unique_number ON builds(repository_id, unique_number) WHERE unique_number IS NOT NULL")4261 -> 0.0037s4262== 20190409133444 CreateUniqueIndexOnRepositoryIdAndNumberOnBuilds: migrated (0.0037s)4264== 20190410121039 MakeSetUniqueNumberTriggerRunOnlyOnInsert: migrating ========4265-- 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")4266 -> 0.0007s4267== 20190410121039 MakeSetUniqueNumberTriggerRunOnlyOnInsert: migrated (0.0008s)4269== 20190416071629 RemoveUniqueNameFromBranches: migrating =====================4270-- execute("drop index concurrently index_branches_repository_id_unique_name;")4271 -> 0.0020s4272-- execute("DROP TRIGGER IF EXISTS set_unique_name_on_branches ON branches;\nDROP FUNCTION IF EXISTS set_unique_name();\n\n")4273 -> 0.0008s4274-- remove_column(:branches, :unique_name)4275 -> 0.0008s4276== 20190416071629 RemoveUniqueNameFromBranches: migrated (0.0038s) ============4278== 20190417072423 AlterBuildsUniqueNumberIndex: migrating =====================4279-- 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")4280 -> 0.0036s4281-- execute("DROP INDEX CONCURRENTLY index_builds_repository_id_unique_number")4282 -> 0.0020s4283-- execute("ALTER INDEX index_builds_repository_id_unique_number_new RENAME TO index_builds_repository_id_unique_number")4284 -> 0.0008s4285== 20190417072423 AlterBuildsUniqueNumberIndex: migrated (0.0065s) ============4287== 20190417072838 ReinstallSetUniqueNumberTrigger: migrating ==================4288-- execute("DROP TRIGGER IF EXISTS set_unique_number_on_builds ON builds;\nDROP FUNCTION IF EXISTS set_unique_number();\n")4289 -> 0.0111s4290-- 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")4291 -> 0.0013s4292== 20190417072838 ReinstallSetUniqueNumberTrigger: migrated (0.0143s) =========4294== 20190502175059 AddMergeableStateToPullRequests: migrating ==================4295-- add_column(:pull_requests, :mergeable_state, :string)4296 -> 0.0021s4297== 20190502175059 AddMergeableStateToPullRequests: migrated (0.0024s) =========4299== 20190510121000 AddReposIndexOnLowerOwnerNameAndName: migrating =============4300-- 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")4301 -> 0.0046s4302== 20190510121000 AddReposIndexOnLowerOwnerNameAndName: migrated (0.0048s) ====4304== 20190605121000 AddHistoryMigrationStatusToRepositories: migrating ==========4305-- add_column(:repositories, :history_migration_status, :string)4306 -> 0.0021s4307== 20190605121000 AddHistoryMigrationStatusToRepositories: migrated (0.0023s) =4309== 20190605155459 AddPullRequestMergeableToRequests: migrating ================4310-- add_column(:requests, :pull_request_mergeable, :string)4311 -> 0.0032s4312== 20190605155459 AddPullRequestMergeableToRequests: migrated (0.0032s) =======4314== 20190613120000 SoftDeleteRepositoryAlongWithItsData: migrating =============4315-- execute("create table if not exists deleted_builds (like builds)")4316 -> 0.0053s4317-- execute("create table if not exists deleted_stages (like stages)")4318 -> 0.0029s4319-- execute("create table if not exists deleted_jobs (like jobs)")4320 -> 0.0031s4321-- execute("create table if not exists deleted_requests (like requests)")4322 -> 0.0031s4323-- execute("create table if not exists deleted_commits (like commits)")4324 -> 0.0029s4325-- execute("create table if not exists deleted_pull_requests (like pull_requests)")4326 -> 0.0027s4327-- execute("create table if not exists deleted_job_configs (like job_configs)")4328 -> 0.0026s4329-- execute("create table if not exists deleted_build_configs (like build_configs)")4330 -> 0.0027s4331-- execute("create table if not exists deleted_request_configs (like request_configs)")4332 -> 0.0024s4333-- execute("create table if not exists deleted_request_payloads (like request_payloads)")4334 -> 0.0026s4335-- execute("create table if not exists deleted_ssl_keys (like ssl_keys)")4336 -> 0.0024s4337-- execute("create table if not exists deleted_tags (like tags)")4338 -> 0.0024s4339-- 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")4340 -> 0.0016s4341== 20190613120000 SoftDeleteRepositoryAlongWithItsData: migrated (0.0373s) ====4343== 20190618082559 AddVcsTypeToUser: migrating =================================4344-- add_column(:users, :vcs_type, :string, {:default=>nil})4345 -> 0.0013s4346-- execute("ALTER TABLE users ALTER COLUMN vcs_type SET DEFAULT 'GithubUser'")4347 -> 0.0004s4348-- select_value("SELECT id FROM users ORDER BY id DESC LIMIT 1")4349 -> 0.0007s4350-- execute("UPDATE users SET vcs_type = 'GithubUser' WHERE id BETWEEN 0 AND 5000")4351 -> 0.0006s4352== 20190618082559 AddVcsTypeToUser: migrated (0.0044s) ========================4354== 20190701082559 AddVcsTypeToRepository: migrating ===========================4355-- add_column(:repositories, :vcs_type, :string, {:default=>nil})4356 -> 0.0015s4357-- execute("ALTER TABLE repositories ALTER COLUMN vcs_type SET DEFAULT 'GithubRepository'")4358 -> 0.0005s4359-- select_value("SELECT id FROM repositories ORDER BY id DESC LIMIT 1")4360 -> 0.0007s4361-- execute("UPDATE repositories SET vcs_type = 'GithubRepository' WHERE id BETWEEN 0 AND 5000")4362 -> 0.0010s4363== 20190701082559 AddVcsTypeToRepository: migrated (0.0051s) ==================4365== 20190704082559 AddVcsTypeToOrganization: migrating =========================4366-- add_column(:organizations, :vcs_type, :string, {:default=>nil})4367 -> 0.0013s4368-- execute("ALTER TABLE organizations ALTER COLUMN vcs_type SET DEFAULT 'GithubOrganization'")4369 -> 0.0004s4370-- select_value("SELECT id FROM organizations ORDER BY id DESC LIMIT 1")4371 -> 0.0009s4372-- execute("UPDATE organizations SET vcs_type = 'GithubOrganization' WHERE id BETWEEN 0 AND 5000")4373 -> 0.0009s4374== 20190704082559 AddVcsTypeToOrganization: migrated (0.0055s) ================4376== 20190718092750 AddDeleteCascadeToForeignKeys: migrating ====================4377-- execute("ALTER TABLE builds ADD CONSTRAINT fk_new_builds_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) ON DELETE CASCADE NOT VALID")4378 -> 0.0012s4379-- execute("ALTER TABLE builds ADD CONSTRAINT fk_new_builds_on_commit_id FOREIGN KEY (commit_id) REFERENCES commits(id) ON DELETE CASCADE NOT VALID")4380 -> 0.0008s4381-- execute("ALTER TABLE builds ADD CONSTRAINT fk_new_builds_on_request_id FOREIGN KEY (request_id) REFERENCES requests(id) ON DELETE CASCADE NOT VALID")4382 -> 0.0009s4383-- 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")4384 -> 0.0008s4385-- execute("ALTER TABLE builds ADD CONSTRAINT fk_new_builds_on_branch_id FOREIGN KEY (branch_id) REFERENCES branches(id) ON DELETE CASCADE NOT VALID")4386 -> 0.0012s4387-- execute("ALTER TABLE builds ADD CONSTRAINT fk_new_builds_on_tag_id FOREIGN KEY (tag_id) REFERENCES tags(id) ON DELETE CASCADE NOT VALID")4388 -> 0.0012s4389-- 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")4390 -> 0.0011s4391-- execute("ALTER TABLE jobs ADD CONSTRAINT fk_new_jobs_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) ON DELETE CASCADE NOT VALID")4392 -> 0.0009s4393-- execute("ALTER TABLE jobs ADD CONSTRAINT fk_new_jobs_on_commit_id FOREIGN KEY (commit_id) REFERENCES commits(id) ON DELETE CASCADE NOT VALID")4394 -> 0.0007s4395-- execute("ALTER TABLE jobs ADD CONSTRAINT fk_new_jobs_on_stage_id FOREIGN KEY (stage_id) REFERENCES stages(id) ON DELETE CASCADE NOT VALID")4396 -> 0.0007s4397-- 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")4398 -> 0.0007s4399-- execute("ALTER TABLE branches ADD CONSTRAINT fk_new_branches_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) ON DELETE CASCADE NOT VALID")4400 -> 0.0008s4401-- execute("ALTER TABLE tags ADD CONSTRAINT fk_new_tags_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) ON DELETE CASCADE NOT VALID")4402 -> 0.0007s4403-- execute("ALTER TABLE commits ADD CONSTRAINT fk_new_commits_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) ON DELETE CASCADE NOT VALID")4404 -> 0.0011s4405-- execute("ALTER TABLE commits ADD CONSTRAINT fk_new_commits_on_branch_id FOREIGN KEY (branch_id) REFERENCES branches(id) ON DELETE CASCADE NOT VALID")4406 -> 0.0005s4407-- execute("ALTER TABLE commits ADD CONSTRAINT fk_new_commits_on_tag_id FOREIGN KEY (tag_id) REFERENCES tags(id) ON DELETE CASCADE NOT VALID")4408 -> 0.0005s4409-- execute("ALTER TABLE crons ADD CONSTRAINT fk_new_crons_on_branch_id FOREIGN KEY (branch_id) REFERENCES branches(id) ON DELETE CASCADE NOT VALID")4410 -> 0.0005s4411-- 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")4412 -> 0.0005s4413-- 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")4414 -> 0.0006s4415-- 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")4416 -> 0.0006s4417-- 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")4418 -> 0.0006s4419-- execute("ALTER TABLE requests ADD CONSTRAINT fk_new_requests_on_commit_id FOREIGN KEY (commit_id) REFERENCES commits(id) ON DELETE CASCADE NOT VALID")4420 -> 0.0006s4421-- 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")4422 -> 0.0005s4423-- execute("ALTER TABLE requests ADD CONSTRAINT fk_new_requests_on_branch_id FOREIGN KEY (branch_id) REFERENCES branches(id) ON DELETE CASCADE NOT VALID")4424 -> 0.0006s4425-- execute("ALTER TABLE requests ADD CONSTRAINT fk_new_requests_on_tag_id FOREIGN KEY (tag_id) REFERENCES tags(id) ON DELETE CASCADE NOT VALID")4426 -> 0.0006s4427-- 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")4428 -> 0.0006s4429-- execute("ALTER TABLE stages ADD CONSTRAINT fk_new_stages_on_build_id FOREIGN KEY (build_id) REFERENCES builds(id) ON DELETE CASCADE NOT VALID")4430 -> 0.0011s4431-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_new_builds_on_repository_id")4432 -> 0.0020s4433-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_new_builds_on_commit_id")4434 -> 0.0011s4435-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_new_builds_on_request_id")4436 -> 0.0011s4437-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_new_builds_on_pull_request_id")4438 -> 0.0009s4439-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_new_builds_on_branch_id")4440 -> 0.0009s4441-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_new_builds_on_tag_id")4442 -> 0.0009s4443-- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_new_builds_on_config_id")4444 -> 0.0008s4445-- execute("ALTER TABLE jobs VALIDATE CONSTRAINT fk_new_jobs_on_repository_id")4446 -> 0.0009s4447-- execute("ALTER TABLE jobs VALIDATE CONSTRAINT fk_new_jobs_on_commit_id")4448 -> 0.0008s4449-- execute("ALTER TABLE jobs VALIDATE CONSTRAINT fk_new_jobs_on_stage_id")4450 -> 0.0007s4451-- execute("ALTER TABLE jobs VALIDATE CONSTRAINT fk_new_jobs_on_config_id")4452 -> 0.0008s4453-- execute("ALTER TABLE branches VALIDATE CONSTRAINT fk_new_branches_on_repository_id")4454 -> 0.0007s4455-- execute("ALTER TABLE tags VALIDATE CONSTRAINT fk_new_tags_on_repository_id")4456 -> 0.0007s4457-- execute("ALTER TABLE commits VALIDATE CONSTRAINT fk_new_commits_on_repository_id")4458 -> 0.0007s4459-- execute("ALTER TABLE commits VALIDATE CONSTRAINT fk_new_commits_on_branch_id")4460 -> 0.0006s4461-- execute("ALTER TABLE commits VALIDATE CONSTRAINT fk_new_commits_on_tag_id")4462 -> 0.0007s4463-- execute("ALTER TABLE crons VALIDATE CONSTRAINT fk_new_crons_on_branch_id")4464 -> 0.0007s4465-- execute("ALTER TABLE job_configs VALIDATE CONSTRAINT fk_new_job_configs_on_repository_id")4466 -> 0.0008s4467-- execute("ALTER TABLE build_configs VALIDATE CONSTRAINT fk_new_build_configs_on_repository_id")4468 -> 0.0007s4469-- execute("ALTER TABLE pull_requests VALIDATE CONSTRAINT fk_new_pull_requests_on_repository_id")4470 -> 0.0008s4471-- execute("ALTER TABLE ssl_keys VALIDATE CONSTRAINT fk_new_ssl_keys_on_repository_id")4472 -> 0.0007s4473-- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_new_requests_on_commit_id")4474 -> 0.0008s4475-- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_new_requests_on_pull_request_id")4476 -> 0.0008s4477-- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_new_requests_on_branch_id")4478 -> 0.0007s4479-- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_new_requests_on_tag_id")4480 -> 0.0007s4481-- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_new_requests_on_config_id")4482 -> 0.0007s4483-- execute("ALTER TABLE stages VALIDATE CONSTRAINT fk_new_stages_on_build_id")4484 -> 0.0009s4485-- execute("ALTER TABLE builds DROP CONSTRAINT fk_builds_on_repository_id")4486 -> 0.0010s4487-- execute("ALTER TABLE builds DROP CONSTRAINT fk_builds_on_commit_id")4488 -> 0.0008s4489-- execute("ALTER TABLE builds DROP CONSTRAINT fk_builds_on_request_id")4490 -> 0.0007s4491-- execute("ALTER TABLE builds DROP CONSTRAINT fk_builds_on_pull_request_id")4492 -> 0.0008s4493-- execute("ALTER TABLE builds DROP CONSTRAINT fk_builds_on_branch_id")4494 -> 0.0049s4495-- execute("ALTER TABLE builds DROP CONSTRAINT fk_builds_on_tag_id")4496 -> 0.0006s4497-- execute("ALTER TABLE builds DROP CONSTRAINT fk_builds_on_config_id")4498 -> 0.0006s4499-- execute("ALTER TABLE jobs DROP CONSTRAINT fk_jobs_on_repository_id")4500 -> 0.0006s4501-- execute("ALTER TABLE jobs DROP CONSTRAINT fk_jobs_on_commit_id")4502 -> 0.0005s4503-- execute("ALTER TABLE jobs DROP CONSTRAINT fk_jobs_on_stage_id")4504 -> 0.0009s4505-- execute("ALTER TABLE jobs DROP CONSTRAINT fk_jobs_on_config_id")4506 -> 0.0011s4507-- execute("ALTER TABLE branches DROP CONSTRAINT fk_branches_on_repository_id")4508 -> 0.0012s4509-- execute("ALTER TABLE tags DROP CONSTRAINT fk_tags_on_repository_id")4510 -> 0.0010s4511-- execute("ALTER TABLE commits DROP CONSTRAINT fk_commits_on_repository_id")4512 -> 0.0006s4513-- execute("ALTER TABLE commits DROP CONSTRAINT fk_commits_on_branch_id")4514 -> 0.0005s4515-- execute("ALTER TABLE commits DROP CONSTRAINT fk_commits_on_tag_id")4516 -> 0.0008s4517-- execute("ALTER TABLE crons DROP CONSTRAINT fk_crons_on_branch_id")4518 -> 0.0006s4519-- execute("ALTER TABLE job_configs DROP CONSTRAINT fk_job_configs_on_repository_id")4520 -> 0.0005s4521-- execute("ALTER TABLE build_configs DROP CONSTRAINT fk_build_configs_on_repository_id")4522 -> 0.0005s4523-- execute("ALTER TABLE pull_requests DROP CONSTRAINT fk_pull_requests_on_repository_id")4524 -> 0.0006s4525-- execute("ALTER TABLE ssl_keys DROP CONSTRAINT fk_ssl_keys_on_repository_id")4526 -> 0.0010s4527-- execute("ALTER TABLE requests DROP CONSTRAINT fk_requests_on_commit_id")4528 -> 0.0010s4529-- execute("ALTER TABLE requests DROP CONSTRAINT fk_requests_on_pull_request_id")4530 -> 0.0009s4531-- execute("ALTER TABLE requests DROP CONSTRAINT fk_requests_on_branch_id")4532 -> 0.0009s4533-- execute("ALTER TABLE requests DROP CONSTRAINT fk_requests_on_tag_id")4534 -> 0.0022s4535-- execute("ALTER TABLE requests DROP CONSTRAINT fk_requests_on_config_id")4536 -> 0.0005s4537-- execute("ALTER TABLE stages DROP CONSTRAINT fk_stages_on_build_id")4538 -> 0.0005s4539-- execute("ALTER TABLE builds RENAME CONSTRAINT fk_new_builds_on_repository_id TO fk_builds_on_repository_id")4540 -> 0.0004s4541-- execute("ALTER TABLE builds RENAME CONSTRAINT fk_new_builds_on_commit_id TO fk_builds_on_commit_id")4542 -> 0.0004s4543-- execute("ALTER TABLE builds RENAME CONSTRAINT fk_new_builds_on_request_id TO fk_builds_on_request_id")4544 -> 0.0004s4545-- execute("ALTER TABLE builds RENAME CONSTRAINT fk_new_builds_on_pull_request_id TO fk_builds_on_pull_request_id")4546 -> 0.0003s4547-- execute("ALTER TABLE builds RENAME CONSTRAINT fk_new_builds_on_branch_id TO fk_builds_on_branch_id")4548 -> 0.0003s4549-- execute("ALTER TABLE builds RENAME CONSTRAINT fk_new_builds_on_tag_id TO fk_builds_on_tag_id")4550 -> 0.0003s4551-- execute("ALTER TABLE builds RENAME CONSTRAINT fk_new_builds_on_config_id TO fk_builds_on_config_id")4552 -> 0.0004s4553-- execute("ALTER TABLE jobs RENAME CONSTRAINT fk_new_jobs_on_repository_id TO fk_jobs_on_repository_id")4554 -> 0.0003s4555-- execute("ALTER TABLE jobs RENAME CONSTRAINT fk_new_jobs_on_commit_id TO fk_jobs_on_commit_id")4556 -> 0.0004s4557-- execute("ALTER TABLE jobs RENAME CONSTRAINT fk_new_jobs_on_stage_id TO fk_jobs_on_stage_id")4558 -> 0.0004s4559-- execute("ALTER TABLE jobs RENAME CONSTRAINT fk_new_jobs_on_config_id TO fk_jobs_on_config_id")4560 -> 0.0004s4561-- execute("ALTER TABLE branches RENAME CONSTRAINT fk_new_branches_on_repository_id TO fk_branches_on_repository_id")4562 -> 0.0003s4563-- execute("ALTER TABLE tags RENAME CONSTRAINT fk_new_tags_on_repository_id TO fk_tags_on_repository_id")4564 -> 0.0004s4565-- execute("ALTER TABLE commits RENAME CONSTRAINT fk_new_commits_on_repository_id TO fk_commits_on_repository_id")4566 -> 0.0003s4567-- execute("ALTER TABLE commits RENAME CONSTRAINT fk_new_commits_on_branch_id TO fk_commits_on_branch_id")4568 -> 0.0003s4569-- execute("ALTER TABLE commits RENAME CONSTRAINT fk_new_commits_on_tag_id TO fk_commits_on_tag_id")4570 -> 0.0003s4571-- execute("ALTER TABLE crons RENAME CONSTRAINT fk_new_crons_on_branch_id TO fk_crons_on_branch_id")4572 -> 0.0003s4573-- execute("ALTER TABLE job_configs RENAME CONSTRAINT fk_new_job_configs_on_repository_id TO fk_job_configs_on_repository_id")4574 -> 0.0003s4575-- execute("ALTER TABLE build_configs RENAME CONSTRAINT fk_new_build_configs_on_repository_id TO fk_build_configs_on_repository_id")4576 -> 0.0003s4577-- execute("ALTER TABLE pull_requests RENAME CONSTRAINT fk_new_pull_requests_on_repository_id TO fk_pull_requests_on_repository_id")4578 -> 0.0003s4579-- execute("ALTER TABLE ssl_keys RENAME CONSTRAINT fk_new_ssl_keys_on_repository_id TO fk_ssl_keys_on_repository_id")4580 -> 0.0003s4581-- execute("ALTER TABLE requests RENAME CONSTRAINT fk_new_requests_on_commit_id TO fk_requests_on_commit_id")4582 -> 0.0003s4583-- execute("ALTER TABLE requests RENAME CONSTRAINT fk_new_requests_on_pull_request_id TO fk_requests_on_pull_request_id")4584 -> 0.0003s4585-- execute("ALTER TABLE requests RENAME CONSTRAINT fk_new_requests_on_branch_id TO fk_requests_on_branch_id")4586 -> 0.0018s4587-- execute("ALTER TABLE requests RENAME CONSTRAINT fk_new_requests_on_tag_id TO fk_requests_on_tag_id")4588 -> 0.0004s4589-- execute("ALTER TABLE requests RENAME CONSTRAINT fk_new_requests_on_config_id TO fk_requests_on_config_id")4590 -> 0.0005s4591-- execute("ALTER TABLE stages RENAME CONSTRAINT fk_new_stages_on_build_id TO fk_stages_on_build_id")4592 -> 0.0003s4593== 20190718092750 AddDeleteCascadeToForeignKeys: migrated (0.0827s) ===========4595== 20190718100426 UpdateSoftDeleteProcedure: migrating ========================4596-- 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")4597 -> 0.0017s4598== 20190718100426 UpdateSoftDeleteProcedure: migrated (0.0019s) ===============4600== 20190725103113 UpdateSoftDelete: migrating =================================4601-- execute("create table deleted_request_yaml_configs (like request_yaml_configs)")4602 -> 0.0046s4603-- 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")4604 -> 0.0014s4605== 20190725103113 UpdateSoftDelete: migrated (0.0062s) ========================4607== 20190725105934 AddOrgIdToConfigs: migrating ================================4608-- add_column(:job_configs, :org_id, :bigint)4609 -> 0.0010s4610-- add_column(:deleted_job_configs, :org_id, :bigint)4611 -> 0.0010s4612-- add_column(:build_configs, :org_id, :bigint)4613 -> 0.0009s4614-- add_column(:deleted_build_configs, :org_id, :bigint)4615 -> 0.0009s4616-- add_column(:request_configs, :org_id, :bigint)4617 -> 0.0009s4618-- add_column(:deleted_request_configs, :org_id, :bigint)4619 -> 0.0013s4620-- add_column(:request_yaml_configs, :org_id, :bigint)4621 -> 0.0009s4622-- add_column(:deleted_request_yaml_configs, :org_id, :bigint)4623 -> 0.0010s4624-- add_column(:request_payloads, :org_id, :bigint)4625 -> 0.0028s4626-- add_column(:deleted_request_payloads, :org_id, :bigint)4627 -> 0.0009s4628-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_job_configs_on_org_id ON job_configs (org_id)")4629 -> 0.0041s4630-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_build_configs_on_org_id ON build_configs (org_id)")4631 -> 0.0039s4632-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_request_configs_on_org_id ON request_configs (org_id)")4633 -> 0.0042s4634-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_request_yaml_configs_on_org_id ON request_yaml_configs (org_id)")4635 -> 0.0040s4636-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_request_payloads_on_org_id ON request_payloads (org_id)")4637 -> 0.0040s4638== 20190725105934 AddOrgIdToConfigs: migrated (0.0322s) =======================4640== 20190729105934 AddOrgAndComIdsToRawConfigs: migrating ======================4641-- add_column(:request_raw_configs, :org_id, :bigint)4642 -> 0.0012s4643-- add_column(:request_raw_configurations, :org_id, :bigint)4644 -> 0.0012s4645-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_request_raw_configs_on_org_id ON request_raw_configs (org_id)")4646 -> 0.0040s4647-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_request_raw_configurations_on_org_id ON request_raw_configurations (org_id)")4648 -> 0.0036s4649== 20190729105934 AddOrgAndComIdsToRawConfigs: migrated (0.0102s) =============4651== 20190801120510 AddMoreDeletedTables: migrating =============================4652-- execute("create table if not exists deleted_request_raw_configs (like request_raw_configs)")4653 -> 0.0032s4654-- execute("create table if not exists deleted_request_raw_configurations (like request_raw_configurations)")4655 -> 0.0028s4656-- 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")4657 -> 0.0018s4658== 20190801120510 AddMoreDeletedTables: migrated (0.0081s) ====================4660== 20190815152336 AddComIdToMoreTables: migrating =============================4661-- add_column(:request_configs, :com_id, :bigint)4662 -> 0.0013s4663-- add_column(:request_yaml_configs, :com_id, :bigint)4664 -> 0.0011s4665-- add_column(:deleted_request_configs, :com_id, :bigint)4666 -> 0.0010s4667-- add_column(:deleted_request_yaml_configs, :com_id, :bigint)4668 -> 0.0009s4669-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_request_configs_on_com_id ON request_configs (com_id)")4670 -> 0.0038s4671-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_request_yaml_configs_on_com_id ON request_yaml_configs (com_id)")4672 -> 0.0037s4673== 20190815152336 AddComIdToMoreTables: migrated (0.0123s) ====================4675== 20190815164320 AddComIdToBuildConfigs: migrating ===========================4676-- add_column(:build_configs, :com_id, :bigint)4677 -> 0.0011s4678-- add_column(:deleted_build_configs, :com_id, :bigint)4679 -> 0.0011s4680-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_build_configs_on_com_id ON build_configs (com_id)")4681 -> 0.0039s4682== 20190815164320 AddComIdToBuildConfigs: migrated (0.0063s) ==================4684== 20190815172205 AddComIdToJobConfigs: migrating =============================4685-- add_column(:job_configs, :com_id, :bigint)4686 -> 0.0013s4687-- add_column(:deleted_job_configs, :com_id, :bigint)4688 -> 0.0013s4689-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_job_configs_on_com_id ON job_configs (com_id)")4690 -> 0.0039s4691== 20190815172205 AddComIdToJobConfigs: migrated (0.0066s) ====================4693== 20190819082558 AddVcsIdToUser: migrating ===================================4694-- add_column(:users, :vcs_id, :string, {:default=>nil})4695 -> 0.0018s4696-- execute("CREATE INDEX CONCURRENTLY index_users_on_vcs_id_and_vcs_type ON users (vcs_id, vcs_type);")4697 -> 0.0039s4698== 20190819082558 AddVcsIdToUser: migrated (0.0058s) ==========================4700== 20190819082559 AddVcsIdToRepository: migrating =============================4701-- add_column(:repositories, :vcs_id, :string, {:default=>nil})4702 -> 0.0017s4703-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_vcs_id_and_vcs_type ON repositories (vcs_id, vcs_type);")4704 -> 0.0041s4705== 20190819082559 AddVcsIdToRepository: migrated (0.0059s) ====================4707== 20190820082431 AddVcsIdToOrganization: migrating ===========================4708-- add_column(:organizations, :vcs_id, :string, {:default=>nil})4709 -> 0.0020s4710-- execute("CREATE INDEX CONCURRENTLY index_organizations_on_vcs_id_and_vcs_type ON organizations (vcs_id, vcs_type);")4711 -> 0.0041s4712== 20190820082431 AddVcsIdToOrganization: migrated (0.0063s) ==================4714== 20190913092543 CopyVcsIdForRepository: migrating ===========================4715-- select_value("SELECT id FROM repositories ORDER BY id DESC LIMIT 1")4716 -> 0.0009s4717-- execute("UPDATE \"repositories\" SET vcs_id = github_id WHERE id BETWEEN 0 AND 5000")4718 -> 0.0009s4719== 20190913092543 CopyVcsIdForRepository: migrated (0.0023s) ==================4721== 20190913092554 CopyVcsIdForUser: migrating =================================4722-- select_value("SELECT id FROM users ORDER BY id DESC LIMIT 1")4723 -> 0.0008s4724-- execute("UPDATE \"users\" SET vcs_id = github_id WHERE id BETWEEN 0 AND 5000")4725 -> 0.0015s4726== 20190913092554 CopyVcsIdForUser: migrated (0.0033s) ========================4728== 20190913092565 CopyVcsIdForOrganization: migrating =========================4729-- select_value("SELECT id FROM organizations ORDER BY id DESC LIMIT 1")4730 -> 0.0014s4731-- execute("UPDATE \"organizations\" SET vcs_id = github_id WHERE id BETWEEN 0 AND 5000")4732 -> 0.0018s4733== 20190913092565 CopyVcsIdForOrganization: migrated (0.0048s) ================4735== 20190920160300 MessagesAddTypeSourceLine: migrating ========================4736-- add_column(:messages, :type, :string, {:default=>nil})4737 -> 0.0025s4738-- add_column(:messages, :src, :string, {:default=>nil})4739 -> 0.0024s4740-- add_column(:messages, :line, :integer, {:default=>nil})4741 -> 0.0022s4742== 20190920160300 MessagesAddTypeSourceLine: migrated (0.0076s) ===============4744== 20191112000000 ReposAddFork: migrating =====================================4745-- add_column(:repositories, :fork, :boolean, {:default=>nil})4746 -> 0.0026s4747== 20191112000000 ReposAddFork: migrated (0.0028s) ============================4749== 20191112172015 AddVcsIndexToRepositories: migrating ========================4750-- add_index(:repositories, [:vcs_type, :vcs_id], {:algorithm=>:concurrently})4751 -> 0.0054s4752== 20191112172015 AddVcsIndexToRepositories: migrated (0.0056s) ===============4754== 20191112172332 AddVcsIndexToUsers: migrating ===============================4755-- add_index(:users, [:vcs_type, :vcs_id], {:algorithm=>:concurrently})4756 -> 0.0047s4757== 20191112172332 AddVcsIndexToUsers: migrated (0.0048s) ======================4759== 20191219091445 AddHeadRepoVcsIdToPullRequest: migrating ====================4760-- add_column(:pull_requests, :head_repo_vcs_id, :string, {:default=>nil})4761 -> 0.0032s4762-- execute("CREATE INDEX CONCURRENTLY index_pull_requests_on_head_repo_vcs_id ON pull_requests (head_repo_vcs_id);")4763 -> 0.0062s4764== 20191219091445 AddHeadRepoVcsIdToPullRequest: migrated (0.0095s) ===========4766== 20191219091446 AddHeadRepoVcsIdToDeletedPullRequest: migrating =============4767-- add_column(:deleted_pull_requests, :head_repo_vcs_id, :string, {:default=>nil})4768 -> 0.0018s4769-- execute("CREATE INDEX CONCURRENTLY index_deleted_pull_requests_on_head_repo_vcs_id ON deleted_pull_requests (head_repo_vcs_id);")4770 -> 0.0039s4771== 20191219091446 AddHeadRepoVcsIdToDeletedPullRequest: migrated (0.0059s) ====4773== 20200122000000 AddConfigsJson: migrating ===================================4774-- add_column(:request_configs, :config_json, :json)4775 -> 0.0023s4776-- add_column(:build_configs, :config_json, :json)4777 -> 0.0012s4778-- add_column(:job_configs, :config_json, :json)4779 -> 0.0013s4780-- add_column(:deleted_request_configs, :config_json, :json)4781 -> 0.0013s4782-- add_column(:deleted_build_configs, :config_json, :json)4783 -> 0.0013s4784-- add_column(:deleted_job_configs, :config_json, :json)4785 -> 0.0012s4786== 20200122000000 AddConfigsJson: migrated (0.0097s) ==========================4788== 20200127000000 DropJobConfigsGpu: migrating ================================4789-- execute("DROP MATERIALIZED VIEW job_configs_gpu\n")4790 -> 0.0019s4791== 20200127000000 DropJobConfigsGpu: migrated (0.0022s) =======================4793== 20200127000001 RenameConfigsJson: migrating ================================4794-- remove_column(:request_configs, :config)4795 -> 0.0018s4796-- rename_column(:request_configs, :config_json, :config)4797 -> 0.0048s4798-- remove_column(:build_configs, :config)4799 -> 0.0031s4800-- rename_column(:build_configs, :config_json, :config)4801 -> 0.0062s4802-- remove_column(:job_configs, :config)4803 -> 0.0010s4804-- rename_column(:job_configs, :config_json, :config)4805 -> 0.0053s4806-- remove_column(:deleted_request_configs, :config)4807 -> 0.0011s4808-- rename_column(:deleted_request_configs, :config_json, :config)4809 -> 0.0020s4810-- remove_column(:deleted_build_configs, :config)4811 -> 0.0010s4812-- rename_column(:deleted_build_configs, :config_json, :config)4813 -> 0.0022s4814-- remove_column(:deleted_job_configs, :config)4815 -> 0.0005s4816-- rename_column(:deleted_job_configs, :config_json, :config)4817 -> 0.0012s4818== 20200127000001 RenameConfigsJson: migrated (0.0325s) =======================4820== 20200214144655 AddIndexToJobVersionsOnJobId: migrating =====================4821-- add_index(:job_versions, :job_id, {:algorithm=>:concurrently})4822 -> 0.0045s4823== 20200214144655 AddIndexToJobVersionsOnJobId: migrated (0.0046s) ============4825== 20200225085734 AddVcsSlugToRepository: migrating ===========================4826-- add_column(:repositories, :vcs_slug, :string, {:default=>nil})4827 -> 0.0018s4828== 20200225085734 AddVcsSlugToRepository: migrated (0.0019s) ==================4830== 20200227085734 AddVcsSourceHostToRepository: migrating =====================4831-- add_column(:repositories, :vcs_source_host, :string, {:default=>nil})4832 -> 0.0018s4833== 20200227085734 AddVcsSourceHostToRepository: migrated (0.0019s) ============4835== 20200227085736 AddVcsIndexes: migrating ====================================4836-- 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")4837 -> 0.0052s4838== 20200227085736 AddVcsIndexes: migrated (0.0053s) ===========================4840== 20200227085737 AddRepositoryNameAndSlugIndex: migrating ====================4841-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_slug_or_names ON repositories (vcs_slug, owner_name, name) WHERE invalidated_at IS NULL")4842 -> 0.0048s4843== 20200227085737 AddRepositoryNameAndSlugIndex: migrated (0.0048s) ===========4845== 20200227085742 AddPullRequestSourceData: migrating =========================4846-- add_column(:pull_requests, :base_repo_slug, :string, {:default=>nil})4847 -> 0.0018s4848-- add_column(:pull_requests, :base_repo_vcs_id, :string, {:default=>nil})4849 -> 0.0018s4850-- add_column(:pull_requests, :base_ref, :string, {:default=>nil})4851 -> 0.0016s4852-- add_column(:deleted_pull_requests, :base_repo_slug, :string, {:default=>nil})4853 -> 0.0015s4854-- add_column(:deleted_pull_requests, :base_repo_vcs_id, :string, {:default=>nil})4855 -> 0.0015s4856-- add_column(:deleted_pull_requests, :base_ref, :string, {:default=>nil})4857 -> 0.0015s4858== 20200227085742 AddPullRequestSourceData: migrated (0.0101s) ================4860== 20200312184018 AddUserUtmParamsTable: migrating ============================4861-- create_table(:user_utm_params)4862 -> 0.0091s4863== 20200312184018 AddUserUtmParamsTable: migrated (0.0092s) ===================4865== 20200316085738 AddRepositoryVcsSlugIndex: migrating ========================4866-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_lower_vcs_slug ON repositories (LOWER(vcs_slug))")4867 -> 0.0049s4868-- execute("CREATE INDEX CONCURRENTLY index_repositories_on_lower_vcs_slug_valid ON repositories (LOWER(vcs_slug)) WHERE invalidated_at IS NULL")4869 -> 0.0051s4870== 20200316085738 AddRepositoryVcsSlugIndex: migrated (0.0101s) ===============4872== 20200325115329 AddMultipleJobStateIndexesOrderByNewest: migrating ==========4873-- 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'")4874 -> 0.0045s4875-- 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'")4876 -> 0.0048s4877-- 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'")4878 -> 0.0045s4879-- 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'")4880 -> 0.0045s4881-- 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'")4882 -> 0.0052s4883-- 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'")4884 -> 0.0056s4885-- 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'")4886 -> 0.0050s4887-- 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'")4888 -> 0.0066s4889-- 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'")4890 -> 0.0060s4891== 20200325115329 AddMultipleJobStateIndexesOrderByNewest: migrated (0.0472s) =4893== 20200325130013 AddFunctionMostRecentJobIdsForUserRepositoriesByStates: migrating4894-- 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 ")4895 -> 0.0014s4896== 20200325130013 AddFunctionMostRecentJobIdsForUserRepositoriesByStates: migrated (0.0015s)4898== 20200330110527 AddFunctionMostRecentJobIdsForRepositoryByState: migrating ==4899-- 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 ")4900 -> 0.0010s4901== 20200330110527 AddFunctionMostRecentJobIdsForRepositoryByState: migrated (0.0011s)4903== 20200406121218 AddIndexJobsOnRepositoryIdOrderByNewest: migrating ==========4904-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_jobs_on_repository_id_order_by_newest on jobs (repository_id, id desc)")4905 -> 0.0043s4906== 20200406121218 AddIndexJobsOnRepositoryIdOrderByNewest: migrated (0.0044s) =4908== 20200424000000 RequestRawConfigurationsAddMergeMode: migrating =============4909-- add_column(:request_raw_configurations, :merge_mode, :string, {:default=>nil})4910 -> 0.0021s4911-- add_column(:deleted_request_raw_configurations, :merge_mode, :string, {:default=>nil})4912 -> 0.0014s4913== 20200424000000 RequestRawConfigurationsAddMergeMode: migrated (0.0036s) ====4915== 20200527123653 AddColumnPriorityToTableJobsAndDeletedJobs: migrating =======4916-- add_column(:jobs, :priority, :integer, {:default=>nil})4917 -> 0.0023s4918-- add_column(:deleted_jobs, :priority, :integer, {:default=>nil})4919 -> 0.0013s4920== 20200527123653 AddColumnPriorityToTableJobsAndDeletedJobs: migrated (0.0036s)4922== 20200928143126 AddBuildTriggerPermissions: migrating =======================4923-- add_column(:memberships, :build_permission, :boolean, {:default=>nil})4924 -> 0.0019s4925-- add_column(:permissions, :build, :boolean, {:default=>nil})4926 -> 0.0014s4927== 20200928143126 AddBuildTriggerPermissions: migrated (0.0033s) ==============4929== 20202427123653 AddColumnHasLocalRegistrationToTableSubscriptions: migrating4930-- add_column(:subscriptions, :has_local_registration, :boolean, {:default=>nil})4931 -> 0.0028s4932== 20202427123653 AddColumnHasLocalRegistrationToTableSubscriptions: migrated (0.0028s)4934== 20210203130200 CreateBuildBackupsTable: migrating ==========================4935-- create_table(:build_backups, {:id=>:integer})4936 -> 0.0089s4937== 20210203130200 CreateBuildBackupsTable: migrated (0.0090s) =================4939== 20210203143155 AddConfirmationFieldsToUser: migrating ======================4940-- add_column(:users, :confirmed_at, :timestamp, {:precision=>nil})4941 -> 0.0013s4942-- add_column(:users, :token_expires_at, :timestamp, {:precision=>nil})4943 -> 0.0012s4944-- add_column(:users, :confirmation_token, :string)4945 -> 0.0013s4946-- add_index(:users, :confirmation_token)4947 -> 0.0030s4948== 20210203143155 AddConfirmationFieldsToUser: migrated (0.0069s) =============4950== 20210203143406 ConfirmCurrentUsers: migrating ==============================4951== 20210203143406 ConfirmCurrentUsers: migrated (0.0000s) =====================4953== 20210614140633 AddServerTypeToRepositories: migrating ======================4954-- add_column(:repositories, :server_type, :string, {:limit=>20})4955 -> 0.0013s4956== 20210614140633 AddServerTypeToRepositories: migrated (0.0014s) =============4958== 20220610092916 MostRecentJobIdsForUserRepositoriesByStatesLw: migrating ====4959-- 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 ")4960 -> 0.0009s4961== 20220610092916 MostRecentJobIdsForUserRepositoriesByStatesLw: migrated (0.0009s)4963== 20220621151453 AddColumnRestartedByToTableJobs: migrating ==================4964-- add_column(:jobs, :restarted_by, :integer, {:default=>nil})4965 -> 0.0013s4966-- add_column(:deleted_jobs, :restarted_by, :integer, {:default=>nil})4967 -> 0.0008s4968== 20220621151453 AddColumnRestartedByToTableJobs: migrated (0.0021s) =========4970== 20220722162400 CreateAuditsTable: migrating ================================4971-- create_table(:audits)4972 -> 0.0074s4973== 20220722162400 CreateAuditsTable: migrated (0.0075s) =======================4975== 20220825140522 CreateCustomKeysTable: migrating ============================4976-- create_table(:custom_keys)4977 -> 0.0063s4978== 20220825140522 CreateCustomKeysTable: migrated (0.0063s) ===================4980== 20220905144600 AddScanFailedAtToRepositories: migrating ====================4981-- add_column(:repositories, :scan_failed_at, :timestamp)4982 -> 0.0009s4983== 20220905144600 AddScanFailedAtToRepositories: migrated (0.0010s) ===========4985== 20221214171030 AddPurposeColumnToTokens: migrating =========================4986-- add_column(:tokens, :purpose, :integer, {:limit=>4, :default=>0})4987 -> 0.0011s4988== 20221214171030 AddPurposeColumnToTokens: migrated (0.0012s) ================4990== 20230208161446 AddCloneUrlToRepositories: migrating ========================4991-- add_column(:repositories, :clone_url, :string)4992 -> 0.0008s4993== 20230208161446 AddCloneUrlToRepositories: migrated (0.0009s) ===============4995== 20230505055250 RolifyCreateRoles: migrating ================================4996-- create_table(:roles)4997 -> 0.0083s4998-- create_table(:role_names)4999 -> 0.0062s5000-- create_table(:users_roles, {:id=>false})5001 -> 0.0048s5002-- add_index(:roles, :name)5003 -> 0.0022s5004-- add_index(:role_names, :name)5005 -> 0.0020s5006-- add_index(:roles, [:name, :resource_type, :resource_id])5007 -> 0.0021s5008-- add_index(:users_roles, [:user_id, :role_id])5009 -> 0.0022s5010== 20230505055250 RolifyCreateRoles: migrated (0.0281s) =======================5012== 20230505060110 CreatePolicies: migrating ===================================5013-- create_table(:policy_permissions)5014 -> 0.0063s5015-- create_table(:role_permissions, {:id=>false})5016 -> 0.0056s5017-- add_index(:policy_permissions, :name)5018 -> 0.0023s5019-- add_index(:role_permissions, [:role_name_id, :policy_permission_id])5020 -> 0.0021s5021== 20230505060110 CreatePolicies: migrated (0.0164s) ==========================5023== 20230713115855 CreatePermissionsSync: migrating ============================5024-- create_table(:permissions_syncs)5025 -> 0.0119s5026== 20230713115855 CreatePermissionsSync: migrated (0.0119s) ===================5028== 20231005111642 CreatePermissionsIndex: migrating ===========================5029-- add_index(:permissions_syncs, [:user_id, :resource_type, :resource_id], {:name=>"index_permissions_syncs_on_user_and_resource"})5030 -> 0.0029s5031-- add_index(:role_names, :role_type)5032 -> 0.0023s5033== 20231005111642 CreatePermissionsIndex: migrated (0.0053s) ==================5035== 20240823085523 AddVmsizeToJobs: migrating ==================================5036-- add_column(:jobs, :vm_size, :string)5037 -> 0.0010s5038-- add_column(:deleted_jobs, :vm_size, :string)5039 -> 0.0005s5040== 20240823085523 AddVmsizeToJobs: migrated (0.0016s) =========================5042 sets unique_number on INSERT5043 does not set unique_number on INSERT if 0 is given as a value5044 sets unique_number on UPDATE5045 does not set unique_number on UPDATE if unique_number is 05047set_updated_at trigger5048 jobs5049 sets updated_at on INSERT5050 sets updated_at on UPDATE5051 works also for new columns5052 builds5053 sets updated_at on INSERT5054 sets updated_at on UPDATE5055 works also for new columns5057soft delete repo5058 ensure that soft delete tables have the same fields that the originals5059 soft deleting a repo moves all of the related data to deleted_* tables5061Rake tasks5062 rake db:create5063 migrates the main db5064 rake db:schema:load5065 loads the main schema5067Deprecation Warnings:5069Using `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)>'.5072If you need more of the backtrace for any of these deprecations to5073identify where to make the necessary changes, you can configure5074`config.raise_errors_for_deprecations!`, and it will turn the5075deprecation warnings into errors, giving you the full backtrace.50771 deprecation warning total5079Finished in 42.71 seconds (files took 0.3619 seconds to load)508019 examples, 0 failures5082The command "bundle exec rspec spec" exited with 0.after_success5087<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)5088 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'5089 from script/upload_structure.rb:5:in `<main>'5091Done. Your build exited with 0.