travis_fold:start:worker_info [0K[33;1mWorker information[0m hostname: 5b396509-62ea-4293-8db3-ac76641337ef@1.worker-n2-com-f8c4bb956-cnsdw.gce-production-1 version: deploy_2024.10.02-2-gc32b553 https://github.com/travis-ci/worker/tree/c32b553e81363378d09787f52103ea9bcadf253c instance: travis-job-bda5841b-6174-45b9-b762-7691c4749afd travis-ci-ubuntu-2004-1737724207-d0e199ee-dirty (via amqp) startup: 5.77399829s travis_fold:end:worker_info [0Ktravis_time:start:1f228816 [0Ktravis_time:end:1f228816:start=1738808714066699699,finish=1738808714375753024,duration=309053325,event=no_world_writable_dirs [0Ktravis_time:start:0225126c [0Ktravis_time:end:0225126c:start=1738808714378605730,finish=1738808714381981401,duration=3375671,event=setup_filter [0Ktravis_time:start:1c9888fe [0Ktravis_time:end:1c9888fe:start=1738808714386249211,finish=1738808714395679389,duration=9430178,event=agent [0Ktravis_time:start:11870d78 [0Ktravis_time:end:11870d78:start=1738808714398456144,finish=1738808714400428421,duration=1972277,event=check_unsupported [0Ktravis_time:start:24a06369 [0Ktravis_fold:start:system_info [0K[33;1mBuild system information[0m Build language: ruby Build dist: focal Build id: 274115394 Job id: 630345674 Runtime kernel version: 5.15.0-1074-gcp VM: default travis-build version: 6b157a1c [34m[1mBuild image provisioning date and time[0m Fri 24 Jan 2025 01:35:36 PM UTC [34m[1mOperating System Details[0m Distributor ID: Ubuntu Description: Ubuntu 20.04.6 LTS Release: 20.04 Codename: focal [34m[1mSystemd Version[0m systemd 245 (245.4-4ubuntu3.24) [34m[1mCookbooks Version[0m fd4012d https://github.com/travis-ci/travis-cookbooks/tree/fd4012d [34m[1mgit version[0m git version 2.48.1 [34m[1mbash version[0m GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu) [34m[1mgcc version[0m gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0 [34m[1mdocker version[0m Client: Version: 24.0.7 API version: 1.43 Go version: go1.21.1 Git commit: 24.0.7-0ubuntu2~20.04.1 Built: Wed Mar 13 20:29:24 2024 OS/Arch: linux/amd64 Context: default Server: Engine: Version: 24.0.7 API version: 1.43 (minimum version 1.12) Go version: go1.21.1 Git commit: 24.0.7-0ubuntu2~20.04.1 Built: Wed Mar 13 20:29:24 2024 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.7.12 GitCommit: runc: Version: 1.1.12-0ubuntu2~20.04.1 GitCommit: docker-init: Version: 0.19.0 GitCommit: [34m[1mclang version[0m clang version 18.1.8 [34m[1mjq version[0m jq-1.7.1 [34m[1mbats version[0m Bats 1.11.1 [34m[1mshellcheck version[0m 0.10.0 [34m[1mshfmt version[0m v3.8.0 [34m[1mccache version[0m 3.7.7 [34m[1mcmake version[0m cmake version 3.29.0 [34m[1mheroku version[0m heroku/10.0.2 linux-x64 node-v20.17.0 [34m[1mimagemagick version[0m Version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org [34m[1mmd5deep version[0m 4.4 [34m[1mmercurial version[0m version 6.5.2 [34m[1mmysql version[0m mysql Ver 8.0.40-0ubuntu0.20.04.1 for Linux on x86_64 ((Ubuntu)) [34m[1mopenssl version[0m OpenSSL 1.1.1f 31 Mar 2020 [34m[1mpacker version[0m Packer v1.11.2 [34m[1mpostgresql client version[0m psql (PostgreSQL) 13.18 (Ubuntu 13.18-1.pgdg20.04+1) [34m[1mragel version[0m Ragel State Machine Compiler version 6.10 March 2017 [34m[1msudo version[0m 1.8.31 [34m[1mgzip version[0m gzip 1.10 [34m[1mzip version[0m Zip 3.0 [34m[1mvim version[0m VIM - Vi IMproved 8.1 (2018 May 18, compiled Jan 20 2025 13:56:30) [34m[1miptables version[0m iptables v1.8.4 (legacy) [34m[1mcurl version[0m curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3 [34m[1mwget version[0m GNU Wget 1.20.3 built on linux-gnu. [34m[1mrsync version[0m rsync version 3.1.3 protocol version 31 [34m[1mgo version[0m go version go1.23.5 linux/amd64 [34m[1mnvm version[0m 0.40.1 [34m[1mperlbrew version[0m /home/travis/perl5/perlbrew/bin/perlbrew - App::perlbrew/0.95 [34m[1mphpenv version[0m rbenv 1.3.2 [34m[1mrvm version[0m rvm 1.29.12 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io] [34m[1mdefault ruby version[0m ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [x86_64-linux] [34m[1mdefault python version[0m Python 3.7.17 [34m[1mElasticSearch version[0m 7.16.3 [34m[1mInstalled Firefox version[0m firefox 99.0 [34m[1mMongoDB version[0m MongoDB 4.4.29 [34m[1mPhantomJS version[0m 2.1.1 [34m[1mRedis version[0m redis-server 7.4.2 [34m[1mPre-installed Go versions[0m go version go1.23.5 linux/amd64 [34m[1mmvn version[0m Apache Maven 3.9.4 (dfbb324ad4a7c8fb0bf182e6d91b0ae20e3d2dd9) [34m[1mgradle version[0m Gradle 8.3! [34m[1mlein version[0m Leiningen 2.11.2 on Java 11.0.21 OpenJDK 64-Bit Server VM [34m[1mPre-installed Node.js versions[0m v10.24.1 v12.22.12 v14.21.3 v16.15 v16.20.2 v18.20.3 v18.20.6 v20.18.2 v22.13.1 v4.9.1 v6.17.1 v8.17.0 [34m[1mphpenv versions[0m system 7.4 * 7.4.6 (set by /home/travis/.phpenv/version) hhvm-stable hhvm [34m[1mcomposer --version[0m Composer version 1.10.6 2020-05-06 10:28:10 [34m[1mPre-installed Ruby versions[0m ruby-2.7.6 ruby-3.3.5 travis_fold:end:system_info [0K travis_time:end:24a06369:start=1738808714403147521,finish=1738808714409568064,duration=6420543,event=show_system_info [0Ktravis_time:start:2b6c46a0 [0Ktravis_time:end:2b6c46a0:start=1738808714413097653,finish=1738808714433445579,duration=20347926,event=rm_riak_source [0Ktravis_time:start:22ce0d80 [0Ktravis_time:end:22ce0d80:start=1738808714436560818,finish=1738808714450202376,duration=13641558,event=fix_rwky_redis [0Ktravis_time:start:0110b20a [0Ktravis_time:end:0110b20a:start=1738808714453396829,finish=1738808715227424949,duration=774028120,event=wait_for_network [0Ktravis_time:start:154bd751 [0Ktravis_time:end:154bd751:start=1738808715231550714,finish=1738808715565085051,duration=333534337,event=update_apt_keys [0Ktravis_time:start:069c05b4 [0Ktravis_time:end:069c05b4:start=1738808715568871536,finish=1738808715626351346,duration=57479810,event=fix_hhvm_source [0Ktravis_time:start:0a00a757 [0Ktravis_time:end:0a00a757:start=1738808715630651902,finish=1738808715644405293,duration=13753391,event=update_mongo_arch [0Ktravis_time:start:04aa6ace [0Ktravis_time:end:04aa6ace:start=1738808715648492270,finish=1738808715685898177,duration=37405907,event=fix_sudo_enabled_trusty [0Ktravis_time:start:09c91338 [0Ktravis_time:end:09c91338:start=1738808715690046030,finish=1738808715692516722,duration=2470692,event=update_glibc [0Ktravis_time:start:07fedd08 [0Ktravis_time:end:07fedd08:start=1738808715696909358,finish=1738808715731427148,duration=34517790,event=clean_up_path [0Ktravis_time:start:2529dcff [0Ktravis_time:end:2529dcff:start=1738808715735930046,finish=1738808715748320090,duration=12390044,event=fix_resolv_conf [0Ktravis_time:start:09be200a [0Ktravis_time:end:09be200a:start=1738808715752746914,finish=1738808715779701249,duration=26954335,event=fix_etc_hosts [0Ktravis_time:start:0c29c67a [0Ktravis_time:end:0c29c67a:start=1738808715783984859,finish=1738808715792929167,duration=8944308,event=fix_mvn_settings_xml [0Ktravis_time:start:0b084d98 [0Ktravis_time:end:0b084d98:start=1738808715796963024,finish=1738808715808645424,duration=11682400,event=no_ipv6_localhost [0Ktravis_time:start:1ba3948c [0Ktravis_time:end:1ba3948c:start=1738808715812844831,finish=1738808715815188039,duration=2343208,event=fix_etc_mavenrc [0Ktravis_time:start:02d1aa24 [0KOK travis_time:end:02d1aa24:start=1738808715819205448,finish=1738808716191370201,duration=372164753,event=fix_perforce_key [0Ktravis_time:start:0787d6d8 [0Ktravis_time:end:0787d6d8:start=1738808716195678174,finish=1738808716198998662,duration=3320488,event=fix_wwdr_certificate [0Ktravis_time:start:14e4196e [0Ktravis_time:end:14e4196e:start=1738808716203194160,finish=1738808716254861505,duration=51667345,event=put_localhost_first [0Ktravis_time:start:20f1c082 [0Ktravis_time:end:20f1c082:start=1738808716258655679,finish=1738808716261534943,duration=2879264,event=home_paths [0Ktravis_time:start:06075cd8 [0Ktravis_time:end:06075cd8:start=1738808716265675664,finish=1738808716280116428,duration=14440764,event=disable_initramfs [0Ktravis_time:start:031a0833 [0Ktravis_time:end:031a0833:start=1738808716284608939,finish=1738808716439168690,duration=154559751,event=disable_ssh_roaming [0Ktravis_time:start:24bed348 [0Ktravis_time:end:24bed348:start=1738808716443193441,finish=1738808716445561779,duration=2368338,event=debug_tools [0Ktravis_time:start:0c845913 [0Ktravis_time:end:0c845913:start=1738808716449719521,finish=1738808716452827422,duration=3107901,event=uninstall_oclint [0Ktravis_time:start:08778a65 [0Ktravis_time:end:08778a65:start=1738808716457069826,finish=1738808716460015883,duration=2946057,event=rvm_use [0Ktravis_time:start:0668497e [0Ktravis_time:end:0668497e:start=1738808716464152743,finish=1738808716473146573,duration=8993830,event=rm_etc_boto_cfg [0Ktravis_time:start:03d4e914 [0Ktravis_time:end:03d4e914:start=1738808716477819047,finish=1738808716480342527,duration=2523480,event=rm_oraclejdk8_symlink [0Ktravis_time:start:1b40482f [0Ktravis_time:end:1b40482f:start=1738808716484635510,finish=1738808716618141754,duration=133506244,event=enable_i386 [0Ktravis_time:start:02636dc8 [0Ktravis_time:end:02636dc8:start=1738808716622697107,finish=1738808716627011259,duration=4314152,event=update_rubygems [0Ktravis_time:start:0d1ec3f2 [0Ktravis_time:end:0d1ec3f2:start=1738808716631423563,finish=1738808717665428934,duration=1034005371,event=ensure_path_components [0Ktravis_time:start:01049a0c [0Ktravis_time:end:01049a0c:start=1738808717669260429,finish=1738808717671517569,duration=2257140,event=redefine_curl [0Ktravis_time:start:0470907c [0Ktravis_time:end:0470907c:start=1738808717675866306,finish=1738808717802873485,duration=127007179,event=nonblock_pipe [0Ktravis_time:start:19c91680 [0Ktravis_time:end:19c91680:start=1738808717806848443,finish=1738808723844558887,duration=6037710444,event=apt_get_update [0Ktravis_time:start:01c2f897 [0Ktravis_time:end:01c2f897:start=1738808723848664564,finish=1738808723851218442,duration=2553878,event=deprecate_xcode_64 [0Ktravis_time:start:012dc32e [0Ktravis_time:end:012dc32e:start=1738808723855331543,finish=1738808727909344129,duration=4054012586,event=update_heroku [0Ktravis_time:start:11e03584 [0Ktravis_time:end:11e03584:start=1738808727913306331,finish=1738808727915683248,duration=2376917,event=shell_session_update [0Ktravis_time:start:19f721cb [0Ktravis_fold:start:docker_mtu_and_registry_mirrors [0Ktravis_fold:end:docker_mtu_and_registry_mirrors [0Ktravis_time:end:19f721cb:start=1738808727919817584,finish=1738808730266151889,duration=2346334305,event=set_docker_mtu_and_registry_mirrors [0Ktravis_time:start:0c591108 [0Ktravis_fold:start:Docker [0Ktravis_fold:end:Docker [0Ktravis_time:end:0c591108:start=1738808730271245887,finish=1738808730274713858,duration=3467971,event=docker_config [0Ktravis_time:start:0413772c [0Ktravis_fold:start:resolvconf [0Ktravis_fold:end:resolvconf [0Ktravis_time:end:0413772c:start=1738808730279060758,finish=1738808730348308650,duration=69247892,event=resolvconf [0Ktravis_time:start:3832eaaa [0Ktravis_time:end:3832eaaa:start=1738808730352697378,finish=1738808730572621761,duration=219924383,event=maven_central_mirror [0Ktravis_time:start:193ebf54 [0Ktravis_time:end:193ebf54:start=1738808730576985481,finish=1738808730704588092,duration=127602611,event=maven_https [0Ktravis_fold:start:apt [0K[33;1mAdding APT Sources[0m travis_time:start:21b9f876 [0K$ curl -sSL "https://www.postgresql.org/media/keys/ACCC4CF8.asc" | sudo -E apt-key add - OK travis_time:end:21b9f876:start=1738808730709633073,finish=1738808731797107645,duration=1087474572,event=prepare [0Ktravis_time:start:068decf5 [0K$ echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" | sudo tee -a ${TRAVIS_ROOT}/etc/apt/sources.list >/dev/null travis_time:end:068decf5:start=1738808731801862599,finish=1738808731845209965,duration=43347366,event=prepare [0Ktravis_time:start:14d68c87 [0K$ travis_apt_get_update travis_time:end:14d68c87:start=1738808731849434754,finish=1738808746793944845,duration=14944510091,event=prepare [0K[33;1mInstalling APT Packages[0m [33;1mPostgreSQL package is detected. Stopping postgresql service. See https://github.com/travis-ci/travis-ci/issues/5737 for more information.[0m $ sudo systemctl stop postgresql travis_time:start:0262799a [0K$ sudo -E apt-get -yq --no-install-suggests --no-install-recommends $(travis_apt_get_options) install postgresql-11 postgresql-client-11 Reading package lists... Building dependency tree... Reading state information... The following packages were automatically installed and are no longer required: amd64-microcode bubblewrap dictionaries-common hunspell-en-us intel-microcode iucode-tool libaspell15 libenchant-2-2 libglu1-mesa libgstreamer-gl1.0-0 libgstreamer-plugins-base1.0-0 libgudev-1.0-0 libharfbuzz-icu0 libhunspell-1.7-0 libhyphen0 libjavascriptcoregtk-4.0-18 libnotify4 libopengl0 libopenjp2-7 liborc-0.4-0 libsecret-1-0 libsecret-common libwebkit2gtk-4.0-37 libwebpdemux2 libwoff1 libwxbase3.0-0v5 libwxgtk-webview3.0-gtk3-0v5 libwxgtk3.0-gtk3-0v5 linux-image-unsigned-5.4.0-204-generic linux-modules-5.4.0-204-generic xdg-dbus-proxy Use 'sudo apt autoremove' to remove them. Suggested packages: postgresql-doc-11 Recommended packages: sysstat The following NEW packages will be installed: postgresql-11 postgresql-client-11 0 upgraded, 2 newly installed, 0 to remove and 55 not upgraded. Need to get 15.8 MB of archives. After this operation, 54.1 MB of additional disk space will be used. Get: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] Get:2 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-11 amd64 11.22-9.pgdg20.04+1 [14.3 MB] Preconfiguring packages ... Fetched 15.8 MB in 1s (28.1 MB/s) Selecting previously unselected package postgresql-client-11. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 153602 files and directories currently installed.) Preparing to unpack .../postgresql-client-11_11.22-9.pgdg20.04+1_amd64.deb ... Unpacking postgresql-client-11 (11.22-9.pgdg20.04+1) ... Selecting previously unselected package postgresql-11. Preparing to unpack .../postgresql-11_11.22-9.pgdg20.04+1_amd64.deb ... Unpacking postgresql-11 (11.22-9.pgdg20.04+1) ... Setting up postgresql-client-11 (11.22-9.pgdg20.04+1) ... Setting up postgresql-11 (11.22-9.pgdg20.04+1) ... Creating new PostgreSQL cluster 11/main ... /usr/lib/postgresql/11/bin/initdb -D /var/lib/postgresql/11/main --auth-local peer --auth-host md5 The files belonging to this database system will be owned by user "postgres". This user must also own the server process. The database cluster will be initialized with locale "en_US.UTF-8". The default database encoding has accordingly been set to "UTF8". The default text search configuration will be set to "english". Data page checksums are disabled. fixing permissions on existing directory /var/lib/postgresql/11/main ... ok creating subdirectories ... ok selecting default max_connections ... 100 selecting default shared_buffers ... 128MB selecting default timezone ... UTC selecting dynamic shared memory implementation ... posix creating configuration files ... ok running bootstrap script ... ok performing post-bootstrap initialization ... ok syncing data to disk ... ok Success. You can now start the database server using: pg_ctlcluster 11 main start Processing triggers for postgresql-common (267.pgdg20.04+1) ... Building PostgreSQL dictionaries from installed myspell/hunspell packages... en_us Removing obsolete dictionary files: travis_time:end:0262799a:start=1738808746824590975,finish=1738808758822390413,duration=11997799438,event=prepare [0Ktravis_fold:end:apt [0Ktravis_time:start:200a3564 [0Ktravis_fold:start:services [0Ktravis_fold:end:services [0Ktravis_time:end:200a3564:start=1738808758827497307,finish=1738808761834359560,duration=3006862253,event=services [0Ktravis_time:start:02593508 [0Ktravis_time:end:02593508:start=1738808761838712797,finish=1738808761841369185,duration=2656388,event=fix_ps4 [0Ktravis_fold:start:postgresql [0Ktravis_time:start:232a1810 [0K$ travis_setup_postgresql 11 [33;1mStarting PostgreSQL v11[0K sudo systemctl start postgresql@11-main travis_time:end:232a1810:start=1738808761846228695,finish=1738808764659286718,duration=2813058023,event=prepare [0Ktravis_fold:end:postgresql [0Ktravis_time:start:00315010 [0K travis_fold:start:git.checkout [0Ktravis_time:start:11311b84 [0Ktravis_time:end:11311b84:start=1738808764668149902,finish=1738808764678809696,duration=10659794,event=checkout [0Ktravis_time:start:0058b51e [0K$ git clone --depth=50 --branch=master https://github.com/travis-ci/travis-migrations.git travis-ci/travis-migrations Cloning into 'travis-ci/travis-migrations'... travis_time:end:0058b51e:start=1738808764683432321,finish=1738808765235602892,duration=552170571,event=checkout [0K$ cd travis-ci/travis-migrations $ git checkout -qf eceffad5926ead66098e9b887658be1e5b59c9ce travis_fold:end:git.checkout [0K travis_time:end:0058b51e:start=1738808764683432321,finish=1738808765251588476,duration=568156155,event=checkout [0Ktravis_time:start:0ec46cc0 [0K [33;1mSetting environment variables from repository settings[0m $ export QUAY_ROBOT_HANDLE=[secure] $ export QUAY_ROBOT_TOKEN=[secure] $ export ARTIFACTS_BUCKET=travis-migrations-structure-dumps $ export ARTIFACTS_SECRET=[secure] $ export ARTIFACTS_KEY=[secure] travis_time:end:0ec46cc0:start=1738808765255963144,finish=1738808765263460586,duration=7497442,event=env [0Ktravis_fold:start:rvm [0Ktravis_time:start:04e6f6b4 [0K$ rvm get head Downloading https://get.rvm.io Downloading https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer.asc Verifying /home/travis/.rvm/archives/rvm-installer.asc gpg: Signature made Tue 21 Feb 2023 11:35:16 PM UTC gpg: using RSA key 7D2BAF1CF37B13E2069D6956105BD0E739499BDB gpg: Good signature from "Piotr Kuczynski <piotr.kuczynski@gmail.com>" [unknown] gpg: WARNING: This key is not certified with a trusted signature! gpg: There is no indication that the signature belongs to the owner. Primary key fingerprint: 7D2B AF1C F37B 13E2 069D 6956 105B D0E7 3949 9BDB GPG verified '/home/travis/.rvm/archives/rvm-installer' Downloading https://github.com/rvm/rvm/archive/master.tar.gz Upgrading the RVM installation in /home/travis/.rvm/ RVM PATH line found in /home/travis/.mkshrc /home/travis/.profile /home/travis/.zshrc. RVM PATH line not found for Bash, rerun this command with '--auto-dotfiles' flag to fix it. RVM sourcing line found in /home/travis/.profile /home/travis/.bashrc /home/travis/.zlogin. Upgrade of RVM in /home/travis/.rvm/ is complete. <warn>Thanks for installing RVM ðŸ™</warn> Please consider donating to our open collective to help us maintain RVM. 👉 Donate: <code>https://opencollective.com/rvm/donate</code> RVM reloaded! travis_time:end:04e6f6b4:start=1738808765275341278,finish=1738808768823198417,duration=3547857139,event= [0Ktravis_time:start:17bb4d24 [0K$ rvm use 3.2.2 --install --binary --fuzzy curl: (22) The requested URL returned error: 404 Required ruby-3.2.2 is not installed - installing. curl: (22) The requested URL returned error: 404 Searching for binary rubies, this might take some time. Found remote file https://rubies.travis-ci.org/ubuntu/20.04/x86_64/ruby-3.2.2.tar.bz2 Checking requirements for ubuntu. Requirements installation successful. ruby-3.2.2 - #configure ruby-3.2.2 - #download % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 73 32.0M 73 23.5M 0 0 15.9M 0 0:00:02 0:00:01 0:00:01 15.9M 100 32.0M 100 32.0M 0 0 20.2M 0 0:00:01 0:00:01 --:--:-- 81.5M No checksum for downloaded archive, recording checksum in user configuration. ruby-3.2.2 - #validate archive ruby-3.2.2 - #extract ruby-3.2.2 - #validate binary ruby-3.2.2 - #setup ruby-3.2.2 - #gemset created /home/travis/.rvm/gems/ruby-3.2.2@global [32mruby-3.2.2 - #importing gemset /home/travis/.rvm/gemsets/global.gems[0m|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.. [32mruby-3.2.2 - #generating global wrappers[0m|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/. [32mruby-3.2.2 - #uninstalling gem rubygems-bundler-1.4.5[0m|/. ruby-3.2.2 - #gemset created /home/travis/.rvm/gems/ruby-3.2.2 [32mruby-3.2.2 - #importing gemset /home/travis/.rvm/gemsets/default.gems[0m|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\. [32mruby-3.2.2 - #generating default wrappers[0m|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-. Using /home/travis/.rvm/gems/ruby-3.2.2 travis_time:end:17bb4d24:start=1738808768828856306,finish=1738808790052486104,duration=21223629798,event= [0Ktravis_fold:end:rvm [0K $ export BUNDLE_GEMFILE=$PWD/Gemfile travis_fold:start:cache.1 [0KSetting up build cache $ export CASHER_DIR=${TRAVIS_HOME}/.casher travis_time:start:1e79a1cc [0K$ Installing caching utilities travis_time:end:1e79a1cc:start=1738808790907491072,finish=1738808791074466727,duration=166975655,event=setup_casher [0Ktravis_time:start:13b5fa90 [0Ktravis_time:end:13b5fa90:start=1738808791081841396,finish=1738808791086069627,duration=4228231,event=setup_casher [0Ktravis_time:start:02e9a030 [0Kattempting to download cache archive[0m [32;1mfetching master/cache--linux-focal-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--rvm-3.2.2--gemfile-Gemfile.tgz[0m [32;1mfound cache[0m travis_time:end:02e9a030:start=1738808791092009351,finish=1738808792738274970,duration=1646265619,event=setup_casher [0Ktravis_time:start:098bfd5e [0Ktravis_time:end:098bfd5e:start=1738808792744631105,finish=1738808792748938985,duration=4307880,event=setup_casher [0Ktravis_time:start:002acc18 [0Kadding /home/travis/build/travis-ci/travis-migrations/vendor/bundle to cache[0m creating directory /home/travis/build/travis-ci/travis-migrations/vendor/bundle[0m travis_time:end:002acc18:start=1738808792755108129,finish=1738808794847413060,duration=2092304931,event=setup_casher [0Ktravis_fold:end:cache.1 [0K travis_fold:start:ruby.versions [0K$ ruby --version ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux] $ rvm --version rvm 1.29.12-next (master) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io] $ bundle --version Bundler version 2.4.10 $ gem --version 3.4.10 travis_fold:end:ruby.versions [0K travis_fold:start:before_install.1 [0Ktravis_time:start:07dfc3c4 [0K$ gem update --system Updating rubygems-update Successfully installed rubygems-update-3.6.3 Installing RubyGems 3.6.3 Successfully built RubyGem Name: bundler Version: 2.6.3 File: bundler-2.6.3.gem Bundler 2.6.3 installed RubyGems 3.6.3 installed Regenerating binstubs Regenerating plugins # 3.6.3 / 2025-01-16 ## Enhancements: * Add credentials file path to `gem env`. Pull request [#8375](https://github.com/rubygems/rubygems/pull/8375) by duckinator * Update SPDX license list as of 2024-12-30. Pull request [#8387](https://github.com/rubygems/rubygems/pull/8387) by github-actions[bot] * Installs bundler 2.6.3 as a default gem. ## Bug fixes: * Fix `@licenses` array unmarshalling. Pull request [#8411](https://github.com/rubygems/rubygems/pull/8411) by rykov # 3.6.2 / 2024-12-23 ## Security: * Fix Gem::SafeMarshal buffer overrun when given lengths larger than fit into a byte. Pull request [#8305](https://github.com/rubygems/rubygems/pull/8305) by segiddins * Improve type checking in marshal_load methods. Pull request [#8306](https://github.com/rubygems/rubygems/pull/8306) by segiddins ## Enhancements: * Skip rdoc hooks and their tests on newer rdoc versions. Pull request [#8340](https://github.com/rubygems/rubygems/pull/8340) by deivid-rodriguez * Installs bundler 2.6.2 as a default gem. ## Bug fixes: * Fix serialized metadata including an empty `@original_platform` attribute. Pull request [#8355](https://github.com/rubygems/rubygems/pull/8355) by deivid-rodriguez # 3.6.1 / 2024-12-17 ## Enhancements: * Installs bundler 2.6.1 as a default gem. ## Bug fixes: * Fix `gem info` tagging some non default gems as default. Pull request [#8321](https://github.com/rubygems/rubygems/pull/8321) by deivid-rodriguez ## Documentation: * Fix broken links. Pull request [#8327](https://github.com/rubygems/rubygems/pull/8327) by st0012 # 3.6.0 / 2024-12-16 ## Security: * Stop storing executable names in ivars. Pull request [#8307](https://github.com/rubygems/rubygems/pull/8307) by segiddins ## Breaking changes: * Drop ruby 3.0 support. Pull request [#8091](https://github.com/rubygems/rubygems/pull/8091) by segiddins ## Features: * Add --attestation option to gem push. Pull request [#8239](https://github.com/rubygems/rubygems/pull/8239) by segiddins ## Enhancements: * Skip unresolved deps warning on `Gem::Specification.reset` on benign cases. Pull request [#8309](https://github.com/rubygems/rubygems/pull/8309) by deivid-rodriguez * Let `gem install <name>` suggest `<name>-ruby` and `ruby-<name>` when providing "did you mean" suggestions. Pull request [#8197](https://github.com/rubygems/rubygems/pull/8197) by duckinator * Update SPDX license list as of 2024-08-19. Pull request [#8233](https://github.com/rubygems/rubygems/pull/8233) by github-actions[bot] * Add `--target-rbconfig` option to `gem install` and `gem update` commands. Pull request [#7628](https://github.com/rubygems/rubygems/pull/7628) by kateinoigakukun * Skip nil-value keys to make metadata reproducible. Pull request [#7129](https://github.com/rubygems/rubygems/pull/7129) by nobu * Allow disabling installation of compiled extensions into lib through `Gem.configuration.install_extension_in_lib`. Pull request [#6463](https://github.com/rubygems/rubygems/pull/6463) by hsbt * Installs bundler 2.6.0 as a default gem. ## Bug fixes: * Set $0 to exe when running `gem exec` to fix name in CLI output. Pull request [#8267](https://github.com/rubygems/rubygems/pull/8267) by adam12 * Fix manifest in gem package using incorrect platform sometimes. Pull request [#8202](https://github.com/rubygems/rubygems/pull/8202) by deivid-rodriguez ## Documentation: * Fix missing single quote in git source example. Pull request [#8303](https://github.com/rubygems/rubygems/pull/8303) by nobu * Update the `gem install` demo in REAME to use a gem that just works on Windows. Pull request [#8262](https://github.com/rubygems/rubygems/pull/8262) by soda92 * Unify rubygems and bundler docs directory. Pull request [#8159](https://github.com/rubygems/rubygems/pull/8159) by hsbt # 3.5.23 / 2024-11-05 ## Enhancements: * Validate user input encoding of `gem` CLI arguments. Pull request [#6471](https://github.com/rubygems/rubygems/pull/6471) by deivid-rodriguez * Fix `gem update --system` leaving old default bundler executables around. Pull request [#8172](https://github.com/rubygems/rubygems/pull/8172) by deivid-rodriguez * Installs bundler 2.5.23 as a default gem. ## Bug fixes: * Fix commands with 2 MFA requests when webauthn is enabled. Pull request [#8174](https://github.com/rubygems/rubygems/pull/8174) by deivid-rodriguez * Make `--enable-load-relative` binstubs prolog work when Ruby is not installed in the same directory as the binstub. Pull request [#7872](https://github.com/rubygems/rubygems/pull/7872) by deivid-rodriguez ## Performance: * Speed up `gem install <nonexistent-gem>` by finding alternative name suggestions faster. Pull request [#8084](https://github.com/rubygems/rubygems/pull/8084) by duckinator ## Documentation: * Add missing comma in documentation. Pull request [#8152](https://github.com/rubygems/rubygems/pull/8152) by leoarnold # 3.5.22 / 2024-10-16 ## Enhancements: * Prevent `._*` files in packages generated from macOS. Pull request [#8150](https://github.com/rubygems/rubygems/pull/8150) by deivid-rodriguez * Fix `gem pristine etc` resetting gem twice sometimes. Pull request [#8117](https://github.com/rubygems/rubygems/pull/8117) by deivid-rodriguez * Allow `gem pristine` to reset default gems too. Pull request [#8118](https://github.com/rubygems/rubygems/pull/8118) by deivid-rodriguez * Update vendored `uri` and `net-http`. Pull request [#8112](https://github.com/rubygems/rubygems/pull/8112) by segiddins * Installs bundler 2.5.22 as a default gem. ## Bug fixes: * Fix `gem contents` for default gems. Pull request [#8132](https://github.com/rubygems/rubygems/pull/8132) by deivid-rodriguez * Fix duplicated specs when they have been previously activated. Pull request [#8131](https://github.com/rubygems/rubygems/pull/8131) by deivid-rodriguez * Fix `gem install` on NFS shares. Pull request [#8123](https://github.com/rubygems/rubygems/pull/8123) by deivid-rodriguez * Fix a `gem install` crash during "done installing" hooks. Pull request [#8113](https://github.com/rubygems/rubygems/pull/8113) by deivid-rodriguez * Fix plugin command loading. Pull request [#8121](https://github.com/rubygems/rubygems/pull/8121) by deivid-rodriguez # 3.5.21 / 2024-10-03 ## Enhancements: * Fix `Gem::MissingSpecVersionError#to_s` not showing exception message. Pull request [#8074](https://github.com/rubygems/rubygems/pull/8074) by deivid-rodriguez * Remove code that makes suggest_gems_from_name give worse results. Pull request [#8083](https://github.com/rubygems/rubygems/pull/8083) by duckinator * Warning about PATH in `--user-install` mode is only necessary for gems with executables. Pull request [#8071](https://github.com/rubygems/rubygems/pull/8071) by deivid-rodriguez * Installs bundler 2.5.21 as a default gem. ## Bug fixes: * Fix error in one source when fetching dependency APIs clearing results from all sources. Pull request [#8080](https://github.com/rubygems/rubygems/pull/8080) by deivid-rodriguez * Fix `gem cleanup` warning when two versions of psych installed. Pull request [#8072](https://github.com/rubygems/rubygems/pull/8072) by deivid-rodriguez # 3.5.20 / 2024-09-24 ## Enhancements: * Installs bundler 2.5.20 as a default gem. # 3.5.19 / 2024-09-18 ## Enhancements: * Standardize pretty-print output for `Gem::Source` and subclasses. Pull request [#7994](https://github.com/rubygems/rubygems/pull/7994) by djberube * Update vendored `molinillo` to master and vendored `resolv` to 0.4.0. Pull request [#7521](https://github.com/rubygems/rubygems/pull/7521) by hsbt * Installs bundler 2.5.19 as a default gem. ## Bug fixes: * Fix `bundle exec rake install` failing when local gem has extensions. Pull request [#7977](https://github.com/rubygems/rubygems/pull/7977) by deivid-rodriguez * Make `gem exec` use the standard GEM_HOME. Pull request [#7982](https://github.com/rubygems/rubygems/pull/7982) by deivid-rodriguez * Fix `gem fetch` always exiting with zero status code. Pull request [#8007](https://github.com/rubygems/rubygems/pull/8007) by deivid-rodriguez * Remove temporary `.lock` files unintentionally left around by gem installer. Pull request [#7939](https://github.com/rubygems/rubygems/pull/7939) by nobu * Removed unused stringio. Pull request [#8001](https://github.com/rubygems/rubygems/pull/8001) by hsbt * Avoid another race condition of open mode. Pull request [#7931](https://github.com/rubygems/rubygems/pull/7931) by nobu * Fix `@license` typo preventing licenses from being correctly unmarshalled. Pull request [#7975](https://github.com/rubygems/rubygems/pull/7975) by djberube ## Performance: * Fix `gem install does-not-exist` being super slow. Pull request [#8006](https://github.com/rubygems/rubygems/pull/8006) by deivid-rodriguez # 3.5.18 / 2024-08-26 ## Enhancements: * Installs bundler 2.5.18 as a default gem. ## Bug fixes: * Fix `gem uninstall <name>:<version>` failing on shadowed default gems. Pull request [#7949](https://github.com/rubygems/rubygems/pull/7949) by deivid-rodriguez # 3.5.17 / 2024-08-01 ## Enhancements: * Explicitly encode `Gem::Dependency` to yaml. Pull request [#7867](https://github.com/rubygems/rubygems/pull/7867) by segiddins * Installs bundler 2.5.17 as a default gem. ## Bug fixes: * Fix `gem list` regression when a regular gem shadows a default one. Pull request [#7892](https://github.com/rubygems/rubygems/pull/7892) by deivid-rodriguez * Always leave default gem executables around. Pull request [#7879](https://github.com/rubygems/rubygems/pull/7879) by deivid-rodriguez * Fix line comment issue for hash when loading gemrc. Pull request [#7857](https://github.com/rubygems/rubygems/pull/7857) by leetking # 3.5.16 / 2024-07-18 ## Enhancements: * Installs bundler 2.5.16 as a default gem. ## Bug fixes: * Fix gemspec `require_paths` validation. Pull request [#7866](https://github.com/rubygems/rubygems/pull/7866) by deivid-rodriguez * Fix loading of nested `gemrc` config keys when specified as symbols. Pull request [#7851](https://github.com/rubygems/rubygems/pull/7851) by moofkit ## Performance: * Use `caller_locations` instead of splitting `caller`. Pull request [#7708](https://github.com/rubygems/rubygems/pull/7708) by nobu # 3.5.15 / 2024-07-09 ## Enhancements: * Installs bundler 2.5.15 as a default gem. ## Bug fixes: * Restrict generic `arm` to only match 32-bit arm. Pull request [#7830](https://github.com/rubygems/rubygems/pull/7830) by ntkme * Protect creating binstubs with a file lock. Pull request [#7806](https://github.com/rubygems/rubygems/pull/7806) by deivid-rodriguez ## Documentation: * Make it clearer that `add_dependency` is the main way to add non-development dependencies. Pull request [#7800](https://github.com/rubygems/rubygems/pull/7800) by jeromedalbert # 3.5.14 / 2024-06-21 ## Enhancements: * Installs bundler 2.5.14 as a default gem. ## Bug fixes: * Make "bundler? update --bundler" behave identically. Pull request [#7778](https://github.com/rubygems/rubygems/pull/7778) by x-yuri # 3.5.13 / 2024-06-14 ## Enhancements: * Installs bundler 2.5.13 as a default gem. ## Bug fixes: * Never remove executables that may belong to a default gem. Pull request [#7747](https://github.com/rubygems/rubygems/pull/7747) by deivid-rodriguez # 3.5.12 / 2024-06-13 ## Enhancements: * Installs bundler 2.5.12 as a default gem. ## Bug fixes: * Fix `gem uninstall` unresolved specifications warning. Pull request [#7667](https://github.com/rubygems/rubygems/pull/7667) by deivid-rodriguez * Fix `gem pristine` sometimes failing to pristine user installed gems. Pull request [#7664](https://github.com/rubygems/rubygems/pull/7664) by deivid-rodriguez # 3.5.11 / 2024-05-28 ## Enhancements: * Update SPDX license list as of 2024-05-22. Pull request [#7689](https://github.com/rubygems/rubygems/pull/7689) by github-actions[bot] * Fix the update_rubygems inconsistency (--disable-gems). Pull request [#7658](https://github.com/rubygems/rubygems/pull/7658) by x-yuri * Accept WASI as an OS name in Gem::Platform. Pull request [#7629](https://github.com/rubygems/rubygems/pull/7629) by kateinoigakukun * Warn if RubyGems version explicitly set in gemspec does not match running version. Pull request [#7460](https://github.com/rubygems/rubygems/pull/7460) by deivid-rodriguez * Installs bundler 2.5.11 as a default gem. ## Bug fixes: * Fix binstubs sometimes not getting regenerated when `--destdir` is given. Pull request [#7660](https://github.com/rubygems/rubygems/pull/7660) by deivid-rodriguez * Fix `gem uninstall --user-install` for symlinked HOME. Pull request [#7645](https://github.com/rubygems/rubygems/pull/7645) by deivid-rodriguez * Fix issue when plugin stubs would sometimes not be properly removed by `gem uninstall`. Pull request [#7631](https://github.com/rubygems/rubygems/pull/7631) by deivid-rodriguez * Fix plugins uninstallation for user installed gems. Pull request [#6456](https://github.com/rubygems/rubygems/pull/6456) by voxik ## Performance: * Use a constant empty tar header to avoid extra allocations. Pull request [#7484](https://github.com/rubygems/rubygems/pull/7484) by segiddins ## Documentation: * Recommend `bin/rake` over `rake` in contributing docs. Pull request [#7648](https://github.com/rubygems/rubygems/pull/7648) by deivid-rodriguez # 3.5.10 / 2024-05-03 ## Security: * Add a limit to the size of the metadata and checksums files in a gem package. Pull request [#7568](https://github.com/rubygems/rubygems/pull/7568) by segiddins ## Enhancements: * Don't fully require `rubygems` from `rubygems/package` to prevent some circular require warnings when using Bundler. Pull request [#7612](https://github.com/rubygems/rubygems/pull/7612) by deivid-rodriguez * Installs bundler 2.5.10 as a default gem. ## Bug fixes: * Rename credential email to identifier in WebAuthn poller. Pull request [#7623](https://github.com/rubygems/rubygems/pull/7623) by jenshenny # 3.5.9 / 2024-04-12 ## Enhancements: * Installs bundler 2.5.9 as a default gem. # 3.5.8 / 2024-04-11 ## Security: * Respect global umask when writing regular files. Pull request [#7518](https://github.com/rubygems/rubygems/pull/7518) by deivid-rodriguez ## Enhancements: * Allow string keys with gemrc. Pull request [#7543](https://github.com/rubygems/rubygems/pull/7543) by hsbt * [Experimental] Add "gem rebuild" command. Pull request [#4913](https://github.com/rubygems/rubygems/pull/4913) by duckinator * Installs bundler 2.5.8 as a default gem. ## Bug fixes: * Fix NoMethodError crash when building errors about corrupt package files. Pull request [#7539](https://github.com/rubygems/rubygems/pull/7539) by jez * Fix resolver to properly intersect Arrays of `Gem::Resolver::Activation` objects. Pull request [#7537](https://github.com/rubygems/rubygems/pull/7537) by deivid-rodriguez # 3.5.7 / 2024-03-22 ## Enhancements: * Warn on empty or open required_ruby_version specification attribute. Pull request [#5010](https://github.com/rubygems/rubygems/pull/5010) by simi * Control whether YAML aliases are enabled in Gem::SafeYAML.safe_load via attribute. Pull request [#7464](https://github.com/rubygems/rubygems/pull/7464) by segiddins * Update SPDX license list as of 2024-02-08. Pull request [#7468](https://github.com/rubygems/rubygems/pull/7468) by github-actions[bot] * Installs bundler 2.5.7 as a default gem. ## Bug fixes: * Allow prerelease activation (even if requirement is not explicit about it) when it's the only possibility. Pull request [#7428](https://github.com/rubygems/rubygems/pull/7428) by kimesf ## Documentation: * Fix a typo. Pull request [#7505](https://github.com/rubygems/rubygems/pull/7505) by hsbt * Use https instead of http in documentation links. Pull request [#7481](https://github.com/rubygems/rubygems/pull/7481) by hsbt # 3.5.6 / 2024-02-06 ## Enhancements: * Deep copy requirements in `Gem::Specification` and `Gem::Requirement`. Pull request [#7439](https://github.com/rubygems/rubygems/pull/7439) by flavorjones * Change gem login message to clear up that username can be also used. Pull request [#7422](https://github.com/rubygems/rubygems/pull/7422) by VitaliySerov * Add metadata for rubygems.org. Pull request [#7435](https://github.com/rubygems/rubygems/pull/7435) by m-nakamura145 * Improve gem login scope selection. Pull request [#7342](https://github.com/rubygems/rubygems/pull/7342) by williantenfen * Vendor uri in RubyGems. Pull request [#7386](https://github.com/rubygems/rubygems/pull/7386) by deivid-rodriguez * Installs bundler 2.5.6 as a default gem. ## Bug fixes: * Skip to load commented out words. Pull request [#7413](https://github.com/rubygems/rubygems/pull/7413) by hsbt * Fix rake runtime dependency warning for rake based extension. Pull request [#7395](https://github.com/rubygems/rubygems/pull/7395) by ntkme # 3.5.5 / 2024-01-18 ## Enhancements: * Installs bundler 2.5.5 as a default gem. ## Bug fixes: * Fix `require` activation conflicts when requiring default gems under some situations. Pull request [#7379](https://github.com/rubygems/rubygems/pull/7379) by deivid-rodriguez * Use cache_home instead of data_home in default_spec_cache_dir. Pull request [#7331](https://github.com/rubygems/rubygems/pull/7331) by mrkn ## Documentation: * Use squiggly heredocs in `Gem::Specification#description` documentation, so it doesn't add leading whitespace. Pull request [#7373](https://github.com/rubygems/rubygems/pull/7373) by bravehager # 3.5.4 / 2024-01-04 ## Enhancements: * Always avoid "Updating rubygems-update" message. Pull request [#7335](https://github.com/rubygems/rubygems/pull/7335) by deivid-rodriguez * Installs bundler 2.5.4 as a default gem. ## Bug fixes: * Make `gem update --system` respect ruby version constraints. Pull request [#7334](https://github.com/rubygems/rubygems/pull/7334) by deivid-rodriguez # 3.5.3 / 2023-12-22 ## Enhancements: * Installs bundler 2.5.3 as a default gem. # 3.5.2 / 2023-12-21 ## Enhancements: * Support dynamic library loading with extension .so or .o. Pull request [#7241](https://github.com/rubygems/rubygems/pull/7241) by hogelog * Installs bundler 2.5.2 as a default gem. ## Performance: * Replace `object_id` comparison with identity Hash. Pull request [#7303](https://github.com/rubygems/rubygems/pull/7303) by amomchilov * Use IO.copy_stream when reading, writing. Pull request [#6958](https://github.com/rubygems/rubygems/pull/6958) by martinemde # 3.5.1 / 2023-12-15 ## Enhancements: * Installs bundler 2.5.1 as a default gem. # 3.5.0 / 2023-12-15 ## Security: * Replace `Marshal.load` with a fully-checked safe gemspec loader. Pull request [#6896](https://github.com/rubygems/rubygems/pull/6896) by segiddins ## Breaking changes: * Drop ruby 2.6 and 2.7 support. Pull request [#7116](https://github.com/rubygems/rubygems/pull/7116) by deivid-rodriguez * Release package no longer includes test files. Pull request [#6781](https://github.com/rubygems/rubygems/pull/6781) by hsbt * Hide `Gem::MockGemUi` from users. Pull request [#6623](https://github.com/rubygems/rubygems/pull/6623) by hsbt * Deprecated `Gem.datadir` has been removed. Pull request [#6469](https://github.com/rubygems/rubygems/pull/6469) by hsbt ## Deprecations: * Deprecate `Gem::Platform.match?`. Pull request [#6783](https://github.com/rubygems/rubygems/pull/6783) by hsbt * Deprecate `Gem::List`. Pull request [#6311](https://github.com/rubygems/rubygems/pull/6311) by segiddins ## Features: * The `generate_index` command can now generate compact index files and lives as an external `rubygems-generate_index` gem. Pull request [#7085](https://github.com/rubygems/rubygems/pull/7085) by segiddins * Make `gem install` fallback to user installation directory if default gem home is not writable. Pull request [#5327](https://github.com/rubygems/rubygems/pull/5327) by duckinator * Leverage ruby feature to warn when requiring default gems from stdlib that will be turned into bundled gems in the future. Pull request [#6840](https://github.com/rubygems/rubygems/pull/6840) by hsbt ## Performance: * Use match? when regexp match data is unused. Pull request [#7263](https://github.com/rubygems/rubygems/pull/7263) by segiddins * Fewer allocations in gem installation. Pull request [#6975](https://github.com/rubygems/rubygems/pull/6975) by segiddins * Optimize allocations in `Gem::Version`. Pull request [#6970](https://github.com/rubygems/rubygems/pull/6970) by segiddins ## Enhancements: * Warn for duplicate meta data links when building gems. Pull request [#7213](https://github.com/rubygems/rubygems/pull/7213) by etherbob * Vendor `net-http`, `net-protocol`, `resolv`, and `timeout` to reduce conflicts between Gemfile gems and internal dependencies. Pull request [#6793](https://github.com/rubygems/rubygems/pull/6793) by deivid-rodriguez * Remove non-transparent requirement added to prerelease gems. Pull request [#7226](https://github.com/rubygems/rubygems/pull/7226) by deivid-rodriguez * Stream output from ext builds when --verbose. Pull request [#7240](https://github.com/rubygems/rubygems/pull/7240) by osyoyu * Add missing services to CI detection and make it consistent between RubyGems and Bundler. Pull request [#7205](https://github.com/rubygems/rubygems/pull/7205) by nevinera * Update generate licenses template to not freeze regexps. Pull request [#7154](https://github.com/rubygems/rubygems/pull/7154) by github-actions[bot] * Don't check `LIBRUBY_RELATIVE` in truffleruby to signal a bash prelude in rubygems binstubs. Pull request [#7156](https://github.com/rubygems/rubygems/pull/7156) by deivid-rodriguez * Update SPDX list and warn on deprecated identifiers. Pull request [#6926](https://github.com/rubygems/rubygems/pull/6926) by simi * Simplify extended `require` to potentially fix some deadlocks. Pull request [#6827](https://github.com/rubygems/rubygems/pull/6827) by nobu * Small refactors for `Gem::Resolver`. Pull request [#6766](https://github.com/rubygems/rubygems/pull/6766) by hsbt * Use double-quotes instead of single-quotes consistently in warnings. Pull request [#6550](https://github.com/rubygems/rubygems/pull/6550) by hsbt * Add debug message for `nil` version gemspec. Pull request [#6436](https://github.com/rubygems/rubygems/pull/6436) by hsbt * Installs bundler 2.5.0 as a default gem. ## Bug fixes: * Fix installing from source with same default bundler version already installed. Pull request [#7244](https://github.com/rubygems/rubygems/pull/7244) by deivid-rodriguez ## Documentation: * Improve comment explaining the necessity of `write_default_spec` method. Pull request [#6563](https://github.com/rubygems/rubygems/pull/6563) by voxik # 3.4.22 / 2023-11-09 ## Enhancements: * Update SPDX license list as of 2023-10-05. Pull request [#7040](https://github.com/rubygems/rubygems/pull/7040) by github-actions[bot] * Remove unnecessary rescue. Pull request [#7109](https://github.com/rubygems/rubygems/pull/7109) by deivid-rodriguez * Installs bundler 2.4.22 as a default gem. ## Bug fixes: * Handle empty array at built-in YAML serializer. Pull request [#7099](https://github.com/rubygems/rubygems/pull/7099) by hsbt * Ignore non-tar format `.gem` files during search. Pull request [#7095](https://github.com/rubygems/rubygems/pull/7095) by dearblue * Allow explicitly uninstalling multiple versions of same gem. Pull request [#7063](https://github.com/rubygems/rubygems/pull/7063) by kstevens715 ## Performance: * Avoid regexp match on every call to `Gem::Platform.local`. Pull request [#7104](https://github.com/rubygems/rubygems/pull/7104) by segiddins ## Documentation: * Get `Gem::Specification#extensions_dir` documented. Pull request [#6218](https://github.com/rubygems/rubygems/pull/6218) by deivid-rodriguez # 3.4.21 / 2023-10-17 ## Enhancements: * Abort `setup.rb` if Ruby is too old. Pull request [#7011](https://github.com/rubygems/rubygems/pull/7011) by deivid-rodriguez * Remove usage of Dir.chdir that only execute a subprocess. Pull request [#6930](https://github.com/rubygems/rubygems/pull/6930) by segiddins * Freeze more strings in generated gemspecs. Pull request [#6974](https://github.com/rubygems/rubygems/pull/6974) by segiddins * Use pure-ruby YAML parser for loading configuration at RubyGems. Pull request [#6615](https://github.com/rubygems/rubygems/pull/6615) by hsbt * Installs bundler 2.4.21 as a default gem. ## Documentation: * Update suggested variable for bindir. Pull request [#7028](https://github.com/rubygems/rubygems/pull/7028) by hsbt * Fix invalid links in documentation. Pull request [#7008](https://github.com/rubygems/rubygems/pull/7008) by simi # 3.4.20 / 2023-09-27 ## Enhancements: * Raise `Gem::Package::FormatError` when gem encounters corrupt EOF. Pull request [#6882](https://github.com/rubygems/rubygems/pull/6882) by martinemde * Allow skipping empty license `gem build` warning by setting license to `nil`. Pull request [#6879](https://github.com/rubygems/rubygems/pull/6879) by jhong97 * Update SPDX license list as of 2023-06-18. Pull request [#6891](https://github.com/rubygems/rubygems/pull/6891) by github-actions[bot] * Update SPDX license list as of 2023-04-28. Pull request [#6642](https://github.com/rubygems/rubygems/pull/6642) by segiddins * Update SPDX license list as of 2023-01-26. Pull request [#6310](https://github.com/rubygems/rubygems/pull/6310) by segiddins * Installs bundler 2.4.20 as a default gem. ## Bug fixes: * Fixed false positive SymlinkError in symbolic link directory. Pull request [#6947](https://github.com/rubygems/rubygems/pull/6947) by negi0109 * Ensure that loading multiple gemspecs with legacy YAML class references does not warn. Pull request [#6889](https://github.com/rubygems/rubygems/pull/6889) by segiddins * Fix NoMethodError when choosing a too big number from `gem uni` list. Pull request [#6901](https://github.com/rubygems/rubygems/pull/6901) by amatsuda ## Performance: * Reduce allocations for stub specifications. Pull request [#6972](https://github.com/rubygems/rubygems/pull/6972) by segiddins # 3.4.19 / 2023-08-17 ## Enhancements: * Installs bundler 2.4.19 as a default gem. ## Performance: * Speedup building docs when updating rubygems. Pull request [#6864](https://github.com/rubygems/rubygems/pull/6864) by deivid-rodriguez # 3.4.18 / 2023-08-02 ## Enhancements: * Add poller to fetch WebAuthn OTP. Pull request [#6774](https://github.com/rubygems/rubygems/pull/6774) by jenshenny * Remove side effects when unmarshaling old `Gem::Specification`. Pull request [#6825](https://github.com/rubygems/rubygems/pull/6825) by nobu * Ship rubygems executables in `exe` folder. Pull request [#6704](https://github.com/rubygems/rubygems/pull/6704) by hsbt * Installs bundler 2.4.18 as a default gem. # 3.4.17 / 2023-07-14 ## Enhancements: * Installs bundler 2.4.17 as a default gem. ## Performance: * Avoid unnecessary work for private local gem installation. Pull request [#6810](https://github.com/rubygems/rubygems/pull/6810) by deivid-rodriguez # 3.4.16 / 2023-07-10 ## Enhancements: * Installs bundler 2.4.16 as a default gem. # 3.4.15 / 2023-06-29 ## Enhancements: * Installs bundler 2.4.15 as a default gem. ## Bug fixes: * Autoload shellwords when it's needed. Pull request [#6734](https://github.com/rubygems/rubygems/pull/6734) by ioquatix ## Documentation: * Update command to test local gem command changes. Pull request [#6761](https://github.com/rubygems/rubygems/pull/6761) by jenshenny # 3.4.14 / 2023-06-12 ## Enhancements: * Load plugin immediately. Pull request [#6673](https://github.com/rubygems/rubygems/pull/6673) by kou * Installs bundler 2.4.14 as a default gem. ## Documentation: * Clarify what the `rubygems-update` gem is for, and link to source code and guides. Pull request [#6710](https://github.com/rubygems/rubygems/pull/6710) by davetron5000 # 3.4.13 / 2023-05-09 ## Enhancements: * Installs bundler 2.4.13 as a default gem. # 3.4.12 / 2023-04-11 ## Enhancements: * [Experimental] Add WebAuthn Support to the CLI. Pull request [#6560](https://github.com/rubygems/rubygems/pull/6560) by jenshenny * Installs bundler 2.4.12 as a default gem. # 3.4.11 / 2023-04-10 ## Enhancements: * Installs bundler 2.4.11 as a default gem. ------------------------------------------------------------------------------ RubyGems installed the following executables: /home/travis/.rvm/rubies/ruby-3.2.2/bin/gem /home/travis/.rvm/rubies/ruby-3.2.2/bin/bundle /home/travis/.rvm/rubies/ruby-3.2.2/bin/bundler RubyGems system software updated travis_time:end:07dfc3c4:start=1738808795330212211,finish=1738808799781650335,duration=4451438124,event=before_install [0Ktravis_fold:end:before_install.1 [0Ktravis_fold:start:before_install.2 [0Ktravis_time:start:1d692f30 [0K$ sudo sed -i -e '/local.*peer/s/postgres/all/' -e 's/peer\|md5/trust/g' /etc/postgresql/11/main/pg_hba.conf travis_time:end:1d692f30:start=1738808799788589714,finish=1738808799805639917,duration=17050203,event=before_install [0Ktravis_fold:end:before_install.2 [0Ktravis_fold:start:before_install.3 [0Ktravis_time:start:0c9221a5 [0K$ sudo sed -i -e 's/^port = 5433/port = 5432/' /etc/postgresql/11/main/postgresql.conf travis_time:end:0c9221a5:start=1738808799812545339,finish=1738808799828586976,duration=16041637,event=before_install [0Ktravis_fold:end:before_install.3 [0Ktravis_fold:start:before_install.4 [0Ktravis_time:start:000129d4 [0K$ sudo systemctl restart postgresql@11-main travis_time:end:000129d4:start=1738808799835346295,finish=1738808802317828637,duration=2482482342,event=before_install [0Ktravis_fold:end:before_install.4 [0Ktravis_fold:start:install.bundler [0Ktravis_time:start:01011bfe [0K$ bundle install --jobs=3 --retry=3 --deployment [DEPRECATED] The `--deployment` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set deployment true`, and stop using this flag Bundler 2.6.3 is running, but your lockfile was generated with 2.4.14. Installing Bundler 2.4.14 and restarting using that version. Fetching gem metadata from https://rubygems.org/. Fetching bundler 2.4.14 Installing bundler 2.4.14 [DEPRECATED] The `--deployment` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local deployment 'true'`, and stop using this flag Using rake 13.0.6 Using concurrent-ruby 1.2.2 Using i18n 1.14.1 Using minitest 5.18.1 Using tzinfo 2.0.6 Using activesupport 7.0.6 Using builder 3.2.4 Using erubi 1.12.0 Using racc 1.7.1 Using nokogiri 1.15.2 (x86_64-linux) Using rails-dom-testing 2.1.1 Using crass 1.0.6 Using loofah 2.21.3 Using rails-html-sanitizer 1.6.0 Using actionview 7.0.6 Using rack 2.2.7 Using rack-test 2.1.0 Using actionpack 7.0.6 Using nio4r 2.5.9 Using websocket-extensions 0.1.5 Using websocket-driver 0.7.5 Using actioncable 7.0.6 Using globalid 1.1.0 Using activejob 7.0.6 Using activemodel 7.0.6 Using activerecord 7.0.6 Using marcel 1.0.2 Using mini_mime 1.1.2 Using activestorage 7.0.6 Using date 3.3.3 Using timeout 0.4.0 Using net-protocol 0.2.1 Using net-imap 0.3.6 Using net-pop 0.1.2 Using net-smtp 0.3.3 Using mail 2.8.1 Using actionmailbox 7.0.6 Using actionmailer 7.0.6 Using actiontext 7.0.6 Using ansi 1.5.0 Using ast 2.4.2 Using aws-eventstream 1.2.0 Using aws-partitions 1.783.0 Using aws-sigv4 1.6.0 Using jmespath 1.6.2 Using aws-sdk-core 3.176.1 Using aws-sdk-kms 1.68.0 Using aws-sdk-s3 1.127.0 Using bundler 2.4.14 Using colored 1.2 Using diff-lcs 1.5.0 Using docile 1.4.0 Using json 2.6.3 Using language_server-protocol 3.17.0.3 Using method_source 1.0.0 Using parallel 1.23.0 Using parser 3.2.2.3 Using pg 1.5.3 Using thor 1.2.2 Using zeitwerk 2.6.8 Using railties 7.0.6 Using rails 7.0.6 Using rainbow 3.1.1 Using rake-notes 0.2.2 Using regexp_parser 2.8.1 Using rexml 3.2.5 Using routes 0.2.0 Using rspec-support 3.12.1 Using rspec-core 3.12.2 Using rspec-expectations 3.12.3 Using rspec-mocks 3.12.5 Using rspec 3.12.0 Using rubocop-ast 1.29.0 Using ruby-progressbar 1.13.0 Using unicode-display_width 2.4.2 Using rubocop 1.54.1 Using rubocop-capybara 2.18.0 Using rubocop-factory_bot 2.23.1 Using rubocop-performance 1.18.0 Using rubocop-rspec 2.22.0 Using simplecov-html 0.12.3 Using simplecov_json_formatter 0.1.4 Using simplecov 0.22.0 Using terminal-table 3.0.2 Using simplecov-console 0.9.1 Bundle complete! 12 Gemfile dependencies, 85 gems now installed. Bundled gems are installed into `./vendor/bundle` travis_time:end:01011bfe:start=1738808802324930649,finish=1738808803997121471,duration=1672190822,event=install [0Ktravis_fold:end:install.bundler [0K travis_fold:start:before_script.1 [0Ktravis_time:start:0b9bcaf2 [0K$ psql --version psql (PostgreSQL) 11.22 (Ubuntu 11.22-9.pgdg20.04+1) travis_time:end:0b9bcaf2:start=1738808804004019865,finish=1738808804014400266,duration=10380401,event=before_script [0Ktravis_fold:end:before_script.1 [0Ktravis_fold:start:before_script.2 [0Ktravis_time:start:10f50c84 [0K$ psql -c 'CREATE DATABASE travis_test;' CREATE DATABASE travis_time:end:10f50c84:start=1738808804020792724,finish=1738808804271430798,duration=250638074,event=before_script [0Ktravis_fold:end:before_script.2 [0Ktravis_fold:start:before_script.3 [0Ktravis_time:start:0463c860 [0K$ curl -fs https://raw.githubusercontent.com/travis-ci/travis-migrations/master/db/main/structure.sql | psql -v ON_ERROR_STOP=1 travis_test SET SET SET SET SET set_config ------------ (1 row) SET SET SET SET CREATE EXTENSION COMMENT CREATE EXTENSION COMMENT CREATE TYPE CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION SET CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE TABLE CREATE TABLE CREATE TABLE CREATE TABLE CREATE TABLE CREATE TABLE CREATE TABLE CREATE TABLE CREATE TABLE CREATE TABLE CREATE TABLE CREATE TABLE CREATE TABLE CREATE TABLE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE CREATE SEQUENCE ALTER SEQUENCE CREATE TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE TRIGGER CREATE TRIGGER CREATE TRIGGER CREATE TRIGGER CREATE TRIGGER CREATE TRIGGER CREATE TRIGGER CREATE TRIGGER CREATE TRIGGER CREATE TRIGGER CREATE TRIGGER CREATE TRIGGER CREATE TRIGGER CREATE TRIGGER CREATE TRIGGER CREATE TRIGGER CREATE TRIGGER ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE SET INSERT 0 394 travis_time:end:0463c860:start=1738808804278154904,finish=1738808805767087479,duration=1488932575,event=before_script [0Ktravis_fold:end:before_script.3 [0Ktravis_time:start:0f7793b8 [0K$ bundle exec rspec spec Repo counts before aggregation after aggregating per repo after aggregating all counts does not raise if repos are missing does not raise if builds are deleted before stages set_updated_at trigger Dropped database 'travis_test' Created database 'travis_test' == 201207261749 CreatePlans: migrating ======================================== -- create_table(:plans, {:id=>:integer}) -> 0.0072s == 201207261749 CreatePlans: migrated (0.0073s) =============================== == 20101126174706 CreateRepositories: migrating =============================== -- create_table(:repositories, {:id=>:integer}) -> 0.0064s == 20101126174706 CreateRepositories: migrated (0.0065s) ====================== == 20101126174715 CreateBuilds: migrating ===================================== -- create_table(:builds, {:id=>:integer}) -> 0.0067s == 20101126174715 CreateBuilds: migrated (0.0068s) ============================ == 20110109130532 DeviseCreateUsers: migrating ================================ -- create_table(:users, {:id=>:integer}) -> 0.0055s -- add_index(:users, :login, {:unique=>true}) -> 0.0026s == 20110109130532 DeviseCreateUsers: migrated (0.0083s) ======================= == 20110116155100 RepositoriesAddUsername: migrating ========================== -- change_table(:repositories) -> 0.0008s == 20110116155100 RepositoriesAddUsername: migrated (0.0009s) ================= == 20110130102621 CreateTokens: migrating ===================================== -- create_table(:tokens, {:id=>:integer}) -> 0.0058s == 20110130102621 CreateTokens: migrated (0.0058s) ============================ == 20110301071656 AddBuildParentIdAndConfiguration: migrating ================= -- change_table(:builds) -> 0.0013s -- change_column(:builds, :number, :string) -> 0.0059s -- add_index(:builds, :repository_id) -> 0.0026s -- add_index(:builds, :parent_id) -> 0.0024s == 20110301071656 AddBuildParentIdAndConfiguration: migrated (0.0124s) ======== == 20110316174721 RepositoriesDenormalizeLastBuildAttributes: migrating ======= -- change_table(:repositories) -> 0.0025s == 20110316174721 RepositoriesDenormalizeLastBuildAttributes: migrated (0.0026s) == 20110321075539 RepositoriesAddOwnerNameAndOwnerEmail: migrating ============ -- change_table(:repositories) -> 0.0015s -- remove_column(:repositories, :username) -> 0.0004s == 20110321075539 RepositoriesAddOwnerNameAndOwnerEmail: migrated (0.0019s) === == 20110411171936 CreateHistoriesTable: migrating ============================= -- create_table(:histories, {:id=>:integer}) -> 0.0057s -- add_index(:histories, [:item, :table, :month, :year]) -> 0.0023s == 20110411171936 CreateHistoriesTable: migrated (0.0082s) ==================== == 20110411171937 RenameHistoriesToRailsAdminHistories: migrating ============= -- remove_index(:histories, nil, {:name=>:index_histories_on_item_and_table_and_month_and_year}) -> 0.0005s -- rename_table(:histories, :rails_admin_histories) -> 0.0034s -- add_index("rails_admin_histories", ["item", "table", "month", "year"], {:name=>"index_histories_on_item_and_table_and_month_and_year"}) -> 0.0024s == 20110411171937 RenameHistoriesToRailsAdminHistories: migrated (0.0077s) ==== == 20110411172518 AddAdminFlagToUser: migrating =============================== -- change_table(:users) -> 0.0011s == 20110411172518 AddAdminFlagToUser: migrated (0.0012s) ====================== == 20110413101057 BuildsAddRef: migrating ===================================== -- change_table(:builds) -> 0.0011s == 20110413101057 BuildsAddRef: migrated (0.0011s) ============================ == 20110414131100 BuildsAddGithubPayload: migrating =========================== -- change_table(:builds) -> 0.0007s == 20110414131100 BuildsAddGithubPayload: migrated (0.0007s) ================== == 20110503150504 AddGithubIdToUsersTable: migrating ========================== -- add_column(:users, :github_id, :integer) -> 0.0006s -- add_index(:users, :github_id) -> 0.0021s == 20110503150504 AddGithubIdToUsersTable: migrated (0.0028s) ================= == 20110523012243 RepositoriesChangeOwnerEmailType: migrating ================= -- change_column(:repositories, :owner_email, :text) -> 0.0007s == 20110523012243 RepositoriesChangeOwnerEmailType: migrated (0.0007s) ======== == 20110611203537 AddGithubOauthTokenToUser: migrating ======================== -- add_column(:users, :github_oauth_token, :string) -> 0.0006s -- add_index(:users, :github_oauth_token) -> 0.0023s == 20110611203537 AddGithubOauthTokenToUser: migrated (0.0030s) =============== == 20110613210252 AddCompareUrlToBuild: migrating ============================= -- add_column(:builds, :compare_url, :string) -> 0.0007s == 20110613210252 AddCompareUrlToBuild: migrated (0.0007s) ==================== == 20110615152003 BuildsRemoveJobId: migrating ================================ -- change_table(:builds) -> 0.0006s == 20110615152003 BuildsRemoveJobId: migrated (0.0007s) ======================= == 20110616211744 BuildRemoveLastBuiltAt: migrating =========================== -- change_table(:repositories) -> 0.0006s == 20110616211744 BuildRemoveLastBuiltAt: migrated (0.0007s) ================== == 20110617114728 AddMissingIndexes: migrating ================================ -- add_index(:repositories, :last_build_started_at) -> 0.0025s -- add_index(:repositories, [:owner_name, :name]) -> 0.0022s -- add_index(:builds, [:repository_id, :parent_id, :started_at]) -> 0.0022s == 20110617114728 AddMissingIndexes: migrated (0.0070s) ======================= == 20110619100906 AddActiveToRepositories: migrating ========================== -- add_column(:repositories, :is_active, :boolean) -> 0.0008s == 20110619100906 AddActiveToRepositories: migrated (0.0008s) ================= == 20110729094426 StoreTokenInBuild: migrating ================================ -- add_column(:builds, :token, :string) -> 0.0007s == 20110729094426 StoreTokenInBuild: migrated (0.0007s) ======================= == 20110801161819 CreateRequestsCommitsAndTasks: migrating ==================== -- change_table(:builds) -> 0.0016s -- create_table(:commits, {:force=>true, :id=>:integer}) -> 0.0061s -- create_table(:requests, {:force=>true, :id=>:integer}) -> 0.0066s -- create_table(:tasks, {:force=>true, :id=>:integer}) -> 0.0070s -- add_index(:commits, :commit) -> 0.0026s -- add_index(:builds, :commit) -> 0.0024s -- add_index(:requests, :commit) -> 0.0025s -- add_index(:tasks, :commit) -> 0.0025s -- execute("UPDATE requests SET commit_id = (SELECT commits.id FROM commits WHERE commits.commit = requests.commit LIMIT 1)") -> 0.0008s -- execute("UPDATE tasks SET commit_id = (SELECT commits.id FROM commits WHERE commits.commit = tasks.commit LIMIT 1)") -> 0.0005s -- execute("DELETE FROM builds WHERE parent_id IS NOT NULL") -> 0.0005s -- execute("UPDATE builds SET request_id = (SELECT requests.id FROM requests WHERE requests.commit = builds.commit LIMIT 1)") -> 0.0004s -- execute("UPDATE builds SET commit_id = (SELECT commits.id FROM commits WHERE commits.commit = builds.commit LIMIT 1)") -> 0.0004s -- execute("CREATE SEQUENCE shared_builds_tasks_seq CACHE 30") -> 0.0005s -- execute("ALTER TABLE builds ALTER COLUMN id TYPE BIGINT") -> 0.0134s -- execute("ALTER TABLE builds ALTER COLUMN id SET DEFAULT nextval('shared_builds_tasks_seq')") -> 0.0006s -- execute("ALTER TABLE tasks ALTER COLUMN id TYPE BIGINT") -> 0.0073s -- execute("ALTER TABLE tasks ALTER COLUMN id SET DEFAULT nextval('shared_builds_tasks_seq')") -> 0.0006s -- select_value("SELECT max(id) FROM commits") -> 0.0006s -- execute("SELECT setval('commits_id_seq', 1)") -> 0.0004s -- select_value("SELECT max(id) FROM requests") -> 0.0004s -- execute("SELECT setval('requests_id_seq', 1)") -> 0.0003s -- select_value("SELECT max(id) FROM tasks") -> 0.0006s -- execute("SELECT setval('tasks_id_seq', 1)") -> 0.0003s -- remove_column(:builds, :parent_id) -> 0.0005s -- remove_column(:builds, :commit) -> 0.0004s -- remove_column(:requests, :commit) -> 0.0004s -- remove_column(:tasks, :commit) -> 0.0004s == 20110801161819 CreateRequestsCommitsAndTasks: migrated (0.0615s) =========== == 20110805030147 RepositoryRenameIsActiveToActive: migrating ================= -- rename_column(:repositories, :is_active, :active) -> 0.0099s == 20110805030147 RepositoryRenameIsActiveToActive: migrated (0.0099s) ======== == 20110819232908 TasksAddTags: migrating ===================================== -- add_column(:tasks, :tags, :text) -> 0.0013s == 20110819232908 TasksAddTags: migrated (0.0087s) ============================ == 20110911204538 CacheOneNumberForSharedBuildsTasksSequence: migrating ======= -- execute("ALTER SEQUENCE shared_builds_tasks_seq CACHE 1 NO MAXVALUE NO CYCLE") -> 0.0010s == 20110911204538 CacheOneNumberForSharedBuildsTasksSequence: migrated (0.0011s) == 20111107134436 RenameTasksToJobs: migrating ================================ -- rename_table(:tasks, :jobs) -> 0.0045s -- execute("UPDATE jobs SET type = 'Job::Test' WHERE type = 'Task::Test'") -> 0.0007s -- execute("UPDATE jobs SET type = 'Job::Configure' WHERE type = 'Task::Configure'") -> 0.0004s == 20111107134436 RenameTasksToJobs: migrated (0.0057s) ======================= == 20111107134437 CreateArtifacts: migrating ================================== -- create_table(:artifacts, {:id=>:integer}) -> 0.0075s -- execute("UPDATE artifacts SET job_id = id") -> 0.0007s -- execute("select setval('artifacts_id_seq', (select max(id) + 1 from artifacts));") -> 0.0007s -- add_index(:artifacts, [:type, :job_id]) -> 0.0029s == 20111107134437 CreateArtifacts: migrated (0.0121s) ========================= == 20111107134438 CreateWorkers: migrating ==================================== -- create_table(:workers, {:id=>:integer}) -> 0.0085s -- add_index(:workers, [:name, :host]) -> 0.0026s == 20111107134438 CreateWorkers: migrated (0.0114s) =========================== == 20111107134439 JobsAddRetries: migrating =================================== -- change_table(:jobs) -> 0.0018s == 20111107134439 JobsAddRetries: migrated (0.0018s) ========================== == 20111107134440 RemoveRailsAdmin: migrating ================================= -- drop_table(:rails_admin_histories) -> 0.0029s == 20111107134440 RemoveRailsAdmin: migrated (0.0033s) ======================== == 20111128235043 AddIndexesToJobs: migrating ================================= -- add_index(:jobs, [:queue, :state]) -> 0.0050s == 20111128235043 AddIndexesToJobs: migrated (0.0056s) ======================== == 20111129014329 AddRepositoryIdIndexToJobs: migrating ======================= -- add_index(:jobs, :repository_id) -> 0.0045s == 20111129014329 AddRepositoryIdIndexToJobs: migrated (0.0050s) ============== == 20111129022625 AddOwnerAndTypeIndexToJobs: migrating ======================= -- add_index(:jobs, [:type, :owner_id, :owner_type]) -> 0.0047s == 20111129022625 AddOwnerAndTypeIndexToJobs: migrated (0.0050s) ============== == 20111201113500 WorkersAddPayloadAndLastError: migrating ==================== -- change_table(:workers) -> 0.0014s == 20111201113500 WorkersAddPayloadAndLastError: migrated (0.0014s) =========== == 20111203002341 RepositoriesAddDescriptionAndLastLanguage: migrating ======== -- change_table(:repositories) -> 0.0012s -- change_table(:builds) -> 0.0006s == 20111203002341 RepositoriesAddDescriptionAndLastLanguage: migrated (0.0018s) == 20111203221720 BuildsAddArchivedAt: migrating ============================== -- change_table(:builds) -> 0.0008s == 20111203221720 BuildsAddArchivedAt: migrated (0.0008s) ===================== == 20111207093700 MimicProductionDb: migrating ================================ -- column_exists?(:users, :oauth2_uid, :integer) -> 0.0018s -- column_exists?(:users, :oauth2_token, :string) -> 0.0016s -- column_exists?(:repositories, :user_id, :integer) -> 0.0015s == 20111207093700 MimicProductionDb: migrated (0.0050s) ======================= == 20111212103859 BuildsAddDuration: migrating ================================ -- change_table(:builds) -> 0.0008s == 20111212103859 BuildsAddDuration: migrated (0.0008s) ======================= == 20111212112411 RepositoriesAddLastBuildDuration: migrating ================= -- change_table(:repositories) -> 0.0007s == 20111212112411 RepositoriesAddLastBuildDuration: migrated (0.0008s) ======== == 20111214173922 CreateSslKeys: migrating ==================================== -- create_table(:ssl_keys, {:id=>:integer}) -> 0.0057s -- add_index("ssl_keys", ["repository_id"], {:name=>"index_ssl_key_on_repository_id"}) -> 0.0023s == 20111214173922 CreateSslKeys: migrated (0.0081s) =========================== == 20120114125404 AddAllowFailureToJobs: migrating ============================ -- add_column(:jobs, :allow_failure, :boolean, {:default=>false}) -> 0.0011s == 20120114125404 AddAllowFailureToJobs: migrated (0.0011s) =================== == 20120216133223 AddPullRequestFieldsToRequest: migrating ==================== -- add_column(:requests, :event_type, :string) -> 0.0007s -- add_column(:requests, :comments_url, :string) -> 0.0004s -- add_column(:requests, :base_commit, :string) -> 0.0004s -- add_column(:requests, :head_commit, :string) -> 0.0003s == 20120216133223 AddPullRequestFieldsToRequest: migrated (0.0019s) =========== == 20120222082522 AddGravatarIdToUsers: migrating ============================= -- add_column(:users, :gravatar_id, :string) -> 0.0006s == 20120222082522 AddGravatarIdToUsers: migrated (0.0006s) ==================== == 20120301131209 OrganizationsCreate: migrating ============================== -- create_table(:organizations, {:id=>:integer}) -> 0.0054s == 20120301131209 OrganizationsCreate: migrated (0.0054s) ===================== == 20120304000502 JobsRenameOwnerToSource: migrating ========================== -- change_table(:jobs) -> 0.0057s == 20120304000502 JobsRenameOwnerToSource: migrated (0.0058s) ================= == 20120304000503 RepositoriesAddOwner: migrating ============================= -- change_table(:repositories) -> 0.0012s == 20120304000503 RepositoriesAddOwner: migrated (0.0012s) ==================== == 20120304000504 BuildsAddOwner: migrating =================================== -- change_table(:builds) -> 0.0011s == 20120304000504 BuildsAddOwner: migrated (0.0011s) ========================== == 20120304000505 JobsAddOwner: migrating ===================================== -- change_table(:jobs) -> 0.0011s == 20120304000505 JobsAddOwner: migrated (0.0011s) ============================ == 20120304000506 RequestsAddOwner: migrating ================================= -- change_table(:requests) -> 0.0010s == 20120304000506 RequestsAddOwner: migrated (0.0011s) ======================== == 20120311234933 AddLocaleToUser: migrating ================================== -- add_column(:users, :locale, :string) -> 0.0006s == 20120311234933 AddLocaleToUser: migrated (0.0007s) ========================= == 20120316123726 CreateMemberships: migrating ================================ -- create_table(:memberships, {:id=>:integer}) -> 0.0035s == 20120316123726 CreateMemberships: migrated (0.0036s) ======================= == 20120319170001 RepositoriesAddPrivate: migrating =========================== -- change_table(:repositories) -> 0.0011s == 20120319170001 RepositoriesAddPrivate: migrated (0.0011s) ================== == 20120324104051 CreateUrls: migrating ======================================= -- create_table(:urls, {:id=>:integer}) -> 0.0052s == 20120324104051 CreateUrls: migrated (0.0052s) ============================== == 20120505165100 CopyStatusToResult: migrating =============================== -- add_column(:builds, :result, :integer) -> 0.0007s -- add_column(:jobs, :result, :integer) -> 0.0004s -- add_column(:repositories, :last_build_result, :integer) -> 0.0004s Executing: UPDATE builds SET result = status; Executing: UPDATE jobs SET result = status; Executing: UPDATE repositories SET last_build_result = last_build_status; == 20120505165100 CopyStatusToResult: migrated (0.0030s) ====================== == 20120511171900 RequestsAddIndexOnHeadCommit: migrating ===================== -- add_index(:requests, :head_commit) -> 0.0028s == 20120511171900 RequestsAddIndexOnHeadCommit: migrated (0.0028s) ============ == 20120521174400 CreatePermissions: migrating ================================ -- create_table(:permissions, {:id=>:integer}) -> 0.0178s -- add_index(:permissions, :user_id) -> 0.0027s -- add_index(:permissions, :repository_id) -> 0.0026s == 20120521174400 CreatePermissions: migrated (0.0235s) ======================= == 20120527235800 BuildsAddPreviousResult: migrating ========================== -- change_table(:builds) -> 0.0035s == 20120527235800 BuildsAddPreviousResult: migrated (0.0037s) ================= == 20120702111126 CreateSubscriptions: migrating ============================== -- create_table(:subscriptions, {:id=>:integer}) -> 0.0113s == 20120702111126 CreateSubscriptions: migrated (0.0116s) ===================== == 20120703114226 AddBillingEmailCreditCardDataToSubscriptions: migrating ===== -- change_table(:subscriptions) -> 0.0088s == 20120703114226 AddBillingEmailCreditCardDataToSubscriptions: migrated (0.0090s) == 20120713140816 AddSyncInfoToUser: migrating ================================ -- add_column(:users, :in_sync, :boolean) -> 0.0027s -- add_column(:users, :synced_at, :timestamp) -> 0.0016s == 20120713140816 AddSyncInfoToUser: migrated (0.0047s) ======================= == 20120713153215 RenameInSyncToIsSyncing: migrating ========================== -- rename_column(:users, :in_sync, :is_syncing) -> 0.0088s == 20120713153215 RenameInSyncToIsSyncing: migrated (0.0090s) ================= == 20120725005300 AddQueueToWorkers: migrating ================================ -- add_column(:workers, :queue, :string) -> 0.0008s == 20120725005300 AddQueueToWorkers: migrated (0.0008s) ======================= == 20120727151900 AddJobsIndexOnStateOwnerTypeOwnerId: migrating ============== -- add_index(:jobs, ["state", "owner_id", "owner_type"], {:name=>"index_jobs_on_state_owner_type_owner_id"}) -> 0.0028s == 20120727151900 AddJobsIndexOnStateOwnerTypeOwnerId: migrated (0.0029s) ===== == 20120731005301 AddQueuedAtToJobs: migrating ================================ -- add_column(:jobs, :queued_at, :timestamp, {:precision=>nil}) -> 0.0007s == 20120731005301 AddQueuedAtToJobs: migrated (0.0007s) ======================= == 20120731074000 AddAmountToPlans: migrating ================================= -- change_table(:plans) -> 0.0007s == 20120731074000 AddAmountToPlans: migrated (0.0007s) ======================== == 20120802001001 AddPushAndPullToPermissions: migrating ====================== -- add_column(:permissions, :push, :boolean, {:default=>false}) -> 0.0010s -- add_column(:permissions, :pull, :boolean, {:default=>false}) -> 0.0008s -- change_column_default(:permissions, :admin, false) -> 0.0020s == 20120802001001 AddPushAndPullToPermissions: migrated (0.0038s) ============= == 20120803164000 CreateInvoices: migrating =================================== -- create_table(:invoices, {:id=>:integer}) -> 0.0057s == 20120803164000 CreateInvoices: migrated (0.0058s) ========================== == 20120803182300 AddInvoiceIdToInvoices: migrating =========================== -- change_table(:invoices) -> 0.0009s == 20120803182300 AddInvoiceIdToInvoices: migrated (0.0009s) ================== == 20120804122700 AddStripeInvoiceIdToInvoices: migrating ===================== -- change_table(:invoices) -> 0.0007s -- add_index(:invoices, :stripe_id) -> 0.0022s == 20120804122700 AddStripeInvoiceIdToInvoices: migrated (0.0030s) ============ == 20120806120400 AddPlanToSubscriptions: migrating =========================== -- change_table(:subscriptions) -> 0.0007s == 20120806120400 AddPlanToSubscriptions: migrated (0.0007s) ================== == 20120820164000 RenamePlanOnSubscriptions: migrating ======================== -- change_table(:subscriptions) -> 0.0015s == 20120820164000 RenamePlanOnSubscriptions: migrated (0.0015s) =============== == 20120905093300 CreateStripeEvents: migrating =============================== -- create_table(:stripe_events, {:id=>:integer}) -> 0.0061s -- add_index(:stripe_events, :event_type) -> 0.0024s -- add_index(:stripe_events, :date) -> 0.0024s == 20120905093300 CreateStripeEvents: migrated (0.0111s) ====================== == 20120905171300 AddEventIdToStripeEvents: migrating ========================= -- change_table(:stripe_events) -> 0.0008s -- add_index(:stripe_events, :event_id) -> 0.0025s == 20120905171300 AddEventIdToStripeEvents: migrated (0.0033s) ================ == 20120911160000 AddBuildsIndexOnRepositoryIdAndState: migrating ============= -- remove_index("builds", nil, {:column=>"repository_id", :name=>"index_builds_on_repository_id"}) -> 0.0017s -- add_index("builds", ["repository_id", "state"]) -> 0.0026s == 20120911160000 AddBuildsIndexOnRepositoryIdAndState: migrated (0.0054s) ==== == 20120911230000 ArtifactsAddAggregatedAt: migrating ========================= -- add_column(:artifacts, :aggregated_at, :timestamp, {:precision=>nil}) -> 0.0007s == 20120911230000 ArtifactsAddAggregatedAt: migrated (0.0007s) ================ == 20120911230001 AddArtifactParts: migrating ================================= -- create_table(:artifact_parts, {:id=>:integer}) -> 0.0055s -- add_index(:artifact_parts, [:artifact_id, :number]) -> 0.0022s == 20120911230001 AddArtifactParts: migrated (0.0078s) ======================== == 20120913143800 AddSubscriptionsCoupon: migrating =========================== -- change_table(:subscriptions) -> 0.0008s == 20120913143800 AddSubscriptionsCoupon: migrated (0.0008s) ================== == 20120915012000 BuildsAddIndexOnFinishedAt: migrating ======================= -- add_index("builds", "finished_at") -> 0.0024s == 20120915012000 BuildsAddIndexOnFinishedAt: migrated (0.0024s) ============== == 20120915012001 CommitsAddIndexOnBranch: migrating ========================== -- add_index("commits", "branch") -> 0.0024s == 20120915012001 CommitsAddIndexOnBranch: migrated (0.0024s) ================= == 20120915150000 JobsAddIndexOnCreatedAt: migrating ========================== -- add_index("jobs", "created_at") -> 0.0025s == 20120915150000 JobsAddIndexOnCreatedAt: migrated (0.0025s) ================= == 20121015002500 CreateEvents: migrating ===================================== -- create_table(:events, {:id=>:integer}) -> 0.0055s == 20121015002500 CreateEvents: migrated (0.0056s) ============================ == 20121015002501 RequestsAddResultAndMessage: migrating ====================== -- add_column(:requests, :result, :string) -> 0.0008s -- add_column(:requests, :message, :string) -> 0.0004s == 20121015002501 RequestsAddResultAndMessage: migrated (0.0012s) ============= == 20121017040100 CreateBroadcasts: migrating ================================= -- create_table(:broadcasts, {:id=>:integer}) -> 0.0054s == 20121017040100 CreateBroadcasts: migrated (0.0055s) ======================== == 20121017040200 EventsChangeDataToText: migrating =========================== -- change_column(:events, :data, :text) -> 0.0006s == 20121017040200 EventsChangeDataToText: migrated (0.0007s) ================== == 20121018201301 AddEventTypeToBuilds: migrating ============================= -- add_column(:builds, :event_type, :string) -> 0.0006s == 20121018201301 AddEventTypeToBuilds: migrated (0.0007s) ==================== == 20121018203728 UpdateEventTypeOnBuilds: migrating ========================== -- execute(" UPDATE builds\n SET event_type = requests.event_type\n FROM requests\n WHERE builds.request_id = requests.id\n") -> 0.0009s == 20121018203728 UpdateEventTypeOnBuilds: migrated (0.0010s) ================= == 20121018210156 AddIndexOnRepositoryIdAndEventTypeToBuilds: migrating ======= -- add_index(:builds, [:repository_id, :event_type]) -> 0.0025s == 20121018210156 AddIndexOnRepositoryIdAndEventTypeToBuilds: migrated (0.0025s) == 20121125122700 RepositoriesAddLastBuildState: migrating ==================== -- add_column(:repositories, :last_build_state, :string) -> 0.0007s == 20121125122700 RepositoriesAddLastBuildState: migrated (0.0007s) =========== == 20121125122701 BuildsAddPreviousState: migrating =========================== -- add_column(:builds, :previous_state, :string) -> 0.0006s == 20121125122701 BuildsAddPreviousState: migrated (0.0007s) ================== == 20121222125200 ArtifactPartsAddFinal: migrating ============================ -- add_column(:artifact_parts, :final, :boolean) -> 0.0031s -- add_column(:artifact_parts, :created_at, :timestamp) -> 0.0012s == 20121222125200 ArtifactPartsAddFinal: migrated (0.0051s) =================== == 20121222125300 ArtifactPartsChangeContentToText: migrating ================= -- change_column(:artifact_parts, :content, :text) -> 0.0024s == 20121222125300 ArtifactPartsChangeContentToText: migrated (0.0026s) ======== == 20121222140200 ArtifactPartsAddIndexOnArtifactId: migrating ================ -- add_index(:artifact_parts, :artifact_id) -> 0.0043s == 20121222140200 ArtifactPartsAddIndexOnArtifactId: migrated (0.0044s) ======= == 20121223162300 ArtifactPartsRemoveIndexOnArtifactId: migrating ============= -- remove_index(:artifact_parts, :artifact_id, {:name=>"index_artifact_parts_on_artifact_id"}) -> 0.0062s == 20121223162300 ArtifactPartsRemoveIndexOnArtifactId: migrated (0.0092s) ==== == 20130107165057 AddGithubScopesToUser: migrating ============================ -- add_column(:users, :github_scopes, :text) -> 0.0028s == 20130107165057 AddGithubScopesToUser: migrated (0.0031s) =================== == 20130115125836 AddIndexOnLastSeenAtToWorkers: migrating ==================== -- add_index(:workers, :last_seen_at) -> 0.0041s == 20130115125836 AddIndexOnLastSeenAtToWorkers: migrated (0.0043s) =========== == 20130115145728 CacheFullNameInWorkers: migrating =========================== -- add_column(:workers, :full_name, :string) -> 0.0026s -- add_index(:workers, :full_name) -> 0.0034s == 20130115145728 CacheFullNameInWorkers: migrated (0.0063s) ================== == 20130125002600 ArtifactsAddArchivedAt: migrating =========================== -- add_column(:artifacts, :archived_at, :timestamp, {:precision=>nil}) -> 0.0006s -- add_index(:artifacts, :archived_at) -> 0.0024s == 20130125002600 ArtifactsAddArchivedAt: migrated (0.0030s) ================== == 20130125171100 ArtifactsAddArchivingAndVerified: migrating ================= -- add_column(:artifacts, :archiving, :boolean) -> 0.0007s -- add_column(:artifacts, :archive_verified, :boolean) -> 0.0007s -- add_index(:artifacts, :archiving) -> 0.0023s -- add_index(:artifacts, :archive_verified) -> 0.0021s == 20130125171100 ArtifactsAddArchivingAndVerified: migrated (0.0059s) ======== == 20130129142703 CreateEmails: migrating ===================================== -- create_table(:emails, {:id=>:integer}) -> 0.0050s -- add_index(:emails, :user_id) -> 0.0022s -- add_index(:emails, :email) -> 0.0020s == 20130129142703 CreateEmails: migrated (0.0093s) ============================ == 20130208135800 RenameArtifacts: migrating ================================== -- rename_table(:artifacts, :artifacts_backup) -> 0.0058s -- rename_table(:artifact_parts, :artifact_parts_backup) -> 0.0034s == 20130208135800 RenameArtifacts: migrated (0.0093s) ========================= == 20130208135801 DropArtifacts: migrating ==================================== -- drop_table(:artifacts_backup) -> 0.0012s -- drop_table(:artifact_parts_backup) -> 0.0007s == 20130208135801 DropArtifacts: migrated (0.0019s) =========================== == 20130306154311 CreatePgcryptoExtension: migrating ========================== -- execute("create extension if not exists pgcrypto") -> 0.0040s == 20130306154311 CreatePgcryptoExtension: migrated (0.0040s) ================= == 20130311211101 AddPullRequestTitleToBuilds: migrating ====================== -- add_column(:builds, :pull_request_title, :text) -> 0.0009s == 20130311211101 AddPullRequestTitleToBuilds: migrated (0.0009s) ============= == 20130327100801 AddPullRequestNumberToBuilds: migrating ===================== -- add_column(:builds, :pull_request_number, :integer) -> 0.0007s == 20130327100801 AddPullRequestNumberToBuilds: migrated (0.0007s) ============ == 20130418101437 AddIndexToBuildsRequestId: migrating ======================== -- execute("CREATE INDEX CONCURRENTLY index_builds_on_request_id ON builds(request_id)") -> 0.0040s == 20130418101437 AddIndexToBuildsRequestId: migrated (0.0041s) =============== == 20130418103306 AddIndexToJobsOnOwnerIdOwnerTypeAndState: migrating ========= -- execute("CREATE INDEX CONCURRENTLY index_jobs_on_owner_id_and_owner_type_and_state ON jobs(owner_id, owner_type, state)") -> 0.0039s == 20130418103306 AddIndexToJobsOnOwnerIdOwnerTypeAndState: migrated (0.0039s) == 20130505023259 AddMoreIndexesToBuilds: migrating =========================== -- 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") -> 0.0039s == 20130505023259 AddMoreIndexesToBuilds: migrated (0.0039s) ================== == 20130521115725 AddIndexOnBuildState: migrating ============================= -- execute(" CREATE INDEX CONCURRENTLY index_builds_on_state\n ON builds(state);\n") -> 0.0041s == 20130521115725 AddIndexOnBuildState: migrated (0.0042s) ==================== == 20130521133050 UpdateFinishedJobs: migrating =============================== -- execute("UPDATE jobs SET state = 'passed' WHERE state = 'finished' AND result = 0 AND type = 'Job::Test'") -> 0.0008s -- execute("UPDATE jobs SET state = 'failed' WHERE state = 'finished' AND result = 1 AND type = 'Job::Test'") -> 0.0004s -- execute("UPDATE jobs SET state = 'errored' WHERE state = 'finished' AND result IS NULL AND type = 'Job::Test'") -> 0.0003s -- execute("SELECT COUNT(*) FROM jobs WHERE state = 'finished' AND type = 'Job::Test'") -> 0.0004s == 20130521133050 UpdateFinishedJobs: migrated (0.0020s) ====================== == 20130521134224 UpdateFinishedBuilds: migrating ============================= -- execute("UPDATE builds SET state = 'passed' WHERE state = 'finished' AND result = 0") -> 0.0007s -- execute("UPDATE builds SET state = 'failed' WHERE state = 'finished' AND result = 1") -> 0.0003s -- execute("UPDATE builds SET state = 'errored' WHERE state = 'finished' AND result IS NULL") -> 0.0003s -- execute("SELECT COUNT(*) FROM builds WHERE state = 'finished'") -> 0.0003s == 20130521134224 UpdateFinishedBuilds: migrated (0.0018s) ==================== == 20130521134800 RemoveUnusedBuildColumns: migrating ========================= -- remove_column(:builds, :result) -> 0.0006s -- remove_column(:builds, :status) -> 0.0004s -- remove_column(:builds, :previous_result) -> 0.0003s -- remove_column(:builds, :agent) -> 0.0003s -- remove_column(:builds, :language) -> 0.0004s -- remove_column(:builds, :archived_at) -> 0.0003s == 20130521134800 RemoveUnusedBuildColumns: migrated (0.0025s) ================ == 20130521141357 RemoveUnusedJobColumns: migrating =========================== -- remove_column(:jobs, :status) -> 0.0006s -- remove_column(:jobs, :job_id) -> 0.0003s -- remove_column(:jobs, :retries) -> 0.0005s == 20130521141357 RemoveUnusedJobColumns: migrated (0.0014s) ================== == 20130618084205 AddCoupons: migrating ======================================= -- create_table(:coupons, {:id=>:integer}) -> 0.0054s == 20130618084205 AddCoupons: migrated (0.0055s) ============================== == 20130629122945 AddGithubIdToUsers: migrating =============================== -- add_column(:repositories, :github_id, :integer) -> 0.0007s -- add_index(:repositories, :github_id) -> 0.0021s == 20130629122945 AddGithubIdToUsers: migrated (0.0029s) ====================== == 20130629133531 AddDefaultBranchToRepositories: migrating =================== -- add_column(:repositories, :default_branch, :string) -> 0.0007s == 20130629133531 AddDefaultBranchToRepositories: migrated (0.0007s) ========== == 20130629174449 AddGithubLanguageToRepositories: migrating ================== -- add_column(:repositories, :github_language, :string) -> 0.0007s == 20130629174449 AddGithubLanguageToRepositories: migrated (0.0007s) ========= == 20130701175200 AddContactIdToSubscriptions: migrating ====================== -- change_table(:subscriptions) -> 0.0007s == 20130701175200 AddContactIdToSubscriptions: migrated (0.0007s) ============= == 20130702123456 RemoveUnusedRepositoryColumns: migrating ==================== -- remove_column(:repositories, :last_duration) -> 0.0023s -- remove_column(:repositories, :last_build_status) -> 0.0011s -- remove_column(:repositories, :last_build_result) -> 0.0011s -- remove_column(:repositories, :last_build_language) -> 0.0008s == 20130702123456 RemoveUnusedRepositoryColumns: migrated (0.0061s) =========== == 20130702144325 AddUniqueIndexOnUsersGithubIdAndRemoveUniqueIndexOnUsersLogin: migrating -- execute("DROP INDEX index_users_on_login") -> 0.0017s -- execute("CREATE INDEX CONCURRENTLY index_users_on_login ON users(login)") -> 0.0042s -- execute("DROP INDEX index_users_on_github_id") -> 0.0013s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_users_on_github_id ON users(github_id)") -> 0.0041s == 20130702144325 AddUniqueIndexOnUsersGithubIdAndRemoveUniqueIndexOnUsersLogin: migrated (0.0116s) == 20130705123456 AddExtraColumnsToOrganizations: migrating =================== -- add_column(:organizations, :avatar_url, :string) -> 0.0011s -- add_column(:organizations, :location, :string) -> 0.0011s -- add_column(:organizations, :email, :string) -> 0.0012s -- add_column(:organizations, :company, :string) -> 0.0006s -- add_column(:organizations, :homepage, :string) -> 0.0012s == 20130705123456 AddExtraColumnsToOrganizations: migrated (0.0062s) ========== == 20130707164854 AddIndexOnGithubIdToOrganizations: migrating ================ -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_organizations_on_github_id ON organizations(github_id)") -> 0.0041s == 20130707164854 AddIndexOnGithubIdToOrganizations: migrated (0.0043s) ======= == 20130709185200 CreateAnnotations: migrating ================================ -- create_table(:annotations, {:id=>:integer}) -> 0.0086s == 20130709185200 CreateAnnotations: migrated (0.0087s) ======================= == 20130709233500 CreateAnnotationProviders: migrating ======================== -- create_table(:annotation_providers, {:id=>:integer}) -> 0.0089s == 20130709233500 CreateAnnotationProviders: migrated (0.0091s) =============== == 20130710000745 AddAnnotationProviderIdToAnnotations: migrating ============= -- add_column(:annotations, :annotation_provider_id, :integer, {:null=>false}) -> 0.0008s == 20130710000745 AddAnnotationProviderIdToAnnotations: migrated (0.0008s) ==== == 20130726101124 AddCanceledAtToJobsAndBuilds: migrating ===================== -- add_column(:builds, :canceled_at, :timestamp, {:precision=>nil}) -> 0.0007s -- add_column(:jobs, :canceled_at, :timestamp, {:precision=>nil}) -> 0.0004s == 20130726101124 AddCanceledAtToJobsAndBuilds: migrated (0.0012s) ============ == 20130901183019 AddIndexOnRepositoryGithubId: migrating ===================== -- execute("DROP INDEX index_repositories_on_github_id") -> 0.0012s -- execute("CREATE INDEX CONCURRENTLY index_repositories_on_github_id ON repositories(github_id)") -> 0.0039s == 20130901183019 AddIndexOnRepositoryGithubId: migrated (0.0052s) ============ == 20130909203321 AddCachedMatrixIdsToBuilds: migrating ======================= -- execute("ALTER TABLE builds ADD COLUMN cached_matrix_ids integer[]") -> 0.0006s == 20130909203321 AddCachedMatrixIdsToBuilds: migrated (0.0007s) ============== == 20130910184823 CreateIndexOnBuildsIdDescAndRepositoryIdAndEventType: migrating -- execute("CREATE INDEX CONCURRENTLY index_builds_on_id_repository_id_and_event_type_desc ON builds (id DESC, repository_id, event_type);") -> 0.0042s == 20130910184823 CreateIndexOnBuildsIdDescAndRepositoryIdAndEventType: migrated (0.0042s) == 20130916101056 AddUniqueIndexOnRepositoryGithubId: migrating =============== -- execute("DROP INDEX index_repositories_on_github_id") -> 0.0013s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_repositories_on_github_id ON repositories(github_id)") -> 0.0044s == 20130916101056 AddUniqueIndexOnRepositoryGithubId: migrated (0.0058s) ====== == 20130920135744 AddSettingsToRepositories: migrating ======================== -- add_column(:repositories, :settings, :json) -> 0.0007s == 20130920135744 AddSettingsToRepositories: migrated (0.0008s) =============== == 20131104101056 RemoveWorkersTableAndIndexes: migrating ===================== -- drop_table(:workers) -> 0.0011s == 20131104101056 RemoveWorkersTableAndIndexes: migrated (0.0011s) ============ == 20131109101056 RemoveEventsTable: migrating ================================ -- drop_table(:events) -> 0.0009s == 20131109101056 RemoveEventsTable: migrated (0.0010s) ======================= == 20140120225125 RemoveAnnotationImageInfo: migrating ======================== -- remove_column(:annotations, :image_url) -> 0.0006s -- remove_column(:annotations, :image_alt) -> 0.0003s == 20140120225125 RemoveAnnotationImageInfo: migrated (0.0010s) =============== == 20140121003026 AddStatusToAnnotations: migrating =========================== -- add_column(:annotations, :status, :string) -> 0.0006s == 20140121003026 AddStatusToAnnotations: migrated (0.0007s) ================== == 20140204220926 AddIndicesToRequests: migrating ============================= -- execute("CREATE INDEX CONCURRENTLY index_requests_on_repository_id ON requests(repository_id)") -> 0.0037s -- execute("CREATE INDEX CONCURRENTLY index_requests_on_commit_id ON requests(commit_id)") -> 0.0033s == 20140204220926 AddIndicesToRequests: migrated (0.0071s) ==================== == 20140210003014 AddIndicesToMemberships: migrating ========================== -- execute("CREATE INDEX CONCURRENTLY index_memberships_on_user_id ON memberships(user_id)") -> 0.0038s == 20140210003014 AddIndicesToMemberships: migrated (0.0038s) ================= == 20140210012509 RemoveUnusedIndices: migrating ============================== -- execute("DROP INDEX CONCURRENTLY index_commits_on_commit") -> 0.0019s -- execute("DROP INDEX CONCURRENTLY index_builds_on_state") -> 0.0019s -- execute("DROP INDEX CONCURRENTLY index_commits_on_branch") -> 0.0018s -- execute("DROP INDEX CONCURRENTLY index_users_on_github_oauth_token") -> 0.0018s -- execute("DROP INDEX CONCURRENTLY index_builds_on_finished_at") -> 0.0022s -- execute("DROP INDEX CONCURRENTLY index_jobs_on_queue_and_state") -> 0.0023s -- execute("DROP INDEX CONCURRENTLY index_jobs_on_created_at") -> 0.0020s == 20140210012509 RemoveUnusedIndices: migrated (0.0140s) ===================== == 20140612131826 AddRemovedInfoToLogs: migrating ============================= == 20140612131826 AddRemovedInfoToLogs: migrated (0.0007s) ==================== == 20140827121945 AddEducationFieldToUser: migrating ========================== -- add_column(:users, :education, :boolean) -> 0.0007s == 20140827121945 AddEducationFieldToUser: migrated (0.0007s) ================= == 20150121135400 JobsAddReceivedAt: migrating ================================ -- add_column(:jobs, :received_at, :timestamp, {:precision=>nil}) -> 0.0007s == 20150121135400 JobsAddReceivedAt: migrated (0.0007s) ======================= == 20150121135401 BuildsAddReceivedAt: migrating ============================== -- add_column(:builds, :received_at, :timestamp, {:precision=>nil}) -> 0.0007s == 20150121135401 BuildsAddReceivedAt: migrated (0.0007s) ===================== == 20150204144312 AddIndexOnRepositoryIdToCommits: migrating ================== -- execute("DROP INDEX IF EXISTS index_commits_on_repository_id") -> 0.0003s -- execute("CREATE INDEX CONCURRENTLY index_commits_on_repository_id ON commits(repository_id)") -> 0.0043s == 20150204144312 AddIndexOnRepositoryIdToCommits: migrated (0.0047s) ========= == 20150210170900 IndexRequestsOnCreatedAt: migrating ========================= -- execute("DROP INDEX IF EXISTS index_requests_on_created_at") -> 0.0003s -- execute("CREATE INDEX CONCURRENTLY index_requests_on_created_at ON requests(created_at)") -> 0.0038s == 20150210170900 IndexRequestsOnCreatedAt: migrated (0.0041s) ================ == 20150223125700 CreateBranches: migrating =================================== -- create_table(:branches, {:id=>:integer}) -> 0.0206s -- add_index(:branches, [:repository_id, :name], {:unique=>true}) -> 0.0024s == 20150223125700 CreateBranches: migrated (0.0232s) ========================== == 20150311020321 AddNextBuildNumberToRepository: migrating =================== -- add_column(:repositories, :next_build_number, :integer) -> 0.0031s == 20150311020321 AddNextBuildNumberToRepository: migrated (0.0035s) ========== == 20150316020321 AddActiveIndexToRepository: migrating ======================= -- execute("DROP INDEX IF EXISTS index_repositories_on_active") -> 0.0013s -- execute("CREATE INDEX CONCURRENTLY index_repositories_on_active ON repositories(active)") -> 0.0045s == 20150316020321 AddActiveIndexToRepository: migrated (0.0061s) ============== == 20150316080321 AddOwnerTypeAndOwnerIdIndexesToBuilds: migrating ============ -- execute("DROP INDEX IF EXISTS index_builds_on_owner_type") -> 0.0012s -- execute("DROP INDEX IF EXISTS index_builds_on_owner_id") -> 0.0006s -- execute("CREATE INDEX CONCURRENTLY index_builds_on_owner_type ON builds(owner_type)") -> 0.0041s -- execute("CREATE INDEX CONCURRENTLY index_builds_on_owner_id ON builds(owner_id)") -> 0.0041s == 20150316080321 AddOwnerTypeAndOwnerIdIndexesToBuilds: migrated (0.0105s) === == 20150316100321 AddOwnerTypeAndOwnerIdIndexesToRepositories: migrating ====== -- execute("DROP INDEX IF EXISTS index_repositories_on_owner_type") -> 0.0004s -- execute("DROP INDEX IF EXISTS index_repositories_on_owner_id") -> 0.0003s -- execute("CREATE INDEX CONCURRENTLY index_repositories_on_owner_type ON repositories(owner_type)") -> 0.0040s -- execute("CREATE INDEX CONCURRENTLY index_repositories_on_owner_id ON repositories(owner_id)") -> 0.0037s == 20150316100321 AddOwnerTypeAndOwnerIdIndexesToRepositories: migrated (0.0086s) == 20150317004600 AddSlugIndexToRepositories: migrating ======================= -- execute("CREATE EXTENSION IF NOT EXISTS pg_trgm") -> 0.0144s -- execute("CREATE INDEX CONCURRENTLY index_repositories_on_slug ON repositories USING gin((owner_name || '/' || name) gin_trgm_ops)") -> 0.0037s == 20150317004600 AddSlugIndexToRepositories: migrated (0.0183s) ============== == 20150317020321 AddTokenIndexToTokens: migrating ============================ -- execute("DROP INDEX IF EXISTS index_tokens_on_token") -> 0.0004s -- execute("CREATE INDEX CONCURRENTLY index_tokens_on_token ON tokens(token)") -> 0.0046s == 20150317020321 AddTokenIndexToTokens: migrated (0.0052s) =================== == 20150317080321 AddLoginIndexToOrganizations: migrating ===================== -- execute("DROP INDEX IF EXISTS index_organizations_on_login") -> 0.0004s -- execute("CREATE INDEX CONCURRENTLY index_organizations_on_login ON organizations(login)") -> 0.0042s == 20150317080321 AddLoginIndexToOrganizations: migrated (0.0047s) ============ == 20150414001337 AddLowerCaseIndices: migrating ============================== -- execute("DROP INDEX IF EXISTS index_organizations_on_lower_login") -> 0.0003s -- execute("CREATE INDEX CONCURRENTLY index_organizations_on_lower_login ON organizations USING btree(lower(login))") -> 0.0041s -- execute("DROP INDEX IF EXISTS index_users_on_lower_login") -> 0.0002s -- execute("CREATE INDEX CONCURRENTLY index_users_on_lower_login ON users USING btree(lower(login))") -> 0.0040s -- execute("DROP INDEX IF EXISTS index_repositories_on_lower_name") -> 0.0002s -- execute("CREATE INDEX CONCURRENTLY index_repositories_on_lower_name ON repositories USING btree(lower(name))") -> 0.0037s -- execute("DROP INDEX IF EXISTS index_repositories_on_lower_owner_name") -> 0.0002s -- execute("CREATE INDEX CONCURRENTLY index_repositories_on_lower_owner_name ON repositories USING btree(lower(owner_name))") -> 0.0038s == 20150414001337 AddLowerCaseIndices: migrated (0.0169s) ===================== == 20150528101600 RepositoriesAddIndexOwnerName: migrating ==================== -- execute("CREATE INDEX CONCURRENTLY index_repositories_on_owner_name ON repositories(owner_name)") -> 0.0040s == 20150528101600 RepositoriesAddIndexOwnerName: migrated (0.0040s) =========== == 20150528101601 RepositoriesAddIndexName: migrating ========================= -- execute("CREATE INDEX CONCURRENTLY index_repositories_on_name ON repositories(name)") -> 0.0040s == 20150528101601 RepositoriesAddIndexName: migrated (0.0040s) ================ == 20150528101602 RepositoriesDropIndexOwnerNameName: migrating =============== -- execute("DROP INDEX CONCURRENTLY index_repositories_on_owner_name_and_name") -> 0.0022s == 20150528101602 RepositoriesDropIndexOwnerNameName: migrated (0.0022s) ====== == 20150528101603 BuildsAddIndexEventType: migrating ========================== -- execute("CREATE INDEX CONCURRENTLY index_builds_on_event_type ON builds (event_type)") -> 0.0039s == 20150528101603 BuildsAddIndexEventType: migrated (0.0039s) ================= == 20150528101604 BuildsAddIndexRepositoryId: migrating ======================= -- execute("CREATE INDEX CONCURRENTLY index_builds_on_repository_id ON builds (repository_id)") -> 0.0039s == 20150528101604 BuildsAddIndexRepositoryId: migrated (0.0040s) ============== == 20150528101605 BuildsAddIndexState: migrating ============================== -- execute("CREATE INDEX CONCURRENTLY index_builds_on_state ON builds (state)") -> 0.0036s == 20150528101605 BuildsAddIndexState: migrated (0.0037s) ===================== == 20150528101607 BuildsAddIndexBranch: migrating ============================= -- execute("CREATE INDEX CONCURRENTLY index_builds_on_branch ON builds (branch)") -> 0.0038s == 20150528101607 BuildsAddIndexBranch: migrated (0.0039s) ==================== == 20150528101608 BuildsDropIndexRepositoryIdAndState: migrating ============== -- execute("DROP INDEX CONCURRENTLY index_builds_on_repository_id_and_state") -> 0.0023s == 20150528101608 BuildsDropIndexRepositoryIdAndState: migrated (0.0023s) ===== == 20150528101609 BuildsDropIndexRepositoryIdAndEventType: migrating ========== -- execute("DROP INDEX CONCURRENTLY index_builds_on_repository_id_and_event_type") -> 0.0024s == 20150528101609 BuildsDropIndexRepositoryIdAndEventType: migrated (0.0024s) = == 20150528101610 BuildsDropIndexIdRepositoryIdAndEventTypeDesc: migrating ==== -- execute("DROP INDEX CONCURRENTLY index_builds_on_id_repository_id_and_event_type_desc") -> 0.0025s == 20150528101610 BuildsDropIndexIdRepositoryIdAndEventTypeDesc: migrated (0.0025s) == 20150528101611 BuildsDropIndexRepositoryIdAndEventTypeAndStateAndBranch: migrating -- execute("DROP INDEX CONCURRENTLY index_builds_on_repository_id_and_event_type_and_state_and_bran") -> 0.0022s == 20150528101611 BuildsDropIndexRepositoryIdAndEventTypeAndStateAndBranch: migrated (0.0022s) == 20150609175200 AddCancelationColumnsToSubscriptions: migrating ============= -- change_table(:subscriptions) -> 0.0012s == 20150609175200 AddCancelationColumnsToSubscriptions: migrated (0.0012s) ==== == 20150610143500 JobsAddIndexOwnerId: migrating ============================== -- execute("CREATE INDEX CONCURRENTLY index_jobs_on_owner_id ON jobs (owner_id)") -> 0.0045s == 20150610143500 JobsAddIndexOwnerId: migrated (0.0045s) ===================== == 20150610143501 JobsAddIndexOwnerType: migrating ============================ -- execute("CREATE INDEX CONCURRENTLY index_jobs_on_owner_type ON jobs (owner_type)") -> 0.0041s == 20150610143501 JobsAddIndexOwnerType: migrated (0.0041s) =================== == 20150610143502 JobsAddIndexSourceId: migrating ============================= -- execute("CREATE INDEX CONCURRENTLY index_jobs_on_source_id ON jobs (source_id)") -> 0.0038s == 20150610143502 JobsAddIndexSourceId: migrated (0.0039s) ==================== == 20150610143503 JobsAddIndexSourceType: migrating =========================== -- execute("CREATE INDEX CONCURRENTLY index_jobs_on_source_type ON jobs (source_type)") -> 0.0038s == 20150610143503 JobsAddIndexSourceType: migrated (0.0038s) ================== == 20150610143504 JobsAddIndexType: migrating ================================= -- execute("CREATE INDEX CONCURRENTLY index_jobs_on_type ON jobs (type)") -> 0.0091s == 20150610143504 JobsAddIndexType: migrated (0.0091s) ======================== == 20150610143505 JobsDropIndexOwnerIdAndOwnerTypeAndState: migrating ========= -- execute("DROP INDEX CONCURRENTLY index_jobs_on_owner_id_and_owner_type_and_state") -> 0.0025s == 20150610143505 JobsDropIndexOwnerIdAndOwnerTypeAndState: migrated (0.0025s) == 20150610143506 JobsDropIndexStateOwnerTypeOwnerId: migrating =============== -- execute("DROP INDEX CONCURRENTLY index_jobs_on_state_owner_type_owner_id") -> 0.0025s == 20150610143506 JobsDropIndexStateOwnerTypeOwnerId: migrated (0.0025s) ====== == 20150610143507 JobsDropIndexTypeAndSourceIdAndSourceType: migrating ======== -- 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"}) -> 0.0058s == 20150610143507 JobsDropIndexTypeAndSourceIdAndSourceType: migrated (0.0058s) == 20150610143508 JobsAddIndexState: migrating ================================ -- execute("CREATE INDEX CONCURRENTLY index_jobs_on_state ON jobs (state)") -> 0.0052s == 20150610143508 JobsAddIndexState: migrated (0.0052s) ======================= == 20150610143509 JobsAddIndexQueue: migrating ================================ -- execute("CREATE INDEX CONCURRENTLY index_jobs_on_queue ON jobs (queue)") -> 0.0041s == 20150610143509 JobsAddIndexQueue: migrated (0.0042s) ======================= == 20150610143510 TokensAddIndexUserId: migrating ============================= -- execute("CREATE INDEX CONCURRENTLY index_tokens_on_user_id ON tokens (user_id)") -> 0.0044s == 20150610143510 TokensAddIndexUserId: migrated (0.0045s) ==================== == 20150615103059 AddStatusToSubscriptions: migrating ========================= -- add_column(:subscriptions, :status, :string) -> 0.0012s == 20150615103059 AddStatusToSubscriptions: migrated (0.0013s) ================ == 20150629231300 ReposAddInvalidatedAt: migrating ============================ -- add_column(:repositories, :invalidated_at, :timestamp, {:precision=>nil}) -> 0.0011s == 20150629231300 ReposAddInvalidatedAt: migrated (0.0012s) =================== == 20150923131400 BroadcastsAddCategory: migrating ============================ -- add_column(:broadcasts, :category, :string) -> 0.0012s == 20150923131400 BroadcastsAddCategory: migrated (0.0013s) =================== == 20151112153500 CreateStars: migrating ====================================== -- create_table(:stars, {:id=>:integer}) -> 0.0047s -- add_index(:stars, :user_id) -> 0.0023s == 20151112153500 CreateStars: migrated (0.0072s) ============================= == 20151113111400 StarsAddIndexUserIdAndRepositoryId: migrating =============== -- execute("CREATE UNIQUE INDEX index_stars_on_user_id_and_repository_id ON stars (user_id, repository_id)") -> 0.0028s == 20151113111400 StarsAddIndexUserIdAndRepositoryId: migrated (0.0069s) ====== == 20151127153500 UsersAddIndexGithubOauthToken: migrating ==================== -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_users_on_github_oauth_token ON users (github_oauth_token)") -> 0.0057s == 20151127153500 UsersAddIndexGithubOauthToken: migrated (0.0058s) =========== == 20151127154200 AnnotationsAddIndexJobId: migrating ========================= -- execute("CREATE INDEX CONCURRENTLY index_annotations_on_job_id ON annotations (job_id)") -> 0.0044s == 20151127154200 AnnotationsAddIndexJobId: migrated (0.0046s) ================ == 20151127154600 BroadcastsAddIndexRecipientIdAndRecipientType: migrating ==== -- execute("CREATE INDEX CONCURRENTLY index_broadcasts_on_recipient_id_and_recipient_type ON broadcasts (recipient_id, recipient_type)") -> 0.0044s == 20151127154600 BroadcastsAddIndexRecipientIdAndRecipientType: migrated (0.0045s) == 20151202122200 UsersAddFirstLoggedInAt: migrating ========================== -- add_column(:users, :first_logged_in_at, :timestamp, {:precision=>nil}) -> 0.0009s == 20151202122200 UsersAddFirstLoggedInAt: migrated (0.0010s) ================= == 20160107120927 AddCronTable: migrating ===================================== -- create_table(:crons, {:id=>:integer}) -> 0.0059s == 20160107120927 AddCronTable: migrated (0.0060s) ============================ == 20160303165750 AddDebugOptionsToJobs: migrating ============================ -- add_column(:jobs, :debug_options, :text) -> 0.0008s == 20160303165750 AddDebugOptionsToJobs: migrated (0.0008s) =================== == 20160412113020 BuildsDropIndexOwnerType: migrating ========================= -- execute("DROP INDEX CONCURRENTLY index_builds_on_owner_type") -> 0.0023s == 20160412113020 BuildsDropIndexOwnerType: migrated (0.0024s) ================ == 20160412113070 RepositoriesDropIndexLastBuildStartedAt: migrating ========== -- execute("DROP INDEX CONCURRENTLY index_repositories_on_last_build_started_at") -> 0.0020s == 20160412113070 RepositoriesDropIndexLastBuildStartedAt: migrated (0.0020s) = == 20160412121405 JobsDropIndexType: migrating ================================ -- execute("DROP INDEX CONCURRENTLY index_jobs_on_type") -> 0.0019s == 20160412121405 JobsDropIndexType: migrated (0.0020s) ======================= == 20160412123900 JobsDropIndexSourceType: migrating ========================== -- execute("DROP INDEX CONCURRENTLY index_jobs_on_source_type") -> 0.0020s == 20160412123900 JobsDropIndexSourceType: migrated (0.0021s) ================= == 20160414214442 JobsAddIndexQueuedAt: migrating ============================= -- execute("CREATE INDEX CONCURRENTLY index_jobs_on_queued_at ON jobs (queued_at)") -> 0.0036s == 20160414214442 JobsAddIndexQueuedAt: migrated (0.0037s) ==================== == 20160422104300 BuildsAddIndexNumber: migrating ============================= -- execute("CREATE INDEX CONCURRENTLY index_builds_on_number ON builds (number)") -> 0.0038s == 20160422104300 BuildsAddIndexNumber: migrated (0.0038s) ==================== == 20160422121400 BuildsAddIndexRepositoryIdAndNumberAndEventType: migrating == -- execute("CREATE INDEX CONCURRENTLY index_builds_on_repository_id_and_number_and_event_type ON builds (repository_id, number, event_type)") -> 0.0040s == 20160422121400 BuildsAddIndexRepositoryIdAndNumberAndEventType: migrated (0.0040s) == 20160510142700 JobsAddIndexCreatedAt: migrating ============================ -- execute("CREATE INDEX CONCURRENTLY index_jobs_on_created_at ON jobs (created_at)") -> 0.0504s == 20160510142700 JobsAddIndexCreatedAt: migrated (0.0505s) =================== == 20160510144200 BuildsAddPrivate: migrating ================================= -- change_table(:builds) -> 0.0009s == 20160510144200 BuildsAddPrivate: migrated (0.0010s) ======================== == 20160510150300 JobsAddPrivate: migrating =================================== -- change_table(:jobs) -> 0.0008s == 20160510150300 JobsAddPrivate: migrated (0.0009s) ========================== == 20160510150400 RequestsAddPrivate: migrating =============================== -- change_table(:requests) -> 0.0007s == 20160510150400 RequestsAddPrivate: migrated (0.0007s) ====================== == 20160513074300 AddCurrentBuildIdToRepositories: migrating ================== -- add_column(:repositories, :current_build_id, :bigint) -> 0.0007s -- execute("ALTER TABLE repositories ADD CONSTRAINT fk_repositories_current_build_id FOREIGN KEY (current_build_id) REFERENCES builds (id);") -> 0.0016s == 20160513074300 AddCurrentBuildIdToRepositories: migrated (0.0023s) ========= == 20160609163600 PermissionsAddIndexUserIdAndRepositoryId: migrating ========= -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_permissions_on_user_id_and_repository_id ON permissions (user_id, repository_id)") -> 0.0040s == 20160609163600 PermissionsAddIndexUserIdAndRepositoryId: migrated (0.0041s) == 20160623133900 CreatePreviousJobStates: migrating ========================== -- create_table(:previous_job_states, {:id=>:integer}) -> 0.0057s -- add_column(:jobs, :previous_job_state_id, :bigint) -> 0.0005s == 20160623133900 CreatePreviousJobStates: migrated (0.0064s) ================= == 20160623133901 AddPreviousStatesTriggers: migrating ======================== -- 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") -> 0.0070s == 20160623133901 AddPreviousStatesTriggers: migrated (0.0071s) =============== == 20160712125400 RevertPreviousJobStates: migrating ========================== -- 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") -> 0.0013s -- remove_column(:jobs, :previous_job_state_id) -> 0.0005s -- drop_table(:previous_job_states) -> 0.0010s == 20160712125400 RevertPreviousJobStates: migrated (0.0028s) ================= == 20160819103700 AddAvatarUrlToUsers: migrating ============================== -- add_column(:users, :avatar_url, :string) -> 0.0015s == 20160819103700 AddAvatarUrlToUsers: migrated (0.0016s) ===================== == 20160920220400 AddRoleToMemberships: migrating ============================= -- add_column(:memberships, :role, :string) -> 0.0047s == 20160920220400 AddRoleToMemberships: migrated (0.0050s) ==================== == 20161028154600 RemoveTypeIndices: migrating ================================ -- execute("DROP INDEX CONCURRENTLY IF EXISTS index_requests_on_event_type") -> 0.0009s -- execute("DROP INDEX CONCURRENTLY IF EXISTS index_jobs_on_owner_type") -> 0.0028s == 20161028154600 RemoveTypeIndices: migrated (0.0041s) ======================= == 20161101000000 AddNextRunLastRunToCrons: migrating ========================= -- column_exists?(:crons, :next_run) -> 0.0095s -- add_column(:crons, :next_run, :timestamp, {:precision=>nil}) -> 0.0019s -- column_exists?(:crons, :last_run) -> 0.0034s -- add_column(:crons, :last_run, :timestamp, {:precision=>nil}) -> 0.0016s == 20161101000000 AddNextRunLastRunToCrons: migrated (0.0173s) ================ == 20161101000001 AddDontRunIfRecentBuildExists: migrating ==================== -- column_exists?(:crons, :dont_run_if_recent_build_exists) -> 0.0044s -- add_column(:crons, :dont_run_if_recent_build_exists, :boolean, {:default=>false}) -> 0.0033s == 20161101000001 AddDontRunIfRecentBuildExists: migrated (0.0078s) =========== == 20161201112200 CreateBetaFeatures: migrating =============================== -- create_table(:beta_features, {:id=>:integer}) -> 0.0074s == 20161201112200 CreateBetaFeatures: migrated (0.0075s) ====================== == 20161201112600 CreateUserBetaFeatures: migrating =========================== -- create_table(:user_beta_features, {:id=>:integer}) -> 0.0036s -- add_index(:user_beta_features, [:user_id, :beta_feature_id]) -> 0.0021s == 20161201112600 CreateUserBetaFeatures: migrated (0.0058s) ================== == 20161202000000 RemoveDisableByBuildFromCrons: migrating ==================== -- remove_column(:crons, :disable_by_build) -> 0.0006s == 20161202000000 RemoveDisableByBuildFromCrons: migrated (0.0006s) =========== == 20161206155800 AddBillingAdminOnlyToOrganizations: migrating =============== -- add_column(:organizations, :billing_admin_only, :boolean) -> 0.0005s == 20161206155800 AddBillingAdminOnlyToOrganizations: migrated (0.0006s) ====== == 20161221171300 BuildsAddIndexRepositoryIdAndNumber: migrating ============== -- execute("CREATE INDEX CONCURRENTLY index_builds_on_repository_id_and_number ON builds(repository_id, (number::integer))") -> 0.0041s == 20161221171300 BuildsAddIndexRepositoryIdAndNumber: migrated (0.0041s) ===== == 20170211000000 JobsAddStageNumber: migrating =============================== -- add_column(:jobs, :stage_number, :string) -> 0.0005s == 20170211000000 JobsAddStageNumber: migrated (0.0006s) ====================== == 20170211000001 JobsAddStageId: migrating =================================== -- change_table(:jobs) -> 0.0007s == 20170211000001 JobsAddStageId: migrated (0.0007s) ========================== == 20170211000002 StagesCreate: migrating ===================================== -- create_table(:stages, {:id=>:integer}) -> 0.0055s == 20170211000002 StagesCreate: migrated (0.0055s) ============================ == 20170211000003 StagesAddStateAndTimestamps: migrating ====================== -- change_table(:stages) -> 0.0014s == 20170211000003 StagesAddStateAndTimestamps: migrated (0.0014s) ============= == 20170213124000 AddConstraintForOwnerIdToSubscriptions: migrating =========== -- execute("CREATE UNIQUE INDEX subscriptions_owner ON subscriptions (owner_id, owner_type) WHERE (status = 'subscribed');") -> 0.0026s == 20170213124000 AddConstraintForOwnerIdToSubscriptions: migrated (0.0026s) == == 20170316000000 QueueableJobsCreate: migrating ============================== -- create_table(:queueable_jobs, {:id=>:integer}) -> 0.0032s == 20170316000000 QueueableJobsCreate: migrated (0.0033s) ===================== == 20170316000001 QueueableJobsIndexJobId: migrating ========================== -- add_index(:queueable_jobs, :job_id, {:algorithm=>:concurrently}) -> 0.0040s == 20170316000001 QueueableJobsIndexJobId: migrated (0.0040s) ================= == 20170318000000 PullRequestsCreate: migrating =============================== -- create_table(:pull_requests, {:id=>:integer}) -> 0.0055s == 20170318000000 PullRequestsCreate: migrated (0.0056s) ====================== == 20170318000001 RequestsAddPullRequestId: migrating ========================= -- change_table(:requests) -> 0.0008s == 20170318000001 RequestsAddPullRequestId: migrated (0.0008s) ================ == 20170318000002 BuildsAddPullRequestId: migrating =========================== -- change_table(:builds) -> 0.0007s == 20170318000002 BuildsAddPullRequestId: migrated (0.0008s) ================== == 20170322000000 AddIndexOnRequestsRepositoryIdAndIdDesc: migrating ========== -- execute("CREATE INDEX CONCURRENTLY index_requests_on_repository_id_and_id_desc ON requests (repository_id, id DESC);") -> 0.0040s == 20170322000000 AddIndexOnRequestsRepositoryIdAndIdDesc: migrated (0.0041s) = == 20170331000000 AddIndexRepositoryIdOnPullRequests: migrating =============== -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_pull_requests_on_repository_id_and_number ON pull_requests (repository_id, (number::integer));") -> 0.0037s == 20170331000000 AddIndexRepositoryIdOnPullRequests: migrated (0.0037s) ====== == 20170401000000 OwnerGroupsCreate: migrating ================================ -- create_table(:owner_groups, {:id=>:integer}) -> 0.0055s == 20170401000000 OwnerGroupsCreate: migrated (0.0056s) ======================= == 20170401000001 OwnerGroupsIndexOwnerIdOwnerType: migrating ================= -- execute("CREATE INDEX CONCURRENTLY index_owner_groups_on_owner_type_and_owner_id ON owner_groups (owner_type, owner_id);") -> 0.0035s == 20170401000001 OwnerGroupsIndexOwnerIdOwnerType: migrated (0.0035s) ======== == 20170401000002 OwnerGroupsIndexUuid: migrating ============================= -- execute("CREATE INDEX CONCURRENTLY index_owner_groups_on_uuid ON owner_groups (uuid);") -> 0.0036s == 20170401000002 OwnerGroupsIndexUuid: migrated (0.0036s) ==================== == 20170405000000 TagsCreate: migrating ======================================= -- create_table(:tags, {:id=>:integer}) -> 0.0048s == 20170405000000 TagsCreate: migrated (0.0049s) ============================== == 20170405000001 RequestsAddBranchIdAndTagId: migrating ====================== -- change_table(:requests) -> 0.0151s == 20170405000001 RequestsAddBranchIdAndTagId: migrated (0.0153s) ============= == 20170405000002 CommitsAddBranchIdAndTagId: migrating ======================= -- change_table(:commits) -> 0.0044s == 20170405000002 CommitsAddBranchIdAndTagId: migrated (0.0045s) ============== == 20170405000003 BuildsAddBranchIdAndTagId: migrating ======================== -- change_table(:builds) -> 0.0041s == 20170405000003 BuildsAddBranchIdAndTagId: migrated (0.0044s) =============== == 20170408000000 RequestsAddSenderId: migrating ============================== -- change_table(:requests) -> 0.0042s == 20170408000000 RequestsAddSenderId: migrated (0.0043s) ===================== == 20170408000001 BuildsAddSenderId: migrating ================================ -- change_table(:builds) -> 0.0018s == 20170408000001 BuildsAddSenderId: migrated (0.0018s) ======================= == 20170410000000 JobsIndexStageId: migrating ================================= -- execute("CREATE INDEX CONCURRENTLY index_jobs_on_stage_id ON jobs (stage_id);") -> 0.0044s == 20170410000000 JobsIndexStageId: migrated (0.0044s) ======================== == 20170411000000 TagsIndexRepoIdAndName: migrating =========================== -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_tags_on_repository_id_and_name ON tags (repository_id, name);") -> 0.0036s == 20170411000000 TagsIndexRepoIdAndName: migrated (0.0036s) ================== == 20170419093249 AddSourceToSubscriptions: migrating ========================= -- execute(" CREATE TYPE source_type AS ENUM ('manual', 'stripe', 'github', 'unknown');\n") -> 0.0010s -- add_column(:subscriptions, :source, :source_type, {:default=>"unknown", :null=>false}) -> 0.0010s == 20170419093249 AddSourceToSubscriptions: migrated (0.0021s) ================ == 20170531125700 AddIndexOnBuildsSenderTypeAndSenderId: migrating ============ -- execute("CREATE INDEX CONCURRENTLY index_builds_on_sender_type_and_sender_id ON builds (sender_type, sender_id);") -> 0.0044s == 20170531125700 AddIndexOnBuildsSenderTypeAndSenderId: migrated (0.0044s) === == 20170601163700 DropIndexOnRepositoriesBuildsAndCommits: migrating ========== -- execute("DROP INDEX CONCURRENTLY index_repositories_on_lower_owner_name") -> 0.0020s -- execute("DROP INDEX CONCURRENTLY index_repositories_on_owner_type") -> 0.0020s -- execute("DROP INDEX CONCURRENTLY index_commits_on_repository_id") -> 0.0021s -- execute("DROP INDEX CONCURRENTLY index_builds_on_number") -> 0.0022s == 20170601163700 DropIndexOnRepositoriesBuildsAndCommits: migrated (0.0085s) = == 20170601164400 AddIndexOnBuildsAndStages: migrating ======================== -- execute("CREATE INDEX CONCURRENTLY index_builds_on_repository_id_and_branch_and_event_type_and_id ON builds (repository_id, branch, event_type, id)") -> 0.0039s -- execute("CREATE INDEX CONCURRENTLY index_stages_on_build_id ON stages (build_id)") -> 0.0032s == 20170601164400 AddIndexOnBuildsAndStages: migrated (0.0072s) =============== == 20170609174400 DropUnusedIndexesOnJobsAndBuilds: migrating ================= -- execute("DROP INDEX CONCURRENTLY index_jobs_on_repository_id") -> 0.0021s -- execute("DROP INDEX CONCURRENTLY index_jobs_on_queued_at") -> 0.0020s -- execute("DROP INDEX CONCURRENTLY index_jobs_on_queue") -> 0.0019s -- execute("DROP INDEX CONCURRENTLY index_jobs_on_owner_id") -> 0.0017s -- execute("DROP INDEX CONCURRENTLY index_builds_on_branch") -> 0.0018s -- execute("DROP INDEX CONCURRENTLY index_builds_on_event_type") -> 0.0018s -- execute("DROP INDEX CONCURRENTLY index_builds_on_owner_id") -> 0.0018s == 20170609174400 DropUnusedIndexesOnJobsAndBuilds: migrated (0.0130s) ======== == 20170613000000 CreateTrials: migrating ===================================== -- create_table(:trials, {:id=>:integer}) -> 0.0065s -- execute("CREATE INDEX CONCURRENTLY index_trials_on_owner ON trials(owner_id, owner_type)") -> 0.0036s == 20170613000000 CreateTrials: migrated (0.0102s) ============================ == 20170620144500 AddIndexesOnBuildsAndJobsAndBranches: migrating ============= -- execute("CREATE INDEX CONCURRENTLY index_builds_on_repository_id_and_branch_and_id_desc ON builds (repository_id, branch, id DESC)") -> 0.0036s -- execute("CREATE INDEX CONCURRENTLY index_jobs_on_owner_id_and_owner_type_and_state ON jobs (owner_id, owner_type, state)") -> 0.0038s -- execute("CREATE INDEX CONCURRENTLY index_branches_on_repository_id ON branches (repository_id)") -> 0.0035s == 20170620144500 AddIndexesOnBuildsAndJobsAndBranches: migrated (0.0110s) ==== == 20170621142300 RemovePlansTable: migrating ================================= -- drop_table(:plans) -> 0.0010s == 20170621142300 RemovePlansTable: migrated (0.0010s) ======================== == 20170713162000 AddCcLastDigitsToInvoices: migrating ======================== -- change_table(:invoices) -> 0.0007s == 20170713162000 AddCcLastDigitsToInvoices: migrated (0.0007s) =============== == 20170822171600 CreateMessages: migrating =================================== -- create_table("messages", {:force=>:cascade, :id=>:integer}) -> 0.0061s -- execute("CREATE INDEX CONCURRENTLY index_messages_on_subject_type_and_subject_id ON messages(subject_type, subject_id)") -> 0.0039s == 20170822171600 CreateMessages: migrated (0.0101s) ========================== == 20170831000000 CreateTrialAllowances: migrating ============================ -- create_table(:trial_allowances, {:id=>:integer}) -> 0.0051s -- add_index(:trial_allowances, :trial_id) -> 0.0019s -- add_index(:trial_allowances, [:creator_id, :creator_type]) -> 0.0019s == 20170831000000 CreateTrialAllowances: migrated (0.0091s) =================== == 20170911172800 AddIndexOnJobsUpdatedAt: migrating ========================== -- execute("CREATE INDEX CONCURRENTLY index_jobs_on_updated_at ON jobs (updated_at)") -> 0.0035s == 20170911172800 AddIndexOnJobsUpdatedAt: migrated (0.0036s) ================= == 20171017104500 AddConcurrencyToSubscriptions: migrating ==================== -- change_table(:subscriptions) -> 0.0007s == 20171017104500 AddConcurrencyToSubscriptions: migrated (0.0007s) =========== == 20171024000000 AddAbuseTable: migrating ==================================== -- create_table(:abuses, {:id=>:integer}) -> 0.0062s -- execute("CREATE INDEX CONCURRENTLY index_abuses_on_owner ON abuses(owner_id)") -> 0.0034s == 20171024000000 AddAbuseTable: migrated (0.0097s) =========================== == 20171025000000 AddUpdatedAtTriggerToBuildsAndJobs: migrating =============== -- 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") -> 0.0008s == 20171025000000 AddUpdatedAtTriggerToBuildsAndJobs: migrated (0.0008s) ====== == 20171103000000 UpdateIndexOnAbuses: migrating ============================== -- index_exists?(:abuses, :owner, {:name=>"index_abuses_on_owner"}) -> 0.0014s -- index_exists?(:abuses, [:owner_id, :owner_type, :level], {:name=>"index_abuses_on_owner_id_and_owner_type_and_level"}) -> 0.0011s -- add_index(:abuses, [:owner_id, :owner_type, :level], {:unique=>true, :algorithm=>:concurrently}) -> 0.0039s == 20171103000000 UpdateIndexOnAbuses: migrated (0.0066s) ===================== == 20171211000000 AddRepositoryIdBranchEventTypeIndexOnBuilds: migrating ====== -- 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')") -> 0.0040s == 20171211000000 AddRepositoryIdBranchEventTypeIndexOnBuilds: migrated (0.0040s) == 20180212000000 UsersAddSuspended: migrating ================================ -- add_column(:users, :suspended, :boolean, {:default=>false}) -> 0.0016s == 20180212000000 UsersAddSuspended: migrated (0.0017s) ======================= == 20180213000000 UsersAddSuspendedAt: migrating ============================== -- add_column(:users, :suspended_at, :timestamp, {:precision=>nil}) -> 0.0011s == 20180213000000 UsersAddSuspendedAt: migrated (0.0012s) ===================== == 20180222000000 AddComIdAndOrgId: migrating ================================= -- add_column(:branches, :org_id, :integer) -> 0.0008s -- add_column(:builds, :org_id, :integer) -> 0.0005s -- add_column(:commits, :org_id, :integer) -> 0.0005s -- add_column(:crons, :org_id, :integer) -> 0.0005s -- add_column(:jobs, :org_id, :integer) -> 0.0005s -- add_column(:organizations, :org_id, :integer) -> 0.0004s -- add_column(:permissions, :org_id, :integer) -> 0.0005s -- add_column(:pull_requests, :org_id, :integer) -> 0.0005s -- add_column(:repositories, :org_id, :integer) -> 0.0005s -- add_column(:requests, :org_id, :integer) -> 0.0005s -- add_column(:ssl_keys, :org_id, :integer) -> 0.0005s -- add_column(:stages, :org_id, :integer) -> 0.0004s -- add_column(:tags, :org_id, :integer) -> 0.0005s -- add_column(:users, :org_id, :integer) -> 0.0005s -- add_column(:branches, :com_id, :integer) -> 0.0005s -- add_column(:builds, :com_id, :integer) -> 0.0005s -- add_column(:commits, :com_id, :integer) -> 0.0004s -- add_column(:crons, :com_id, :integer) -> 0.0004s -- add_column(:jobs, :com_id, :integer) -> 0.0005s -- add_column(:organizations, :com_id, :integer) -> 0.0004s -- add_column(:permissions, :com_id, :integer) -> 0.0004s -- add_column(:pull_requests, :com_id, :integer) -> 0.0004s -- add_column(:repositories, :com_id, :integer) -> 0.0005s -- add_column(:requests, :com_id, :integer) -> 0.0005s -- add_column(:ssl_keys, :com_id, :integer) -> 0.0004s -- add_column(:stages, :com_id, :integer) -> 0.0004s -- add_column(:tags, :com_id, :integer) -> 0.0004s -- add_column(:users, :com_id, :integer) -> 0.0004s == 20180222000000 AddComIdAndOrgId: migrated (0.0144s) ======================== == 20180222000001 AddComIdAndOrgIdIndices: migrating ========================== -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_branches_on_org_id ON branches USING btree (org_id)") -> 0.0047s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_builds_on_org_id ON builds USING btree (org_id)") -> 0.0056s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_jobs_on_org_id ON jobs USING btree (org_id)") -> 0.0046s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_commits_on_org_id ON commits USING btree (org_id)") -> 0.0038s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_crons_on_org_id ON crons USING btree (org_id)") -> 0.0038s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_organizations_on_org_id ON organizations USING btree (org_id)") -> 0.0035s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_permissions_on_org_id ON permissions USING btree (org_id)") -> 0.0038s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_pull_requests_on_org_id ON pull_requests USING btree (org_id)") -> 0.0038s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_repositories_on_org_id ON repositories USING btree (org_id)") -> 0.0040s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_requests_on_org_id ON requests USING btree (org_id)") -> 0.0037s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_ssl_keys_on_org_id ON ssl_keys USING btree (org_id)") -> 0.0037s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_stages_on_org_id ON stages USING btree (org_id)") -> 0.0042s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_tags_on_org_id ON tags USING btree (org_id)") -> 0.0039s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_users_on_org_id ON users USING btree (org_id)") -> 0.0041s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_branches_on_com_id ON branches USING btree (com_id)") -> 0.0035s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_builds_on_com_id ON builds USING btree (com_id)") -> 0.0038s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_jobs_on_com_id ON jobs USING btree (com_id)") -> 0.0042s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_commits_on_com_id ON commits USING btree (com_id)") -> 0.0042s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_crons_on_com_id ON crons USING btree (com_id)") -> 0.0042s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_organizations_on_com_id ON organizations USING btree (com_id)") -> 0.0043s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_permissions_on_com_id ON permissions USING btree (com_id)") -> 0.0047s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_pull_requests_on_com_id ON pull_requests USING btree (com_id)") -> 0.0055s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_repositories_on_com_id ON repositories USING btree (com_id)") -> 0.0064s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_requests_on_com_id ON requests USING btree (com_id)") -> 0.0036s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_ssl_keys_on_com_id ON ssl_keys USING btree (com_id)") -> 0.0038s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_stages_on_com_id ON stages USING btree (com_id)") -> 0.0035s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_tags_on_com_id ON tags USING btree (com_id)") -> 0.0039s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_users_on_com_id ON users USING btree (com_id)") -> 0.0034s == 20180222000001 AddComIdAndOrgIdIndices: migrated (0.1181s) ================= == 20180222000002 AddMigrating: migrating ===================================== -- add_column(:repositories, :migrating, :boolean) -> 0.0007s -- add_column(:repositories, :migrated_at, :timestamp, {:precision=>nil}) -> 0.0004s -- add_column(:organizations, :migrating, :boolean) -> 0.0004s -- add_column(:organizations, :migrated_at, :timestamp, {:precision=>nil}) -> 0.0004s -- add_column(:users, :migrating, :boolean) -> 0.0004s -- add_column(:users, :migrated_at, :timestamp, {:precision=>nil}) -> 0.0006s == 20180222000002 AddMigrating: migrated (0.0030s) ============================ == 20180222000003 DropFkRepositoriesCurrentBuildId: migrating ================= -- execute("ALTER TABLE repositories DROP CONSTRAINT fk_repositories_current_build_id") -> 0.0008s == 20180222000003 DropFkRepositoriesCurrentBuildId: migrated (0.0008s) ======== == 20180222000009 CreateRepoCounts: migrating ================================= -- create_table(:repo_counts, {:id=>false}) -> 0.0032s -- add_index(:repo_counts, :repository_id) -> 0.0020s == 20180222000009 CreateRepoCounts: migrated (0.0053s) ======================== == 20180222000012 CreateRepoCountsTriggers: migrating ========================= -- 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") -> 0.0212s == 20180222000012 CreateRepoCountsTriggers: migrated (0.0217s) ================ == 20180222164100 DropAnnotations: migrating ================================== -- drop_table(:annotations) -> 0.0023s -- drop_table(:annotation_providers) -> 0.0021s == 20180222164100 DropAnnotations: migrated (0.0045s) ========================= == 20180305143800 IndexBuildsOnRepositoryIdWhereStateNotFinished: migrating === -- execute("CREATE INDEX CONCURRENTLY index_builds_on_repository_id_where_state_not_finished ON builds (repository_id) WHERE state IN ('created', 'queued', 'received', 'started');") -> 0.0046s == 20180305143800 IndexBuildsOnRepositoryIdWhereStateNotFinished: migrated (0.0046s) == 20180321102400 IndexJobsOnRepositoryIdWhereStateRunning: migrating ========= -- execute("CREATE INDEX CONCURRENTLY index_jobs_on_repository_id_where_state_running ON jobs (repository_id) WHERE state IN ('queued', 'received', 'started')") -> 0.0039s == 20180321102400 IndexJobsOnRepositoryIdWhereStateRunning: migrated (0.0039s) == 20180330000000 CreateRequestPayloads: migrating ============================ -- create_table(:request_payloads, {:id=>:integer}) -> 0.0066s -- add_index(:request_payloads, :request_id) -> 0.0022s -- add_index(:request_payloads, [:created_at, :archived]) -> 0.0021s == 20180330000000 CreateRequestPayloads: migrated (0.0110s) =================== == 20180331000000 CreateConfigs: migrating ==================================== -- create_table(:request_configs, {:id=>:integer}) -> 0.0057s -- create_table(:build_configs, {:id=>:integer}) -> 0.0052s -- create_table(:job_configs, {:id=>:integer}) -> 0.0057s -- add_index(:request_configs, [:repository_id, :key]) -> 0.0022s -- add_index(:build_configs, [:repository_id, :key]) -> 0.0022s -- add_index(:job_configs, [:repository_id, :key]) -> 0.0023s -- add_column(:requests, :config_id, :integer) -> 0.0007s -- add_column(:builds, :config_id, :integer) -> 0.0007s -- add_column(:jobs, :config_id, :integer) -> 0.0006s == 20180331000000 CreateConfigs: migrated (0.0259s) =========================== == 20180404000001 CreateInstallations: migrating ============================== -- create_table(:installations, {:id=>:integer}) -> 0.0120s -- change_table(:repositories) -> 0.0015s == 20180404000001 CreateInstallations: migrated (0.0137s) ===================== == 20180410000000 RequestsDropPayload: migrating ============================== -- remove_column(:requests, :payload, :text) -> 0.0010s == 20180410000000 RequestsDropPayload: migrated (0.0011s) ===================== == 20180413000000 IndexBranchesOnRepositoryIdAndNameAndId: migrating ========== -- execute("CREATE INDEX CONCURRENTLY index_branches_on_repository_id_and_name_and_id ON branches (repository_id, name, id)") -> 0.0043s -- execute("DROP INDEX CONCURRENTLY index_branches_on_repository_id_and_name") -> 0.0022s == 20180413000000 IndexBranchesOnRepositoryIdAndNameAndId: migrated (0.0067s) = == 20180417000000 IndexBuildsOrganizationsUsersOnUpdatedAt: migrating ========= -- execute("CREATE INDEX CONCURRENTLY index_builds_on_updated_at ON builds (updated_at)") -> 0.0042s -- execute("CREATE INDEX CONCURRENTLY index_users_on_updated_at ON users (updated_at)") -> 0.0040s -- execute("CREATE INDEX CONCURRENTLY index_repositories_on_updated_at ON repositories (updated_at)") -> 0.0037s -- execute("CREATE INDEX CONCURRENTLY index_organizations_on_updated_at ON organizations (updated_at)") -> 0.0034s == 20180417000000 IndexBuildsOrganizationsUsersOnUpdatedAt: migrated (0.0156s) == 20180420000000 ConstraintsAndIndexesForGhApps: migrating =================== -- execute("CREATE UNIQUE INDEX CONCURRENTLY github_id_installations_idx ON installations (github_id)") -> 0.0036s -- execute("CREATE INDEX CONCURRENTLY managed_repositories_idx ON repositories (managed_by_installation_at)") -> 0.0039s -- execute("CREATE UNIQUE INDEX CONCURRENTLY owner_installations_idx ON installations (owner_id, owner_type) WHERE removed_by_id IS NULL") -> 0.0037s == 20180420000000 ConstraintsAndIndexesForGhApps: migrated (0.0113s) ========== == 20180425000000 IndexActiveOnOrg: migrating ================================= -- execute("CREATE INDEX CONCURRENTLY index_active_on_org ON repositories (active_on_org)") -> 0.0039s == 20180425000000 IndexActiveOnOrg: migrated (0.0039s) ======================== == 20180425100000 AddRemovedAtOnInstallations: migrating ====================== -- add_column(:installations, :removed_at, :timestamp, {:precision=>nil}) -> 0.0007s == 20180425100000 AddRemovedAtOnInstallations: migrated (0.0008s) ============= == 20180429000000 IndexRepositoriesOnOwnerNameAndName: migrating ============== -- execute("CREATE INDEX CONCURRENTLY index_repositories_on_owner_name_and_name ON repositories (owner_name, name) WHERE invalidated_at IS NULL") -> 0.0041s == 20180429000000 IndexRepositoriesOnOwnerNameAndName: migrated (0.0041s) ===== == 20180501000000 IndexJobsOnOwnerWhereStateRunning: migrating ================ -- execute("CREATE INDEX CONCURRENTLY index_jobs_on_owner_where_state_running ON jobs (owner_id, owner_type) WHERE state IN ('queued', 'received', 'started')") -> 0.0042s == 20180501000000 IndexJobsOnOwnerWhereStateRunning: migrated (0.0043s) ======= == 20180517000000 IndexRequestsConfigId: migrating ============================ -- execute("CREATE INDEX CONCURRENTLY index_requests_on_config_id ON requests (config_id)") -> 0.0038s == 20180517000000 IndexRequestsConfigId: migrated (0.0039s) =================== == 20180517000001 IndexBuildsConfigId: migrating ============================== -- execute("CREATE INDEX CONCURRENTLY index_builds_on_config_id ON requests (config_id)") -> 0.0045s == 20180517000001 IndexBuildsConfigId: migrated (0.0045s) ===================== == 20180517000002 IndexJobsConfigId: migrating ================================ -- execute("CREATE INDEX CONCURRENTLY index_jobs_on_config_id ON requests (config_id)") -> 0.0040s == 20180517000002 IndexJobsConfigId: migrated (0.0040s) ======================= == 20180518000000 IndexBuildsOnMultiple: migrating ============================ -- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_builds_on_repo_branch_event_type_and_private ON builds (repository_id, branch, event_type, private)") -> 0.0046s == 20180518000000 IndexBuildsOnMultiple: migrated (0.0046s) =================== == 20180522000000 AddActiveFlagToCrons: migrating ============================= -- change_table(:crons) -> 0.0015s -- add_index(:crons, :next_run, {:where=>"(active IS TRUE)", :algorithm=>:concurrently}) -> 0.0040s == 20180522000000 AddActiveFlagToCrons: migrated (0.0056s) ==================== == 20180531000000 CreateRequestYamlConfigs: migrating ========================= -- create_table(:request_yaml_configs, {:id=>:integer}) -> 0.0063s -- add_index(:request_yaml_configs, [:repository_id, :key]) -> 0.0029s -- add_column(:requests, :yaml_config_id, :integer) -> 0.0011s == 20180531000000 CreateRequestYamlConfigs: migrated (0.0105s) ================ == 20180606000000 IndexCommitsOnRepositoryId: migrating ======================= -- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_commits_on_repository_id ON commits (repository_id)") -> 0.0057s == 20180606000000 IndexCommitsOnRepositoryId: migrated (0.0057s) ============== == 20180606000001 IndexJobsOnRepositoryId: migrating ========================== -- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_jobs_on_repository_id ON jobs (repository_id)") -> 0.0035s == 20180606000001 IndexJobsOnRepositoryId: migrated (0.0036s) ================= == 20180614000000 DropRequestsConfig: migrating =============================== -- remove_column(:requests, :config) -> 0.0008s == 20180614000000 DropRequestsConfig: migrated (0.0008s) ====================== == 20180614000001 DropBuildsConfig: migrating ================================= -- remove_column(:builds, :config) -> 0.0007s == 20180614000001 DropBuildsConfig: migrated (0.0008s) ======================== == 20180614000002 DropJobsConfig: migrating =================================== -- remove_column(:jobs, :config) -> 0.0008s == 20180614000002 DropJobsConfig: migrated (0.0008s) ========================== == 20180620000000 IndexBuildsOnRepositoryIdEventTypeId: migrating ============= -- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_builds_on_repository_id_event_type_id ON builds (repository_id, event_type, id DESC)") -> 0.0039s == 20180620000000 IndexBuildsOnRepositoryIdEventTypeId: migrated (0.0040s) ==== == 20180725000000 CreateCancellations: migrating ============================== -- create_table(:cancellations, {:id=>:integer}) -> 0.0075s == 20180725000000 CreateCancellations: migrated (0.0076s) ===================== == 20180726000000 CommitsIndexAuthorEmail: migrating ========================== -- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_commits_on_author_email ON commits (author_email)") -> 0.0036s == 20180726000000 CommitsIndexAuthorEmail: migrated (0.0036s) ================= == 20180726000001 CommitsIndexCommitterEmail: migrating ======================= -- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_commits_on_committer_email ON commits (committer_email)") -> 0.0034s == 20180726000001 CommitsIndexCommitterEmail: migrated (0.0035s) ============== == 20180801000001 UsersAddRedactedAt: migrating =============================== -- change_table(:users) -> 0.0008s == 20180801000001 UsersAddRedactedAt: migrated (0.0009s) ====================== == 20180822000000 CreateEmailUnsubscribes: migrating ========================== -- create_table(:email_unsubscribes, {:id=>:integer}) -> 0.0093s == 20180822000000 CreateEmailUnsubscribes: migrated (0.0093s) ================= == 20180823000000 AddPreferences: migrating =================================== -- change_table(:users) -> 0.0012s == 20180823000000 AddPreferences: migrated (0.0012s) ========================== == 20180828000000 ChangePreferencesDefault: migrating ========================= -- change_column_default(:users, :preferences, {}) -> 0.0039s == 20180828000000 ChangePreferencesDefault: migrated (0.0039s) ================ == 20180829000000 MakeEmailUnsubscribesIdBigint: migrating ==================== -- change_column(:email_unsubscribes, :id, :bigint) -> 0.0077s == 20180829000000 MakeEmailUnsubscribesIdBigint: migrated (0.0077s) =========== == 20180830000001 JobsAddRestartedAt: migrating =============================== -- change_table(:jobs) -> 0.0009s == 20180830000001 JobsAddRestartedAt: migrated (0.0009s) ====================== == 20180830000002 BuildsAddRestartedAt: migrating ============================= -- change_table(:builds) -> 0.0008s == 20180830000002 BuildsAddRestartedAt: migrated (0.0009s) ==================== == 20180830000003 JobVersionsCreate: migrating ================================ -- create_table(:job_versions, {:id=>:integer}) -> 0.0054s == 20180830000003 JobVersionsCreate: migrated (0.0054s) ======================= == 20180903000000 JobConfigsIndexConfigResourcesGpu: migrating ================ -- 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") -> 0.0010s -- 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") -> 0.0040s == 20180903000000 JobConfigsIndexConfigResourcesGpu: migrated (0.0050s) ======= == 20180903000001 FixIndexesOnBuildsAndJobsConfigId: migrating ================ -- execute("DROP INDEX index_builds_on_config_id") -> 0.0011s -- execute("CREATE INDEX CONCURRENTLY index_builds_on_config_id ON builds (config_id)") -> 0.0036s -- execute("DROP INDEX index_jobs_on_config_id") -> 0.0012s -- execute("CREATE INDEX CONCURRENTLY index_jobs_on_config_id ON jobs (config_id)") -> 0.0035s == 20180903000001 FixIndexesOnBuildsAndJobsConfigId: migrated (0.0095s) ======= == 20180904000001 CreateJobConfigsGpu: migrating ============================== -- 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") -> 0.0022s == 20180904000001 CreateJobConfigsGpu: migrated (0.0023s) ===================== == 20180906000000 AddIndexUsersPreferencesBuildEmails: migrating ============== -- execute("CREATE INDEX CONCURRENTLY user_preferences_build_emails_false ON users (id) WHERE preferences->>'build_emails' = 'false';\n") -> 0.0039s == 20180906000000 AddIndexUsersPreferencesBuildEmails: migrated (0.0039s) ===== == 20181002115306 DeleteDuplicateRecordsFromMemberships: migrating ============ -- 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") -> 0.0014s == 20181002115306 DeleteDuplicateRecordsFromMemberships: migrated (0.0014s) === == 20181002115307 AddConstraintOnOrganizationAndUserToMemberships: migrating == -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_organization_id_and_user_id_on_memberships ON memberships USING btree (organization_id, user_id);\n") -> 0.0036s == 20181002115307 AddConstraintOnOrganizationAndUserToMemberships: migrated (0.0036s) == 20181018000000 IndexBuildsOnCreatedAt: migrating =========================== -- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_builds_on_created_at ON builds (created_at)") -> 0.0038s == 20181018000000 IndexBuildsOnCreatedAt: migrated (0.0039s) ================== == 20181029120000 AddMigrationStatusColumnToRepositories: migrating =========== -- add_column(:repositories, :migration_status, :string) -> 0.0008s == 20181029120000 AddMigrationStatusColumnToRepositories: migrated (0.0009s) == == 20181113120000 AddGithubGuidColumnToRequests: migrating ==================== -- add_column(:requests, :github_guid, :text) -> 0.0010s -- add_index(:requests, :github_guid, {:algorithm=>:concurrently, :unique=>true}) -> 0.0037s == 20181113120000 AddGithubGuidColumnToRequests: migrated (0.0048s) =========== == 20181116800000 AddConstraintsToMultipleTables: migrating =================== -- 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") -> 0.0012s -- 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") -> 0.0008s -- execute("ALTER TABLE builds ADD CONSTRAINT fk_builds_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID") -> 0.0008s -- execute("ALTER TABLE builds ADD CONSTRAINT fk_builds_on_commit_id FOREIGN KEY (commit_id) REFERENCES commits(id) NOT VALID") -> 0.0007s -- execute("ALTER TABLE builds ADD CONSTRAINT fk_builds_on_request_id FOREIGN KEY (request_id) REFERENCES requests(id) NOT VALID") -> 0.0009s -- execute("ALTER TABLE builds ADD CONSTRAINT fk_builds_on_pull_request_id FOREIGN KEY (pull_request_id) REFERENCES pull_requests(id) NOT VALID") -> 0.0014s -- execute("ALTER TABLE builds ADD CONSTRAINT fk_builds_on_branch_id FOREIGN KEY (branch_id) REFERENCES branches(id) NOT VALID") -> 0.0011s -- execute("ALTER TABLE builds ADD CONSTRAINT fk_builds_on_tag_id FOREIGN KEY (tag_id) REFERENCES tags(id) NOT VALID") -> 0.0012s -- execute("ALTER TABLE builds ADD CONSTRAINT fk_builds_on_config_id FOREIGN KEY (config_id) REFERENCES build_configs(id) NOT VALID") -> 0.0012s -- execute("ALTER TABLE jobs ADD CONSTRAINT fk_jobs_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID") -> 0.0012s -- execute("ALTER TABLE jobs ADD CONSTRAINT fk_jobs_on_commit_id FOREIGN KEY (commit_id) REFERENCES commits(id) NOT VALID") -> 0.0011s -- execute("ALTER TABLE jobs ADD CONSTRAINT fk_jobs_on_stage_id FOREIGN KEY (stage_id) REFERENCES stages(id) NOT VALID") -> 0.0011s -- execute("ALTER TABLE jobs ADD CONSTRAINT fk_jobs_on_config_id FOREIGN KEY (config_id) REFERENCES job_configs(id) NOT VALID") -> 0.0014s -- execute("ALTER TABLE branches ADD CONSTRAINT fk_branches_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID") -> 0.0011s -- 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") -> 0.0012s -- execute("ALTER TABLE tags ADD CONSTRAINT fk_tags_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID") -> 0.0010s -- 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") -> 0.0009s -- execute("ALTER TABLE commits ADD CONSTRAINT fk_commits_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID") -> 0.0012s -- execute("ALTER TABLE commits ADD CONSTRAINT fk_commits_on_branch_id FOREIGN KEY (branch_id) REFERENCES branches(id) NOT VALID") -> 0.0010s -- execute("ALTER TABLE commits ADD CONSTRAINT fk_commits_on_tag_id FOREIGN KEY (tag_id) REFERENCES tags(id) NOT VALID") -> 0.0010s -- execute("ALTER TABLE crons ADD CONSTRAINT fk_crons_on_branch_id FOREIGN KEY (branch_id) REFERENCES branches(id) NOT VALID") -> 0.0015s -- execute("ALTER TABLE job_configs ADD CONSTRAINT fk_job_configs_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID") -> 0.0013s -- execute("ALTER TABLE build_configs ADD CONSTRAINT fk_build_configs_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID") -> 0.0011s -- execute("ALTER TABLE pull_requests ADD CONSTRAINT fk_pull_requests_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID") -> 0.0013s -- execute("ALTER TABLE ssl_keys ADD CONSTRAINT fk_ssl_keys_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) NOT VALID") -> 0.0011s -- execute("ALTER TABLE requests ADD CONSTRAINT fk_requests_on_commit_id FOREIGN KEY (commit_id) REFERENCES commits(id) NOT VALID") -> 0.0015s -- execute("ALTER TABLE requests ADD CONSTRAINT fk_requests_on_pull_request_id FOREIGN KEY (pull_request_id) REFERENCES pull_requests(id) NOT VALID") -> 0.0011s -- execute("ALTER TABLE requests ADD CONSTRAINT fk_requests_on_branch_id FOREIGN KEY (branch_id) REFERENCES branches(id) NOT VALID") -> 0.0011s -- execute("ALTER TABLE requests ADD CONSTRAINT fk_requests_on_tag_id FOREIGN KEY (tag_id) REFERENCES tags(id) NOT VALID") -> 0.0011s -- execute("ALTER TABLE requests ADD CONSTRAINT fk_requests_on_config_id FOREIGN KEY (config_id) REFERENCES request_configs(id) NOT VALID") -> 0.0008s -- execute("ALTER TABLE stages ADD CONSTRAINT fk_stages_on_build_id FOREIGN KEY (build_id) REFERENCES builds(id) NOT VALID") -> 0.0008s == 20181116800000 AddConstraintsToMultipleTables: migrated (0.0349s) ========== == 20181116800001 ValidateConstraints: migrating ============================== -- execute("ALTER TABLE repositories VALIDATE CONSTRAINT fk_repositories_on_current_build_id") -> 0.0048s -- execute("ALTER TABLE repositories VALIDATE CONSTRAINT fk_repositories_on_last_build_id") -> 0.0026s -- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_builds_on_repository_id") -> 0.0018s -- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_builds_on_commit_id") -> 0.0024s -- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_builds_on_request_id") -> 0.0027s -- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_builds_on_pull_request_id") -> 0.0025s -- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_builds_on_branch_id") -> 0.0021s -- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_builds_on_tag_id") -> 0.0029s -- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_builds_on_config_id") -> 0.0024s -- execute("ALTER TABLE jobs VALIDATE CONSTRAINT fk_jobs_on_repository_id") -> 0.0029s -- execute("ALTER TABLE jobs VALIDATE CONSTRAINT fk_jobs_on_commit_id") -> 0.0019s -- execute("ALTER TABLE jobs VALIDATE CONSTRAINT fk_jobs_on_stage_id") -> 0.0023s -- execute("ALTER TABLE jobs VALIDATE CONSTRAINT fk_jobs_on_config_id") -> 0.0021s -- execute("ALTER TABLE branches VALIDATE CONSTRAINT fk_branches_on_repository_id") -> 0.0021s -- execute("ALTER TABLE branches VALIDATE CONSTRAINT fk_branches_on_last_build_id") -> 0.0015s -- execute("ALTER TABLE tags VALIDATE CONSTRAINT fk_tags_on_repository_id") -> 0.0021s -- execute("ALTER TABLE tags VALIDATE CONSTRAINT fk_tags_on_last_build_id") -> 0.0017s -- execute("ALTER TABLE commits VALIDATE CONSTRAINT fk_commits_on_repository_id") -> 0.0019s -- execute("ALTER TABLE commits VALIDATE CONSTRAINT fk_commits_on_branch_id") -> 0.0017s -- execute("ALTER TABLE commits VALIDATE CONSTRAINT fk_commits_on_tag_id") -> 0.0011s -- execute("ALTER TABLE crons VALIDATE CONSTRAINT fk_crons_on_branch_id") -> 0.0024s -- execute("ALTER TABLE job_configs VALIDATE CONSTRAINT fk_job_configs_on_repository_id") -> 0.0015s -- execute("ALTER TABLE build_configs VALIDATE CONSTRAINT fk_build_configs_on_repository_id") -> 0.0018s -- execute("ALTER TABLE pull_requests VALIDATE CONSTRAINT fk_pull_requests_on_repository_id") -> 0.0020s -- execute("ALTER TABLE ssl_keys VALIDATE CONSTRAINT fk_ssl_keys_on_repository_id") -> 0.0016s -- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_requests_on_commit_id") -> 0.0008s -- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_requests_on_pull_request_id") -> 0.0008s -- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_requests_on_branch_id") -> 0.0009s -- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_requests_on_tag_id") -> 0.0008s -- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_requests_on_config_id") -> 0.0010s -- execute("ALTER TABLE stages VALIDATE CONSTRAINT fk_stages_on_build_id") -> 0.0010s == 20181116800001 ValidateConstraints: migrated (0.0607s) ===================== == 20181126080000 AddIndexesForForeignKeys: migrating ========================= -- index_exists?(:builds, :branch_id) -> 0.0120s -- add_index(:builds, :branch_id, {:algorithm=>:concurrently}) -> 0.0064s -- index_exists?(:builds, :commit_id) -> 0.0180s -- add_index(:builds, :commit_id, {:algorithm=>:concurrently}) -> 0.0051s -- index_exists?(:builds, :pull_request_id) -> 0.0144s -- add_index(:builds, :pull_request_id, {:algorithm=>:concurrently}) -> 0.0049s -- index_exists?(:builds, :tag_id) -> 0.0152s -- add_index(:builds, :tag_id, {:algorithm=>:concurrently}) -> 0.0042s -- index_exists?(:jobs, :commit_id) -> 0.0055s -- add_index(:jobs, :commit_id, {:algorithm=>:concurrently}) -> 0.0037s -- index_exists?(:branches, :last_build_id) -> 0.0021s -- add_index(:branches, :last_build_id, {:algorithm=>:concurrently}) -> 0.0033s -- index_exists?(:tags, :repository_id) -> 0.0017s -- add_index(:tags, :repository_id, {:algorithm=>:concurrently}) -> 0.0035s -- index_exists?(:tags, :last_build_id) -> 0.0020s -- add_index(:tags, :last_build_id, {:algorithm=>:concurrently}) -> 0.0039s -- index_exists?(:commits, :tag_id) -> 0.0026s -- add_index(:commits, :tag_id, {:algorithm=>:concurrently}) -> 0.0037s -- index_exists?(:commits, :branch_id) -> 0.0029s -- add_index(:commits, :branch_id, {:algorithm=>:concurrently}) -> 0.0041s -- index_exists?(:job_configs, :repository_id) -> 0.0014s -- add_index(:job_configs, :repository_id, {:algorithm=>:concurrently}) -> 0.0039s -- index_exists?(:build_configs, :repository_id) -> 0.0012s -- add_index(:build_configs, :repository_id, {:algorithm=>:concurrently}) -> 0.0033s -- index_exists?(:pull_requests, :repository_id) -> 0.0020s -- add_index(:pull_requests, :repository_id, {:algorithm=>:concurrently}) -> 0.0034s -- index_exists?(:requests, :pull_request_id) -> 0.0195s -- add_index(:requests, :pull_request_id, {:algorithm=>:concurrently}) -> 0.0214s -- index_exists?(:requests, :tag_id) -> 0.0084s -- add_index(:requests, :tag_id, {:algorithm=>:concurrently}) -> 0.0044s -- index_exists?(:requests, :branch_id) -> 0.0089s -- add_index(:requests, :branch_id, {:algorithm=>:concurrently}) -> 0.0046s -- index_exists?(:repositories, :current_build_id) -> 0.0095s -- add_index(:repositories, :current_build_id, {:algorithm=>:concurrently}) -> 0.0049s -- index_exists?(:repositories, :last_build_id) -> 0.0120s -- add_index(:repositories, :last_build_id, {:algorithm=>:concurrently}) -> 0.0050s -- index_exists?(:crons, :branch_id) -> 0.0020s -- add_index(:crons, :branch_id, {:algorithm=>:concurrently}) -> 0.0033s == 20181126080000 AddIndexesForForeignKeys: migrated (0.2407s) ================ == 20181128120000 AddUniqueIndexToBranchesOnRepositoryIdAndName: migrating ==== -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_branches_on_repository_id_and_name ON branches(repository_id, name)") -> 0.0037s == 20181128120000 AddUniqueIndexToBranchesOnRepositoryIdAndName: migrated (0.0037s) == 20181203075818 AddUniqueNameColumnToBranches: migrating ==================== -- add_column(:branches, :unique_name, :text) -> 0.0007s == 20181203075818 AddUniqueNameColumnToBranches: migrated (0.0008s) =========== == 20181203075819 AddSetUniqueNameTriggerToBranches: migrating ================ -- 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") -> 0.0008s == 20181203075819 AddSetUniqueNameTriggerToBranches: migrated (0.0009s) ======= == 20181203080356 CreateIndexOnBranchesUniqueNameAndRepositoryId: migrating === -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_branches_repository_id_unique_name ON branches(repository_id, unique_name) WHERE unique_name IS NOT NULL") -> 0.0040s == 20181203080356 CreateIndexOnBranchesUniqueNameAndRepositoryId: migrated (0.0040s) == 20181205152712 AddUniqueIndexToCronsOnBranchId: migrating ================== -- execute("DROP INDEX CONCURRENTLY index_crons_on_branch_id") -> 0.0026s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_crons_on_branch_id ON crons(branch_id)") -> 0.0038s == 20181205152712 AddUniqueIndexToCronsOnBranchId: migrated (0.0064s) ========= == 20190102000000 AddOrganizationPreferences: migrating ======================= -- change_table(:organizations) -> 0.0011s == 20190102000000 AddOrganizationPreferences: migrated (0.0011s) ============== == 20190102000001 ChangeOrganizationPreferencesDefault: migrating ============= -- change_column_default(:organizations, :preferences, {}) -> 0.0022s == 20190102000001 ChangeOrganizationPreferencesDefault: migrated (0.0023s) ==== == 20190109000000 CreateBetaMigrationRequestTable: migrating ================== -- create_table(:beta_migration_requests, {:id=>:integer}) -> 0.0055s -- add_index(:beta_migration_requests, [:owner_type, :owner_id]) -> 0.0019s == 20190109000000 CreateBetaMigrationRequestTable: migrated (0.0075s) ========= == 20190118000000 AddBetaMigrationRequestColumnToOrganizations: migrating ===== -- add_column(:organizations, :beta_migration_request_id, :integer) -> 0.0007s == 20190118000000 AddBetaMigrationRequestColumnToOrganizations: migrated (0.0008s) == 20190204000000 MakeSubscriptionOwnerNotNullable: migrating ================= -- change_column_null(:subscriptions, :owner_type, false) -> 0.0006s -- change_column_null(:subscriptions, :owner_id, false) -> 0.0003s == 20190204000000 MakeSubscriptionOwnerNotNullable: migrated (0.0010s) ======== == 20190313000000 RequestRawConfigsCreate: migrating ========================== -- create_table(:request_raw_configs, {:id=>:integer}) -> 0.0053s -- add_index(:request_raw_configs, [:repository_id, :key]) -> 0.0021s -- create_table(:request_raw_configurations, {:id=>:integer}) -> 0.0047s -- add_index(:request_raw_configurations, :request_id) -> 0.0019s -- add_index(:request_raw_configurations, :request_raw_config_id) -> 0.0019s == 20190313000000 RequestRawConfigsCreate: migrated (0.0161s) ================= == 20190329093854 CreateGatekeeperWorkers: migrating ========================== -- create_table(:gatekeeper_workers) -> 0.0031s -- execute("INSERT INTO gatekeeper_workers(id) SELECT generate_series(1,200) as id;") -> 0.0007s == 20190329093854 CreateGatekeeperWorkers: migrated (0.0039s) ================= == 20190409133118 AddUniqueNumberColumnToBuilds: migrating ==================== -- add_column(:builds, :unique_number, :int) -> 0.0008s == 20190409133118 AddUniqueNumberColumnToBuilds: migrated (0.0008s) =========== == 20190409133320 AddSetUniqueNumberTriggerToBuilds: migrating ================ -- 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") -> 0.0009s == 20190409133320 AddSetUniqueNumberTriggerToBuilds: migrated (0.0010s) ======= == 20190409133444 CreateUniqueIndexOnRepositoryIdAndNumberOnBuilds: migrating = -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_builds_repository_id_unique_number ON builds(repository_id, unique_number) WHERE unique_number IS NOT NULL") -> 0.0037s == 20190409133444 CreateUniqueIndexOnRepositoryIdAndNumberOnBuilds: migrated (0.0037s) == 20190410121039 MakeSetUniqueNumberTriggerRunOnlyOnInsert: migrating ======== -- 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") -> 0.0007s == 20190410121039 MakeSetUniqueNumberTriggerRunOnlyOnInsert: migrated (0.0008s) == 20190416071629 RemoveUniqueNameFromBranches: migrating ===================== -- execute("drop index concurrently index_branches_repository_id_unique_name;") -> 0.0020s -- execute("DROP TRIGGER IF EXISTS set_unique_name_on_branches ON branches;\nDROP FUNCTION IF EXISTS set_unique_name();\n\n") -> 0.0008s -- remove_column(:branches, :unique_name) -> 0.0008s == 20190416071629 RemoveUniqueNameFromBranches: migrated (0.0038s) ============ == 20190417072423 AlterBuildsUniqueNumberIndex: migrating ===================== -- 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") -> 0.0036s -- execute("DROP INDEX CONCURRENTLY index_builds_repository_id_unique_number") -> 0.0020s -- execute("ALTER INDEX index_builds_repository_id_unique_number_new RENAME TO index_builds_repository_id_unique_number") -> 0.0008s == 20190417072423 AlterBuildsUniqueNumberIndex: migrated (0.0065s) ============ == 20190417072838 ReinstallSetUniqueNumberTrigger: migrating ================== -- execute("DROP TRIGGER IF EXISTS set_unique_number_on_builds ON builds;\nDROP FUNCTION IF EXISTS set_unique_number();\n") -> 0.0111s -- 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") -> 0.0013s == 20190417072838 ReinstallSetUniqueNumberTrigger: migrated (0.0143s) ========= == 20190502175059 AddMergeableStateToPullRequests: migrating ================== -- add_column(:pull_requests, :mergeable_state, :string) -> 0.0021s == 20190502175059 AddMergeableStateToPullRequests: migrated (0.0024s) ========= == 20190510121000 AddReposIndexOnLowerOwnerNameAndName: migrating ============= -- 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") -> 0.0046s == 20190510121000 AddReposIndexOnLowerOwnerNameAndName: migrated (0.0048s) ==== == 20190605121000 AddHistoryMigrationStatusToRepositories: migrating ========== -- add_column(:repositories, :history_migration_status, :string) -> 0.0021s == 20190605121000 AddHistoryMigrationStatusToRepositories: migrated (0.0023s) = == 20190605155459 AddPullRequestMergeableToRequests: migrating ================ -- add_column(:requests, :pull_request_mergeable, :string) -> 0.0032s == 20190605155459 AddPullRequestMergeableToRequests: migrated (0.0032s) ======= == 20190613120000 SoftDeleteRepositoryAlongWithItsData: migrating ============= -- execute("create table if not exists deleted_builds (like builds)") -> 0.0053s -- execute("create table if not exists deleted_stages (like stages)") -> 0.0029s -- execute("create table if not exists deleted_jobs (like jobs)") -> 0.0031s -- execute("create table if not exists deleted_requests (like requests)") -> 0.0031s -- execute("create table if not exists deleted_commits (like commits)") -> 0.0029s -- execute("create table if not exists deleted_pull_requests (like pull_requests)") -> 0.0027s -- execute("create table if not exists deleted_job_configs (like job_configs)") -> 0.0026s -- execute("create table if not exists deleted_build_configs (like build_configs)") -> 0.0027s -- execute("create table if not exists deleted_request_configs (like request_configs)") -> 0.0024s -- execute("create table if not exists deleted_request_payloads (like request_payloads)") -> 0.0026s -- execute("create table if not exists deleted_ssl_keys (like ssl_keys)") -> 0.0024s -- execute("create table if not exists deleted_tags (like tags)") -> 0.0024s -- 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") -> 0.0016s == 20190613120000 SoftDeleteRepositoryAlongWithItsData: migrated (0.0373s) ==== == 20190618082559 AddVcsTypeToUser: migrating ================================= -- add_column(:users, :vcs_type, :string, {:default=>nil}) -> 0.0013s -- execute("ALTER TABLE users ALTER COLUMN vcs_type SET DEFAULT 'GithubUser'") -> 0.0004s -- select_value("SELECT id FROM users ORDER BY id DESC LIMIT 1") -> 0.0007s -- execute("UPDATE users SET vcs_type = 'GithubUser' WHERE id BETWEEN 0 AND 5000") -> 0.0006s == 20190618082559 AddVcsTypeToUser: migrated (0.0044s) ======================== == 20190701082559 AddVcsTypeToRepository: migrating =========================== -- add_column(:repositories, :vcs_type, :string, {:default=>nil}) -> 0.0015s -- execute("ALTER TABLE repositories ALTER COLUMN vcs_type SET DEFAULT 'GithubRepository'") -> 0.0005s -- select_value("SELECT id FROM repositories ORDER BY id DESC LIMIT 1") -> 0.0007s -- execute("UPDATE repositories SET vcs_type = 'GithubRepository' WHERE id BETWEEN 0 AND 5000") -> 0.0010s == 20190701082559 AddVcsTypeToRepository: migrated (0.0051s) ================== == 20190704082559 AddVcsTypeToOrganization: migrating ========================= -- add_column(:organizations, :vcs_type, :string, {:default=>nil}) -> 0.0013s -- execute("ALTER TABLE organizations ALTER COLUMN vcs_type SET DEFAULT 'GithubOrganization'") -> 0.0004s -- select_value("SELECT id FROM organizations ORDER BY id DESC LIMIT 1") -> 0.0009s -- execute("UPDATE organizations SET vcs_type = 'GithubOrganization' WHERE id BETWEEN 0 AND 5000") -> 0.0009s == 20190704082559 AddVcsTypeToOrganization: migrated (0.0055s) ================ == 20190718092750 AddDeleteCascadeToForeignKeys: migrating ==================== -- execute("ALTER TABLE builds ADD CONSTRAINT fk_new_builds_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) ON DELETE CASCADE NOT VALID") -> 0.0012s -- execute("ALTER TABLE builds ADD CONSTRAINT fk_new_builds_on_commit_id FOREIGN KEY (commit_id) REFERENCES commits(id) ON DELETE CASCADE NOT VALID") -> 0.0008s -- execute("ALTER TABLE builds ADD CONSTRAINT fk_new_builds_on_request_id FOREIGN KEY (request_id) REFERENCES requests(id) ON DELETE CASCADE NOT VALID") -> 0.0009s -- 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") -> 0.0008s -- execute("ALTER TABLE builds ADD CONSTRAINT fk_new_builds_on_branch_id FOREIGN KEY (branch_id) REFERENCES branches(id) ON DELETE CASCADE NOT VALID") -> 0.0012s -- execute("ALTER TABLE builds ADD CONSTRAINT fk_new_builds_on_tag_id FOREIGN KEY (tag_id) REFERENCES tags(id) ON DELETE CASCADE NOT VALID") -> 0.0012s -- 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") -> 0.0011s -- execute("ALTER TABLE jobs ADD CONSTRAINT fk_new_jobs_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) ON DELETE CASCADE NOT VALID") -> 0.0009s -- execute("ALTER TABLE jobs ADD CONSTRAINT fk_new_jobs_on_commit_id FOREIGN KEY (commit_id) REFERENCES commits(id) ON DELETE CASCADE NOT VALID") -> 0.0007s -- execute("ALTER TABLE jobs ADD CONSTRAINT fk_new_jobs_on_stage_id FOREIGN KEY (stage_id) REFERENCES stages(id) ON DELETE CASCADE NOT VALID") -> 0.0007s -- 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") -> 0.0007s -- execute("ALTER TABLE branches ADD CONSTRAINT fk_new_branches_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) ON DELETE CASCADE NOT VALID") -> 0.0008s -- execute("ALTER TABLE tags ADD CONSTRAINT fk_new_tags_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) ON DELETE CASCADE NOT VALID") -> 0.0007s -- execute("ALTER TABLE commits ADD CONSTRAINT fk_new_commits_on_repository_id FOREIGN KEY (repository_id) REFERENCES repositories(id) ON DELETE CASCADE NOT VALID") -> 0.0011s -- execute("ALTER TABLE commits ADD CONSTRAINT fk_new_commits_on_branch_id FOREIGN KEY (branch_id) REFERENCES branches(id) ON DELETE CASCADE NOT VALID") -> 0.0005s -- execute("ALTER TABLE commits ADD CONSTRAINT fk_new_commits_on_tag_id FOREIGN KEY (tag_id) REFERENCES tags(id) ON DELETE CASCADE NOT VALID") -> 0.0005s -- execute("ALTER TABLE crons ADD CONSTRAINT fk_new_crons_on_branch_id FOREIGN KEY (branch_id) REFERENCES branches(id) ON DELETE CASCADE NOT VALID") -> 0.0005s -- 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") -> 0.0005s -- 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") -> 0.0006s -- 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") -> 0.0006s -- 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") -> 0.0006s -- execute("ALTER TABLE requests ADD CONSTRAINT fk_new_requests_on_commit_id FOREIGN KEY (commit_id) REFERENCES commits(id) ON DELETE CASCADE NOT VALID") -> 0.0006s -- 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") -> 0.0005s -- execute("ALTER TABLE requests ADD CONSTRAINT fk_new_requests_on_branch_id FOREIGN KEY (branch_id) REFERENCES branches(id) ON DELETE CASCADE NOT VALID") -> 0.0006s -- execute("ALTER TABLE requests ADD CONSTRAINT fk_new_requests_on_tag_id FOREIGN KEY (tag_id) REFERENCES tags(id) ON DELETE CASCADE NOT VALID") -> 0.0006s -- 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") -> 0.0006s -- execute("ALTER TABLE stages ADD CONSTRAINT fk_new_stages_on_build_id FOREIGN KEY (build_id) REFERENCES builds(id) ON DELETE CASCADE NOT VALID") -> 0.0011s -- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_new_builds_on_repository_id") -> 0.0020s -- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_new_builds_on_commit_id") -> 0.0011s -- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_new_builds_on_request_id") -> 0.0011s -- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_new_builds_on_pull_request_id") -> 0.0009s -- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_new_builds_on_branch_id") -> 0.0009s -- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_new_builds_on_tag_id") -> 0.0009s -- execute("ALTER TABLE builds VALIDATE CONSTRAINT fk_new_builds_on_config_id") -> 0.0008s -- execute("ALTER TABLE jobs VALIDATE CONSTRAINT fk_new_jobs_on_repository_id") -> 0.0009s -- execute("ALTER TABLE jobs VALIDATE CONSTRAINT fk_new_jobs_on_commit_id") -> 0.0008s -- execute("ALTER TABLE jobs VALIDATE CONSTRAINT fk_new_jobs_on_stage_id") -> 0.0007s -- execute("ALTER TABLE jobs VALIDATE CONSTRAINT fk_new_jobs_on_config_id") -> 0.0008s -- execute("ALTER TABLE branches VALIDATE CONSTRAINT fk_new_branches_on_repository_id") -> 0.0007s -- execute("ALTER TABLE tags VALIDATE CONSTRAINT fk_new_tags_on_repository_id") -> 0.0007s -- execute("ALTER TABLE commits VALIDATE CONSTRAINT fk_new_commits_on_repository_id") -> 0.0007s -- execute("ALTER TABLE commits VALIDATE CONSTRAINT fk_new_commits_on_branch_id") -> 0.0006s -- execute("ALTER TABLE commits VALIDATE CONSTRAINT fk_new_commits_on_tag_id") -> 0.0007s -- execute("ALTER TABLE crons VALIDATE CONSTRAINT fk_new_crons_on_branch_id") -> 0.0007s -- execute("ALTER TABLE job_configs VALIDATE CONSTRAINT fk_new_job_configs_on_repository_id") -> 0.0008s -- execute("ALTER TABLE build_configs VALIDATE CONSTRAINT fk_new_build_configs_on_repository_id") -> 0.0007s -- execute("ALTER TABLE pull_requests VALIDATE CONSTRAINT fk_new_pull_requests_on_repository_id") -> 0.0008s -- execute("ALTER TABLE ssl_keys VALIDATE CONSTRAINT fk_new_ssl_keys_on_repository_id") -> 0.0007s -- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_new_requests_on_commit_id") -> 0.0008s -- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_new_requests_on_pull_request_id") -> 0.0008s -- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_new_requests_on_branch_id") -> 0.0007s -- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_new_requests_on_tag_id") -> 0.0007s -- execute("ALTER TABLE requests VALIDATE CONSTRAINT fk_new_requests_on_config_id") -> 0.0007s -- execute("ALTER TABLE stages VALIDATE CONSTRAINT fk_new_stages_on_build_id") -> 0.0009s -- execute("ALTER TABLE builds DROP CONSTRAINT fk_builds_on_repository_id") -> 0.0010s -- execute("ALTER TABLE builds DROP CONSTRAINT fk_builds_on_commit_id") -> 0.0008s -- execute("ALTER TABLE builds DROP CONSTRAINT fk_builds_on_request_id") -> 0.0007s -- execute("ALTER TABLE builds DROP CONSTRAINT fk_builds_on_pull_request_id") -> 0.0008s -- execute("ALTER TABLE builds DROP CONSTRAINT fk_builds_on_branch_id") -> 0.0049s -- execute("ALTER TABLE builds DROP CONSTRAINT fk_builds_on_tag_id") -> 0.0006s -- execute("ALTER TABLE builds DROP CONSTRAINT fk_builds_on_config_id") -> 0.0006s -- execute("ALTER TABLE jobs DROP CONSTRAINT fk_jobs_on_repository_id") -> 0.0006s -- execute("ALTER TABLE jobs DROP CONSTRAINT fk_jobs_on_commit_id") -> 0.0005s -- execute("ALTER TABLE jobs DROP CONSTRAINT fk_jobs_on_stage_id") -> 0.0009s -- execute("ALTER TABLE jobs DROP CONSTRAINT fk_jobs_on_config_id") -> 0.0011s -- execute("ALTER TABLE branches DROP CONSTRAINT fk_branches_on_repository_id") -> 0.0012s -- execute("ALTER TABLE tags DROP CONSTRAINT fk_tags_on_repository_id") -> 0.0010s -- execute("ALTER TABLE commits DROP CONSTRAINT fk_commits_on_repository_id") -> 0.0006s -- execute("ALTER TABLE commits DROP CONSTRAINT fk_commits_on_branch_id") -> 0.0005s -- execute("ALTER TABLE commits DROP CONSTRAINT fk_commits_on_tag_id") -> 0.0008s -- execute("ALTER TABLE crons DROP CONSTRAINT fk_crons_on_branch_id") -> 0.0006s -- execute("ALTER TABLE job_configs DROP CONSTRAINT fk_job_configs_on_repository_id") -> 0.0005s -- execute("ALTER TABLE build_configs DROP CONSTRAINT fk_build_configs_on_repository_id") -> 0.0005s -- execute("ALTER TABLE pull_requests DROP CONSTRAINT fk_pull_requests_on_repository_id") -> 0.0006s -- execute("ALTER TABLE ssl_keys DROP CONSTRAINT fk_ssl_keys_on_repository_id") -> 0.0010s -- execute("ALTER TABLE requests DROP CONSTRAINT fk_requests_on_commit_id") -> 0.0010s -- execute("ALTER TABLE requests DROP CONSTRAINT fk_requests_on_pull_request_id") -> 0.0009s -- execute("ALTER TABLE requests DROP CONSTRAINT fk_requests_on_branch_id") -> 0.0009s -- execute("ALTER TABLE requests DROP CONSTRAINT fk_requests_on_tag_id") -> 0.0022s -- execute("ALTER TABLE requests DROP CONSTRAINT fk_requests_on_config_id") -> 0.0005s -- execute("ALTER TABLE stages DROP CONSTRAINT fk_stages_on_build_id") -> 0.0005s -- execute("ALTER TABLE builds RENAME CONSTRAINT fk_new_builds_on_repository_id TO fk_builds_on_repository_id") -> 0.0004s -- execute("ALTER TABLE builds RENAME CONSTRAINT fk_new_builds_on_commit_id TO fk_builds_on_commit_id") -> 0.0004s -- execute("ALTER TABLE builds RENAME CONSTRAINT fk_new_builds_on_request_id TO fk_builds_on_request_id") -> 0.0004s -- execute("ALTER TABLE builds RENAME CONSTRAINT fk_new_builds_on_pull_request_id TO fk_builds_on_pull_request_id") -> 0.0003s -- execute("ALTER TABLE builds RENAME CONSTRAINT fk_new_builds_on_branch_id TO fk_builds_on_branch_id") -> 0.0003s -- execute("ALTER TABLE builds RENAME CONSTRAINT fk_new_builds_on_tag_id TO fk_builds_on_tag_id") -> 0.0003s -- execute("ALTER TABLE builds RENAME CONSTRAINT fk_new_builds_on_config_id TO fk_builds_on_config_id") -> 0.0004s -- execute("ALTER TABLE jobs RENAME CONSTRAINT fk_new_jobs_on_repository_id TO fk_jobs_on_repository_id") -> 0.0003s -- execute("ALTER TABLE jobs RENAME CONSTRAINT fk_new_jobs_on_commit_id TO fk_jobs_on_commit_id") -> 0.0004s -- execute("ALTER TABLE jobs RENAME CONSTRAINT fk_new_jobs_on_stage_id TO fk_jobs_on_stage_id") -> 0.0004s -- execute("ALTER TABLE jobs RENAME CONSTRAINT fk_new_jobs_on_config_id TO fk_jobs_on_config_id") -> 0.0004s -- execute("ALTER TABLE branches RENAME CONSTRAINT fk_new_branches_on_repository_id TO fk_branches_on_repository_id") -> 0.0003s -- execute("ALTER TABLE tags RENAME CONSTRAINT fk_new_tags_on_repository_id TO fk_tags_on_repository_id") -> 0.0004s -- execute("ALTER TABLE commits RENAME CONSTRAINT fk_new_commits_on_repository_id TO fk_commits_on_repository_id") -> 0.0003s -- execute("ALTER TABLE commits RENAME CONSTRAINT fk_new_commits_on_branch_id TO fk_commits_on_branch_id") -> 0.0003s -- execute("ALTER TABLE commits RENAME CONSTRAINT fk_new_commits_on_tag_id TO fk_commits_on_tag_id") -> 0.0003s -- execute("ALTER TABLE crons RENAME CONSTRAINT fk_new_crons_on_branch_id TO fk_crons_on_branch_id") -> 0.0003s -- execute("ALTER TABLE job_configs RENAME CONSTRAINT fk_new_job_configs_on_repository_id TO fk_job_configs_on_repository_id") -> 0.0003s -- execute("ALTER TABLE build_configs RENAME CONSTRAINT fk_new_build_configs_on_repository_id TO fk_build_configs_on_repository_id") -> 0.0003s -- execute("ALTER TABLE pull_requests RENAME CONSTRAINT fk_new_pull_requests_on_repository_id TO fk_pull_requests_on_repository_id") -> 0.0003s -- execute("ALTER TABLE ssl_keys RENAME CONSTRAINT fk_new_ssl_keys_on_repository_id TO fk_ssl_keys_on_repository_id") -> 0.0003s -- execute("ALTER TABLE requests RENAME CONSTRAINT fk_new_requests_on_commit_id TO fk_requests_on_commit_id") -> 0.0003s -- execute("ALTER TABLE requests RENAME CONSTRAINT fk_new_requests_on_pull_request_id TO fk_requests_on_pull_request_id") -> 0.0003s -- execute("ALTER TABLE requests RENAME CONSTRAINT fk_new_requests_on_branch_id TO fk_requests_on_branch_id") -> 0.0018s -- execute("ALTER TABLE requests RENAME CONSTRAINT fk_new_requests_on_tag_id TO fk_requests_on_tag_id") -> 0.0004s -- execute("ALTER TABLE requests RENAME CONSTRAINT fk_new_requests_on_config_id TO fk_requests_on_config_id") -> 0.0005s -- execute("ALTER TABLE stages RENAME CONSTRAINT fk_new_stages_on_build_id TO fk_stages_on_build_id") -> 0.0003s == 20190718092750 AddDeleteCascadeToForeignKeys: migrated (0.0827s) =========== == 20190718100426 UpdateSoftDeleteProcedure: migrating ======================== -- 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") -> 0.0017s == 20190718100426 UpdateSoftDeleteProcedure: migrated (0.0019s) =============== == 20190725103113 UpdateSoftDelete: migrating ================================= -- execute("create table deleted_request_yaml_configs (like request_yaml_configs)") -> 0.0046s -- 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") -> 0.0014s == 20190725103113 UpdateSoftDelete: migrated (0.0062s) ======================== == 20190725105934 AddOrgIdToConfigs: migrating ================================ -- add_column(:job_configs, :org_id, :bigint) -> 0.0010s -- add_column(:deleted_job_configs, :org_id, :bigint) -> 0.0010s -- add_column(:build_configs, :org_id, :bigint) -> 0.0009s -- add_column(:deleted_build_configs, :org_id, :bigint) -> 0.0009s -- add_column(:request_configs, :org_id, :bigint) -> 0.0009s -- add_column(:deleted_request_configs, :org_id, :bigint) -> 0.0013s -- add_column(:request_yaml_configs, :org_id, :bigint) -> 0.0009s -- add_column(:deleted_request_yaml_configs, :org_id, :bigint) -> 0.0010s -- add_column(:request_payloads, :org_id, :bigint) -> 0.0028s -- add_column(:deleted_request_payloads, :org_id, :bigint) -> 0.0009s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_job_configs_on_org_id ON job_configs (org_id)") -> 0.0041s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_build_configs_on_org_id ON build_configs (org_id)") -> 0.0039s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_request_configs_on_org_id ON request_configs (org_id)") -> 0.0042s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_request_yaml_configs_on_org_id ON request_yaml_configs (org_id)") -> 0.0040s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_request_payloads_on_org_id ON request_payloads (org_id)") -> 0.0040s == 20190725105934 AddOrgIdToConfigs: migrated (0.0322s) ======================= == 20190729105934 AddOrgAndComIdsToRawConfigs: migrating ====================== -- add_column(:request_raw_configs, :org_id, :bigint) -> 0.0012s -- add_column(:request_raw_configurations, :org_id, :bigint) -> 0.0012s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_request_raw_configs_on_org_id ON request_raw_configs (org_id)") -> 0.0040s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_request_raw_configurations_on_org_id ON request_raw_configurations (org_id)") -> 0.0036s == 20190729105934 AddOrgAndComIdsToRawConfigs: migrated (0.0102s) ============= == 20190801120510 AddMoreDeletedTables: migrating ============================= -- execute("create table if not exists deleted_request_raw_configs (like request_raw_configs)") -> 0.0032s -- execute("create table if not exists deleted_request_raw_configurations (like request_raw_configurations)") -> 0.0028s -- 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") -> 0.0018s == 20190801120510 AddMoreDeletedTables: migrated (0.0081s) ==================== == 20190815152336 AddComIdToMoreTables: migrating ============================= -- add_column(:request_configs, :com_id, :bigint) -> 0.0013s -- add_column(:request_yaml_configs, :com_id, :bigint) -> 0.0011s -- add_column(:deleted_request_configs, :com_id, :bigint) -> 0.0010s -- add_column(:deleted_request_yaml_configs, :com_id, :bigint) -> 0.0009s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_request_configs_on_com_id ON request_configs (com_id)") -> 0.0038s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_request_yaml_configs_on_com_id ON request_yaml_configs (com_id)") -> 0.0037s == 20190815152336 AddComIdToMoreTables: migrated (0.0123s) ==================== == 20190815164320 AddComIdToBuildConfigs: migrating =========================== -- add_column(:build_configs, :com_id, :bigint) -> 0.0011s -- add_column(:deleted_build_configs, :com_id, :bigint) -> 0.0011s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_build_configs_on_com_id ON build_configs (com_id)") -> 0.0039s == 20190815164320 AddComIdToBuildConfigs: migrated (0.0063s) ================== == 20190815172205 AddComIdToJobConfigs: migrating ============================= -- add_column(:job_configs, :com_id, :bigint) -> 0.0013s -- add_column(:deleted_job_configs, :com_id, :bigint) -> 0.0013s -- execute("CREATE UNIQUE INDEX CONCURRENTLY index_job_configs_on_com_id ON job_configs (com_id)") -> 0.0039s == 20190815172205 AddComIdToJobConfigs: migrated (0.0066s) ==================== == 20190819082558 AddVcsIdToUser: migrating =================================== -- add_column(:users, :vcs_id, :string, {:default=>nil}) -> 0.0018s -- execute("CREATE INDEX CONCURRENTLY index_users_on_vcs_id_and_vcs_type ON users (vcs_id, vcs_type);") -> 0.0039s == 20190819082558 AddVcsIdToUser: migrated (0.0058s) ========================== == 20190819082559 AddVcsIdToRepository: migrating ============================= -- add_column(:repositories, :vcs_id, :string, {:default=>nil}) -> 0.0017s -- execute("CREATE INDEX CONCURRENTLY index_repositories_on_vcs_id_and_vcs_type ON repositories (vcs_id, vcs_type);") -> 0.0041s == 20190819082559 AddVcsIdToRepository: migrated (0.0059s) ==================== == 20190820082431 AddVcsIdToOrganization: migrating =========================== -- add_column(:organizations, :vcs_id, :string, {:default=>nil}) -> 0.0020s -- execute("CREATE INDEX CONCURRENTLY index_organizations_on_vcs_id_and_vcs_type ON organizations (vcs_id, vcs_type);") -> 0.0041s == 20190820082431 AddVcsIdToOrganization: migrated (0.0063s) ================== == 20190913092543 CopyVcsIdForRepository: migrating =========================== -- select_value("SELECT id FROM repositories ORDER BY id DESC LIMIT 1") -> 0.0009s -- execute("UPDATE \"repositories\" SET vcs_id = github_id WHERE id BETWEEN 0 AND 5000") -> 0.0009s == 20190913092543 CopyVcsIdForRepository: migrated (0.0023s) ================== == 20190913092554 CopyVcsIdForUser: migrating ================================= -- select_value("SELECT id FROM users ORDER BY id DESC LIMIT 1") -> 0.0008s -- execute("UPDATE \"users\" SET vcs_id = github_id WHERE id BETWEEN 0 AND 5000") -> 0.0015s == 20190913092554 CopyVcsIdForUser: migrated (0.0033s) ======================== == 20190913092565 CopyVcsIdForOrganization: migrating ========================= -- select_value("SELECT id FROM organizations ORDER BY id DESC LIMIT 1") -> 0.0014s -- execute("UPDATE \"organizations\" SET vcs_id = github_id WHERE id BETWEEN 0 AND 5000") -> 0.0018s == 20190913092565 CopyVcsIdForOrganization: migrated (0.0048s) ================ == 20190920160300 MessagesAddTypeSourceLine: migrating ======================== -- add_column(:messages, :type, :string, {:default=>nil}) -> 0.0025s -- add_column(:messages, :src, :string, {:default=>nil}) -> 0.0024s -- add_column(:messages, :line, :integer, {:default=>nil}) -> 0.0022s == 20190920160300 MessagesAddTypeSourceLine: migrated (0.0076s) =============== == 20191112000000 ReposAddFork: migrating ===================================== -- add_column(:repositories, :fork, :boolean, {:default=>nil}) -> 0.0026s == 20191112000000 ReposAddFork: migrated (0.0028s) ============================ == 20191112172015 AddVcsIndexToRepositories: migrating ======================== -- add_index(:repositories, [:vcs_type, :vcs_id], {:algorithm=>:concurrently}) -> 0.0054s == 20191112172015 AddVcsIndexToRepositories: migrated (0.0056s) =============== == 20191112172332 AddVcsIndexToUsers: migrating =============================== -- add_index(:users, [:vcs_type, :vcs_id], {:algorithm=>:concurrently}) -> 0.0047s == 20191112172332 AddVcsIndexToUsers: migrated (0.0048s) ====================== == 20191219091445 AddHeadRepoVcsIdToPullRequest: migrating ==================== -- add_column(:pull_requests, :head_repo_vcs_id, :string, {:default=>nil}) -> 0.0032s -- execute("CREATE INDEX CONCURRENTLY index_pull_requests_on_head_repo_vcs_id ON pull_requests (head_repo_vcs_id);") -> 0.0062s == 20191219091445 AddHeadRepoVcsIdToPullRequest: migrated (0.0095s) =========== == 20191219091446 AddHeadRepoVcsIdToDeletedPullRequest: migrating ============= -- add_column(:deleted_pull_requests, :head_repo_vcs_id, :string, {:default=>nil}) -> 0.0018s -- execute("CREATE INDEX CONCURRENTLY index_deleted_pull_requests_on_head_repo_vcs_id ON deleted_pull_requests (head_repo_vcs_id);") -> 0.0039s == 20191219091446 AddHeadRepoVcsIdToDeletedPullRequest: migrated (0.0059s) ==== == 20200122000000 AddConfigsJson: migrating =================================== -- add_column(:request_configs, :config_json, :json) -> 0.0023s -- add_column(:build_configs, :config_json, :json) -> 0.0012s -- add_column(:job_configs, :config_json, :json) -> 0.0013s -- add_column(:deleted_request_configs, :config_json, :json) -> 0.0013s -- add_column(:deleted_build_configs, :config_json, :json) -> 0.0013s -- add_column(:deleted_job_configs, :config_json, :json) -> 0.0012s == 20200122000000 AddConfigsJson: migrated (0.0097s) ========================== == 20200127000000 DropJobConfigsGpu: migrating ================================ -- execute("DROP MATERIALIZED VIEW job_configs_gpu\n") -> 0.0019s == 20200127000000 DropJobConfigsGpu: migrated (0.0022s) ======================= == 20200127000001 RenameConfigsJson: migrating ================================ -- remove_column(:request_configs, :config) -> 0.0018s -- rename_column(:request_configs, :config_json, :config) -> 0.0048s -- remove_column(:build_configs, :config) -> 0.0031s -- rename_column(:build_configs, :config_json, :config) -> 0.0062s -- remove_column(:job_configs, :config) -> 0.0010s -- rename_column(:job_configs, :config_json, :config) -> 0.0053s -- remove_column(:deleted_request_configs, :config) -> 0.0011s -- rename_column(:deleted_request_configs, :config_json, :config) -> 0.0020s -- remove_column(:deleted_build_configs, :config) -> 0.0010s -- rename_column(:deleted_build_configs, :config_json, :config) -> 0.0022s -- remove_column(:deleted_job_configs, :config) -> 0.0005s -- rename_column(:deleted_job_configs, :config_json, :config) -> 0.0012s == 20200127000001 RenameConfigsJson: migrated (0.0325s) ======================= == 20200214144655 AddIndexToJobVersionsOnJobId: migrating ===================== -- add_index(:job_versions, :job_id, {:algorithm=>:concurrently}) -> 0.0045s == 20200214144655 AddIndexToJobVersionsOnJobId: migrated (0.0046s) ============ == 20200225085734 AddVcsSlugToRepository: migrating =========================== -- add_column(:repositories, :vcs_slug, :string, {:default=>nil}) -> 0.0018s == 20200225085734 AddVcsSlugToRepository: migrated (0.0019s) ================== == 20200227085734 AddVcsSourceHostToRepository: migrating ===================== -- add_column(:repositories, :vcs_source_host, :string, {:default=>nil}) -> 0.0018s == 20200227085734 AddVcsSourceHostToRepository: migrated (0.0019s) ============ == 20200227085736 AddVcsIndexes: migrating ==================================== -- 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") -> 0.0052s == 20200227085736 AddVcsIndexes: migrated (0.0053s) =========================== == 20200227085737 AddRepositoryNameAndSlugIndex: migrating ==================== -- execute("CREATE INDEX CONCURRENTLY index_repositories_on_slug_or_names ON repositories (vcs_slug, owner_name, name) WHERE invalidated_at IS NULL") -> 0.0048s == 20200227085737 AddRepositoryNameAndSlugIndex: migrated (0.0048s) =========== == 20200227085742 AddPullRequestSourceData: migrating ========================= -- add_column(:pull_requests, :base_repo_slug, :string, {:default=>nil}) -> 0.0018s -- add_column(:pull_requests, :base_repo_vcs_id, :string, {:default=>nil}) -> 0.0018s -- add_column(:pull_requests, :base_ref, :string, {:default=>nil}) -> 0.0016s -- add_column(:deleted_pull_requests, :base_repo_slug, :string, {:default=>nil}) -> 0.0015s -- add_column(:deleted_pull_requests, :base_repo_vcs_id, :string, {:default=>nil}) -> 0.0015s -- add_column(:deleted_pull_requests, :base_ref, :string, {:default=>nil}) -> 0.0015s == 20200227085742 AddPullRequestSourceData: migrated (0.0101s) ================ == 20200312184018 AddUserUtmParamsTable: migrating ============================ -- create_table(:user_utm_params) -> 0.0091s == 20200312184018 AddUserUtmParamsTable: migrated (0.0092s) =================== == 20200316085738 AddRepositoryVcsSlugIndex: migrating ======================== -- execute("CREATE INDEX CONCURRENTLY index_repositories_on_lower_vcs_slug ON repositories (LOWER(vcs_slug))") -> 0.0049s -- execute("CREATE INDEX CONCURRENTLY index_repositories_on_lower_vcs_slug_valid ON repositories (LOWER(vcs_slug)) WHERE invalidated_at IS NULL") -> 0.0051s == 20200316085738 AddRepositoryVcsSlugIndex: migrated (0.0101s) =============== == 20200325115329 AddMultipleJobStateIndexesOrderByNewest: migrating ========== -- 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'") -> 0.0045s -- 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'") -> 0.0048s -- 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'") -> 0.0045s -- 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'") -> 0.0045s -- 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'") -> 0.0052s -- 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'") -> 0.0056s -- 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'") -> 0.0050s -- 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'") -> 0.0066s -- 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'") -> 0.0060s == 20200325115329 AddMultipleJobStateIndexesOrderByNewest: migrated (0.0472s) = == 20200325130013 AddFunctionMostRecentJobIdsForUserRepositoriesByStates: migrating -- 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 ") -> 0.0014s == 20200325130013 AddFunctionMostRecentJobIdsForUserRepositoriesByStates: migrated (0.0015s) == 20200330110527 AddFunctionMostRecentJobIdsForRepositoryByState: migrating == -- 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 ") -> 0.0010s == 20200330110527 AddFunctionMostRecentJobIdsForRepositoryByState: migrated (0.0011s) == 20200406121218 AddIndexJobsOnRepositoryIdOrderByNewest: migrating ========== -- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_jobs_on_repository_id_order_by_newest on jobs (repository_id, id desc)") -> 0.0043s == 20200406121218 AddIndexJobsOnRepositoryIdOrderByNewest: migrated (0.0044s) = == 20200424000000 RequestRawConfigurationsAddMergeMode: migrating ============= -- add_column(:request_raw_configurations, :merge_mode, :string, {:default=>nil}) -> 0.0021s -- add_column(:deleted_request_raw_configurations, :merge_mode, :string, {:default=>nil}) -> 0.0014s == 20200424000000 RequestRawConfigurationsAddMergeMode: migrated (0.0036s) ==== == 20200527123653 AddColumnPriorityToTableJobsAndDeletedJobs: migrating ======= -- add_column(:jobs, :priority, :integer, {:default=>nil}) -> 0.0023s -- add_column(:deleted_jobs, :priority, :integer, {:default=>nil}) -> 0.0013s == 20200527123653 AddColumnPriorityToTableJobsAndDeletedJobs: migrated (0.0036s) == 20200928143126 AddBuildTriggerPermissions: migrating ======================= -- add_column(:memberships, :build_permission, :boolean, {:default=>nil}) -> 0.0019s -- add_column(:permissions, :build, :boolean, {:default=>nil}) -> 0.0014s == 20200928143126 AddBuildTriggerPermissions: migrated (0.0033s) ============== == 20202427123653 AddColumnHasLocalRegistrationToTableSubscriptions: migrating -- add_column(:subscriptions, :has_local_registration, :boolean, {:default=>nil}) -> 0.0028s == 20202427123653 AddColumnHasLocalRegistrationToTableSubscriptions: migrated (0.0028s) == 20210203130200 CreateBuildBackupsTable: migrating ========================== -- create_table(:build_backups, {:id=>:integer}) -> 0.0089s == 20210203130200 CreateBuildBackupsTable: migrated (0.0090s) ================= == 20210203143155 AddConfirmationFieldsToUser: migrating ====================== -- add_column(:users, :confirmed_at, :timestamp, {:precision=>nil}) -> 0.0013s -- add_column(:users, :token_expires_at, :timestamp, {:precision=>nil}) -> 0.0012s -- add_column(:users, :confirmation_token, :string) -> 0.0013s -- add_index(:users, :confirmation_token) -> 0.0030s == 20210203143155 AddConfirmationFieldsToUser: migrated (0.0069s) ============= == 20210203143406 ConfirmCurrentUsers: migrating ============================== == 20210203143406 ConfirmCurrentUsers: migrated (0.0000s) ===================== == 20210614140633 AddServerTypeToRepositories: migrating ====================== -- add_column(:repositories, :server_type, :string, {:limit=>20}) -> 0.0013s == 20210614140633 AddServerTypeToRepositories: migrated (0.0014s) ============= == 20220610092916 MostRecentJobIdsForUserRepositoriesByStatesLw: migrating ==== -- 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 ") -> 0.0009s == 20220610092916 MostRecentJobIdsForUserRepositoriesByStatesLw: migrated (0.0009s) == 20220621151453 AddColumnRestartedByToTableJobs: migrating ================== -- add_column(:jobs, :restarted_by, :integer, {:default=>nil}) -> 0.0013s -- add_column(:deleted_jobs, :restarted_by, :integer, {:default=>nil}) -> 0.0008s == 20220621151453 AddColumnRestartedByToTableJobs: migrated (0.0021s) ========= == 20220722162400 CreateAuditsTable: migrating ================================ -- create_table(:audits) -> 0.0074s == 20220722162400 CreateAuditsTable: migrated (0.0075s) ======================= == 20220825140522 CreateCustomKeysTable: migrating ============================ -- create_table(:custom_keys) -> 0.0063s == 20220825140522 CreateCustomKeysTable: migrated (0.0063s) =================== == 20220905144600 AddScanFailedAtToRepositories: migrating ==================== -- add_column(:repositories, :scan_failed_at, :timestamp) -> 0.0009s == 20220905144600 AddScanFailedAtToRepositories: migrated (0.0010s) =========== == 20221214171030 AddPurposeColumnToTokens: migrating ========================= -- add_column(:tokens, :purpose, :integer, {:limit=>4, :default=>0}) -> 0.0011s == 20221214171030 AddPurposeColumnToTokens: migrated (0.0012s) ================ == 20230208161446 AddCloneUrlToRepositories: migrating ======================== -- add_column(:repositories, :clone_url, :string) -> 0.0008s == 20230208161446 AddCloneUrlToRepositories: migrated (0.0009s) =============== == 20230505055250 RolifyCreateRoles: migrating ================================ -- create_table(:roles) -> 0.0083s -- create_table(:role_names) -> 0.0062s -- create_table(:users_roles, {:id=>false}) -> 0.0048s -- add_index(:roles, :name) -> 0.0022s -- add_index(:role_names, :name) -> 0.0020s -- add_index(:roles, [:name, :resource_type, :resource_id]) -> 0.0021s -- add_index(:users_roles, [:user_id, :role_id]) -> 0.0022s == 20230505055250 RolifyCreateRoles: migrated (0.0281s) ======================= == 20230505060110 CreatePolicies: migrating =================================== -- create_table(:policy_permissions) -> 0.0063s -- create_table(:role_permissions, {:id=>false}) -> 0.0056s -- add_index(:policy_permissions, :name) -> 0.0023s -- add_index(:role_permissions, [:role_name_id, :policy_permission_id]) -> 0.0021s == 20230505060110 CreatePolicies: migrated (0.0164s) ========================== == 20230713115855 CreatePermissionsSync: migrating ============================ -- create_table(:permissions_syncs) -> 0.0119s == 20230713115855 CreatePermissionsSync: migrated (0.0119s) =================== == 20231005111642 CreatePermissionsIndex: migrating =========================== -- add_index(:permissions_syncs, [:user_id, :resource_type, :resource_id], {:name=>"index_permissions_syncs_on_user_and_resource"}) -> 0.0029s -- add_index(:role_names, :role_type) -> 0.0023s == 20231005111642 CreatePermissionsIndex: migrated (0.0053s) ================== == 20240823085523 AddVmsizeToJobs: migrating ================================== -- add_column(:jobs, :vm_size, :string) -> 0.0010s -- add_column(:deleted_jobs, :vm_size, :string) -> 0.0005s == 20240823085523 AddVmsizeToJobs: migrated (0.0016s) ========================= sets unique_number on INSERT does not set unique_number on INSERT if 0 is given as a value sets unique_number on UPDATE does not set unique_number on UPDATE if unique_number is 0 set_updated_at trigger jobs sets updated_at on INSERT sets updated_at on UPDATE works also for new columns builds sets updated_at on INSERT sets updated_at on UPDATE works also for new columns soft delete repo ensure that soft delete tables have the same fields that the originals soft deleting a repo moves all of the related data to deleted_* tables Rake tasks rake db:create migrates the main db rake db:schema:load loads the main schema Deprecation Warnings: Using `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)>'. If you need more of the backtrace for any of these deprecations to identify where to make the necessary changes, you can configure `config.raise_errors_for_deprecations!`, and it will turn the deprecation warnings into errors, giving you the full backtrace. 1 deprecation warning total Finished in 42.71 seconds (files took 0.3619 seconds to load) 19 examples, 0 failures travis_time:end:0f7793b8:start=1738808805774773470,finish=1738808849220148688,duration=43445375218,event=script [0K[32;1mThe command "bundle exec rspec spec" exited with 0.[0m travis_fold:start:cache.2 [0Kstore build cache travis_time:start:089021a5 [0Ktravis_time:end:089021a5:start=1738808849228984822,finish=1738808849233392521,duration=4407699,event=cache [0Ktravis_time:start:0322985b [0K[32;1mnothing changed[0m travis_time:end:0322985b:start=1738808849238778535,finish=1738808850744485487,duration=1505706952,event=cache [0Ktravis_fold:end:cache.2 [0K travis_fold:start:after_success [0Ktravis_time:start:0895976a [0K$ script/upload_structure.rb <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) 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' from script/upload_structure.rb:5:in `<main>' travis_time:end:0895976a:start=1738808850751653012,finish=1738808850957308660,duration=205655648,event=after_success [0Ktravis_fold:end:after_success [0K Done. Your build exited with 0.