Issues with upgrade from 10.02 to 10.7.3
Summary
Update from 10.0.2 to current completes, but all repositories show
500
Whoops, something went wrong on our end.
Apart from gitlab-ce, everything else is up to date
An offline checkpoint was taken before the update, and the issue is repeatable from the checkpoint
Steps to reproduce
sudo apt-get update && sudo apt-get dist-upgrade
What is the current bug behavior?
The errors start at
Running handlers:
There was an error running gitlab-ctl reconfigure:
Using username "xclocal".
xclocal@gitlab-1's password:
Welcome to Ubuntu 16.04.4 LTS (GNU/Linux 4.4.0-122-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
1 package can be updated.
0 updates are security updates.
Last login: Fri May 4 09:29:18 2018 from 192.168.53.165
xclocal@gitlab-1:~$ sudo apt-get update && sudo apt-get dist-upgrade
[sudo] password for xclocal:
Hit:1 http://gb.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]
Get:3 http://gb.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:4 http://gb.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:5 http://gb.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [767 kB]
Get:6 http://gb.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [708 kB]
Get:7 http://gb.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [624 kB]
Get:8 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [344 kB]
Get:9 http://gb.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [575 kB]
Get:10 http://security.ubuntu.com/ubuntu xenial-security/universe i386 Packages [299 kB]
Get:11 http://gb.archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [252 kB]
Get:12 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [129 kB]
Hit:13 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu xenial InRelease
Fetched 4,021 kB in 3s (1,251 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
gitlab-ce
1 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
Need to get 407 MB of archives.
After this operation, 193 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu xenial/main amd64 gitlab-ce amd64 10.7.3-ce.0 [407 MB]
Fetched 407 MB in 47s (8,530 kB/s)
(Reading database ... 132397 files and directories currently installed.)
Preparing to unpack .../gitlab-ce_10.7.3-ce.0_amd64.deb ...
gitlab preinstall: Automatically backing up only the GitLab SQL database (excluding everything else!)
Dumping database ...
Dumping PostgreSQL database gitlabhq_production ... [DONE]
done
Dumping repositories ...
[SKIPPED]
Dumping uploads ...
[SKIPPED]
Dumping builds ...
[SKIPPED]
Dumping artifacts ...
[SKIPPED]
Dumping pages ...
[SKIPPED]
Dumping lfs objects ...
[SKIPPED]
Dumping container registry images ...
[DISABLED]
Creating backup archive: 1525426054_2018_05_04_10.0.2_gitlab_backup.tar ... done
Uploading backup archive to remote storage ... skipped
Deleting tmp directories ... done
done
Deleting old backups ... skipping
Unpacking gitlab-ce (10.7.3-ce.0) over (10.0.2-ce.0) ...
Setting up gitlab-ce (10.7.3-ce.0) ...
Checking PostgreSQL executables:Starting Chef Client, version 13.6.4
resolving cookbooks for run list: ["gitlab::config", "postgresql::bin"]
Synchronizing Cookbooks:
- gitlab (0.0.1)
- postgresql (0.1.0)
- registry (0.1.0)
- package (0.1.0)
- consul (0.0.0)
- mattermost (0.1.0)
- gitaly (0.1.0)
- letsencrypt (0.1.0)
- runit (0.14.2)
- nginx (0.1.0)
- acme (3.1.0)
- crond (0.1.0)
- compat_resource (12.19.0)
Installing Cookbook Gems:
Compiling Cookbooks...
Converging 1 resources
Recipe: postgresql::bin
* ruby_block[Link postgresql bin files to the correct version] action run (skipped due to only_if)
Running handlers:
Running handlers complete
Chef Client finished, 0/1 resources updated in 11 seconds
Checking PostgreSQL executables: OK
Shutting down all GitLab services except those needed for migrations
ok: down: gitaly: 1s, normally up
ok: down: gitlab-monitor: 0s, normally up
ok: down: gitlab-workhorse: 1s, normally up
ok: down: logrotate: 0s, normally up
ok: down: nginx: 1s, normally up
ok: down: node-exporter: 0s, normally up
ok: down: postgres-exporter: 0s, normally up
ok: down: postgresql: 1s, normally up
ok: down: prometheus: 0s, normally up
ok: down: redis: 1s, normally up
ok: down: redis-exporter: 0s, normally up
ok: down: sidekiq: 0s, normally up
ok: down: unicorn: 0s, normally up
ok: run: postgresql: (pid 12006) 1s
ok: run: redis: (pid 12014) 0s
run: postgresql: (pid 12006) 1s; run: log: (pid 971) 399s
run: redis: (pid 12014) 0s; run: log: (pid 1010) 399s
Reconfiguring GitLab to apply migrations
Starting Chef Client, version 13.6.4
resolving cookbooks for run list: ["gitlab"]
Synchronizing Cookbooks:
- gitlab (0.0.1)
- package (0.1.0)
- postgresql (0.1.0)
- mattermost (0.1.0)
- consul (0.0.0)
- gitaly (0.1.0)
- letsencrypt (0.1.0)
- registry (0.1.0)
- runit (0.14.2)
- nginx (0.1.0)
- acme (3.1.0)
- crond (0.1.0)
- compat_resource (12.19.0)
Installing Cookbook Gems:
Compiling Cookbooks...
Recipe: gitlab::default
* directory[/etc/gitlab] action create (up to date)
Converging 415 resources
* directory[/etc/gitlab] action create (up to date)
* directory[Create /var/opt/gitlab] action create (up to date)
* directory[/opt/gitlab/embedded/etc] action create (up to date)
* template[/opt/gitlab/embedded/etc/gitconfig] action create
- update content in file /opt/gitlab/embedded/etc/gitconfig from 5fe039 to 987af3
--- /opt/gitlab/embedded/etc/gitconfig 2017-01-17 23:09:29.977397940 +0000
+++ /opt/gitlab/embedded/etc/.chef-gitconfig20180504-12021-v33gpn 2018-05-04 10:31:21.956359379 +0100
@@ -2,6 +2,7 @@
threads = 1
[receive]
fsckObjects = true
+advertisePushOptions = true
[repack]
writeBitmaps = true
[transfer]
Recipe: gitlab::web-server
* account[Webserver user and group] action create
* group[Webserver user and group] action create (up to date)
* linux_user[Webserver user and group] action create (up to date)
(up to date)
Recipe: gitlab::users
* directory[/var/opt/gitlab] action create (up to date)
* account[GitLab user and group] action create
* group[GitLab user and group] action create (up to date)
* linux_user[GitLab user and group] action create (up to date)
(up to date)
* template[/var/opt/gitlab/.gitconfig] action create (up to date)
Recipe: gitlab::gitlab-shell
* storage_directory[/var/opt/gitlab/.ssh] action create
* ruby_block[directory resource: /var/opt/gitlab/.ssh] action run (skipped due to not_if)
(up to date)
* directory[/var/log/gitlab/gitlab-shell/] action create (up to date)
* directory[/var/opt/gitlab/gitlab-shell] action create (up to date)
* templatesymlink[Create a config.yml and create a symlink to Rails root] action create
* template[/var/opt/gitlab/gitlab-shell/config.yml] action create
- update content in file /var/opt/gitlab/gitlab-shell/config.yml from cce2bf to d824f9
--- /var/opt/gitlab/gitlab-shell/config.yml 2017-05-24 23:46:08.891689259 +0100
+++ /var/opt/gitlab/gitlab-shell/.chef-config20180504-12021-s0fg6i.yml 2018-05-04 10:31:22.260355168 +0100
@@ -21,7 +21,6 @@
# Redis settings used for pushing commit notices to gitlab
redis:
- bin: /opt/gitlab/embedded/bin/redis-cli
host: 127.0.0.1
port:
socket: /var/opt/gitlab/redis/redis.socket
@@ -34,6 +33,7 @@
# Log level. INFO by default
log_level:
+
# Audit usernames.
# Set to true to see real usernames in the logs instead of key ids, which is easier to follow, but
* link[Link /opt/gitlab/embedded/service/gitlab-shell/config.yml to /var/opt/gitlab/gitlab-shell/config.yml] action create (up to date)
* link[/opt/gitlab/embedded/service/gitlab-shell/.gitlab_shell_secret] action create (up to date)
* execute[/opt/gitlab/embedded/service/gitlab-shell/bin/gitlab-keys check-permissions] action run
- execute /opt/gitlab/embedded/service/gitlab-shell/bin/gitlab-keys check-permissions
* bash[Set proper security context on ssh files for selinux] action run (skipped due to only_if)
Recipe: gitlab::gitlab-rails
* storage_directory[/var/opt/gitlab/git-data] action create
* ruby_block[directory resource: /var/opt/gitlab/git-data] action run (skipped due to not_if)
(up to date)
* storage_directory[/var/opt/gitlab/git-data/repositories] action create
* ruby_block[directory resource: /var/opt/gitlab/git-data/repositories] action run (skipped due to not_if)
(up to date)
* directory[/var/log/gitlab] action create (up to date)
* storage_directory[/var/opt/gitlab/gitlab-rails/shared] action create
* ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared] action run (skipped due to not_if)
(up to date)
* storage_directory[/var/opt/gitlab/gitlab-rails/shared/artifacts] action create
* ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/artifacts] action run (skipped due to not_if)
(up to date)
* storage_directory[/var/opt/gitlab/gitlab-rails/shared/lfs-objects] action create
* ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/lfs-objects] action run (skipped due to not_if)
(up to date)
* storage_directory[/var/opt/gitlab/gitlab-rails/uploads] action create
* ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/uploads] action run (skipped due to not_if)
(up to date)
* storage_directory[/var/opt/gitlab/gitlab-ci/builds] action create
* ruby_block[directory resource: /var/opt/gitlab/gitlab-ci/builds] action run (skipped due to not_if)
(up to date)
* storage_directory[/var/opt/gitlab/gitlab-rails/shared/cache] action create
* ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/cache] action run
- execute the ruby block directory resource: /var/opt/gitlab/gitlab-rails/shared/cache
* storage_directory[/var/opt/gitlab/gitlab-rails/shared/tmp] action create
* ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/tmp] action run
- execute the ruby block directory resource: /var/opt/gitlab/gitlab-rails/shared/tmp
* storage_directory[/var/opt/gitlab/gitlab-rails/shared/pages] action create
* ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/pages] action run (skipped due to not_if)
(up to date)
* directory[create /var/opt/gitlab/gitlab-rails/etc] action create (up to date)
* directory[create /opt/gitlab/etc/gitlab-rails] action create (up to date)
* directory[create /var/opt/gitlab/gitlab-rails/working] action create (up to date)
* directory[create /var/opt/gitlab/gitlab-rails/tmp] action create (up to date)
* directory[create /var/opt/gitlab/gitlab-rails/upgrade-status] action create (up to date)
* directory[create /var/log/gitlab/gitlab-rails] action create (up to date)
* storage_directory[/var/opt/gitlab/backups] action create
* ruby_block[directory resource: /var/opt/gitlab/backups] action run (skipped due to not_if)
(up to date)
* directory[/var/opt/gitlab/gitlab-rails] action create (up to date)
* directory[/var/opt/gitlab/gitlab-ci] action create (up to date)
* file[/var/opt/gitlab/gitlab-rails/etc/gitlab-registry.key] action create (skipped due to only_if)
* template[/opt/gitlab/etc/gitlab-rails/gitlab-rails-rc] action create (up to date)
* file[/opt/gitlab/embedded/service/gitlab-rails/.secret] action delete (up to date)
* file[/var/opt/gitlab/gitlab-rails/etc/secret] action delete (up to date)
* templatesymlink[Create a database.yml and create a symlink to Rails root] action create
* template[/var/opt/gitlab/gitlab-rails/etc/database.yml] action create
- update content in file /var/opt/gitlab/gitlab-rails/etc/database.yml from 9e294f to 00a743
--- /var/opt/gitlab/gitlab-rails/etc/database.yml 2017-10-03 11:33:18.996979797 +0100
+++ /var/opt/gitlab/gitlab-rails/etc/.chef-database20180504-12021-v4jzur.yml 2018-05-04 10:31:23.508337880 +0100
@@ -17,6 +17,7 @@
sslrootcert:
sslca:
load_balancing: {"hosts":[]}
- prepared_statements: true
+ prepared_statements: false
statements_limit: 1000
+ fdw:
* link[Link /opt/gitlab/embedded/service/gitlab-rails/config/database.yml to /var/opt/gitlab/gitlab-rails/etc/database.yml] action create (up to date)
* templatesymlink[Create a secrets.yml and create a symlink to Rails root] action create
* template[/var/opt/gitlab/gitlab-rails/etc/secrets.yml] action create
- update content in file /var/opt/gitlab/gitlab-rails/etc/secrets.yml from 718e4c to f7ed4e
- suppressed sensitive resource
* link[Link /opt/gitlab/embedded/service/gitlab-rails/config/secrets.yml to /var/opt/gitlab/gitlab-rails/etc/secrets.yml] action create (up to date)
* templatesymlink[Create a resque.yml and create a symlink to Rails root] action create
* template[/var/opt/gitlab/gitlab-rails/etc/resque.yml] action create (up to date)
* link[Link /opt/gitlab/embedded/service/gitlab-rails/config/resque.yml to /var/opt/gitlab/gitlab-rails/etc/resque.yml] action create (up to date)
(up to date)
* templatesymlink[Create a redis.cache.yml and create a symlink to Rails root] action create (skipped due to not_if)
* templatesymlink[Create a redis.queues.yml and create a symlink to Rails root] action create (skipped due to not_if)
* templatesymlink[Create a redis.shared_state.yml and create a symlink to Rails root] action create (skipped due to not_if)
* templatesymlink[Create a aws.yml and create a symlink to Rails root] action delete
* template[/var/opt/gitlab/gitlab-rails/etc/aws.yml] action delete (up to date)
* link[Link /opt/gitlab/embedded/service/gitlab-rails/config/aws.yml to /var/opt/gitlab/gitlab-rails/etc/aws.yml] action delete (up to date)
(up to date)
* templatesymlink[Create a smtp_settings.rb and create a symlink to Rails root] action delete
* template[/var/opt/gitlab/gitlab-rails/etc/smtp_settings.rb] action delete (up to date)
* link[Link /opt/gitlab/embedded/service/gitlab-rails/config/initializers/smtp_settings.rb to /var/opt/gitlab/gitlab-rails/etc/smtp_settings.rb] action delete (up to date)
(up to date)
* templatesymlink[Create a gitlab.yml and create a symlink to Rails root] action create
* template[/var/opt/gitlab/gitlab-rails/etc/gitlab.yml] action create
- update content in file /var/opt/gitlab/gitlab-rails/etc/gitlab.yml from d83761 to 98a840
--- /var/opt/gitlab/gitlab-rails/etc/gitlab.yml 2017-10-03 11:33:19.124979977 +0100
+++ /var/opt/gitlab/gitlab-rails/etc/.chef-gitlab20180504-12021-1vultml.yml 2018-05-04 10:31:23.628336218 +0100
@@ -122,6 +122,9 @@
path: /var/opt/gitlab/gitlab-rails/shared/artifacts
object_store:
enabled: false
+ direct_upload: false
+ background_upload: true
+ proxy_download: false
remote_directory: "artifacts"
connection: {}
@@ -132,10 +135,24 @@
storage_path: /var/opt/gitlab/gitlab-rails/shared/lfs-objects
object_store:
enabled: false
+ direct_upload: false
background_upload: true
+ proxy_download: false
remote_directory: "lfs-objects"
connection: {}
+ ## Uploads
+ uploads:
+ # The location where uploads objects are stored (default: public/).
+ storage_path: /opt/gitlab/embedded/service/gitlab-rails/public
+ object_store:
+ enabled: false
+ direct_upload: false
+ background_upload: true
+ proxy_download: false
+ remote_directory: "uploads"
+ connection: {}
+
## Container Registry
registry:
enabled: false
@@ -159,6 +176,7 @@
https: false
external_http: null
external_https: null
+ artifacts_server: true
## Gravatar
## For Libravatar see: https://docs.gitlab.com/ce/customization/libravatar.html
@@ -167,6 +185,10 @@
plain_url: # default: http://www.gravatar.com/avatar/%{hash}?s=%{size}&d=identicon
ssl_url: # default: https://secure.gravatar.com/avatar/%{hash}?s=%{size}&d=identicon
+ ## Sidekiq
+ sidekiq:
+ log_format: default
+
## Auxiliary jobs
# Periodically executed jobs, to self-heal GitLab, do external synchronizations, etc.
# Please read here for more information: https://github.com/ondrejbartas/sidekiq-cron#adding-cron-job
@@ -192,6 +214,10 @@
repository_archive_cache_worker:
cron:
+ # Verify custom GitLab Pages domains
+ pages_domain_verification_cron_worker:
+ cron:
+
##
# GitLab EE only jobs:
@@ -210,6 +236,15 @@
# GitLab Geo file download dispatch worker
# NOTE: This will only take effect if Geo is enabled
+ # GitLab Geo repository verification primary batch worker
+ # NOTE: This will only take effect if Geo is enabled
+
+ # GitLab Geo repository verification secondary scheduler worker
+ # NOTE: This will only take effect if Geo is enabled
+
+ # GitLab Geo migrated local files clean up worker
+ # NOTE: This will only take effect if Geo is enabled (secondary nodes only)
+
#
# 2. GitLab CI settings
# ==========================
@@ -335,6 +370,7 @@
# Eventually Gitaly use will become mandatory and
# this option will disappear.
gitaly:
+ client_path: /opt/gitlab/embedded/bin
token: ""
@@ -346,7 +382,7 @@
repositories:
# Paths where repositories can be stored. Give the canonicalized absolute pathname.
# NOTE: REPOS PATHS MUST NOT CONTAIN ANY SYMLINK!!!
- storages: {"default":{"path":"/var/opt/gitlab/git-data/repositories","gitaly_address":"unix:/var/opt/gitlab/gitaly/gitaly.socket","failure_count_threshold":10,"failure_wait_time":30,"failure_reset_time":1800,"storage_timeout":30}}
+ storages: {"default":{"path":"/var/opt/gitlab/git-data/repositories","gitaly_address":"unix:/var/opt/gitlab/gitaly/gitaly.socket"}}
## Backup settings
backup:
@@ -376,32 +412,25 @@
ssh_port:
# Git import/fetch timeout
- git_timeout: 800
+ git_timeout: 10800
## Git settings
# CAUTION!
# Use the default values unless you really know what you are doing
git:
bin_path: /opt/gitlab/embedded/bin/git
- # The next value is the maximum memory size grit can use
- # Given in number of bytes per git object (e.g. a commit)
- # This value can be increased if you have very large commits
- max_size:
- # Git timeout to read a commit, in seconds
- timeout:
- ## GitLab Geo settings (EE-only)
- geo_primary_role:
- enabled: false
- geo_secondary_role:
- enabled: false
-
monitoring:
# Time between sampling of unicorn socket metrics, in seconds
unicorn_sampler_interval: 10
# IP whitelist controlling access to monitoring endpoints
ip_whitelist:
- 127.0.0.0/8
+ # Sidekiq exporter is webserver built in to Sidekiq to expose Prometheus metrics
+ sidekiq_exporter:
+ enabled: true
+ address: 127.0.0.1
+ port: 8082
#
# 5. Extra customization
* link[Link /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml to /var/opt/gitlab/gitlab-rails/etc/gitlab.yml] action create (up to date)
* templatesymlink[Create a rack_attack.rb and create a symlink to Rails root] action create
* template[/var/opt/gitlab/gitlab-rails/etc/rack_attack.rb] action create (up to date)
* link[Link /opt/gitlab/embedded/service/gitlab-rails/config/initializers/rack_attack.rb to /var/opt/gitlab/gitlab-rails/etc/rack_attack.rb] action create (up to date)
(up to date)
* templatesymlink[Create a gitlab_workhorse_secret and create a symlink to Rails root] action create
* template[/var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret] action create (up to date)
* link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_workhorse_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret] action create (up to date)
(up to date)
* templatesymlink[Create a gitlab_shell_secret and create a symlink to Rails root] action create
* template[/var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret] action create (up to date)
* link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_shell_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret] action create (up to date)
(up to date)
* link[/opt/gitlab/embedded/service/gitlab-rails/config/initializers/relative_url.rb] action delete (up to date)
* file[/var/opt/gitlab/gitlab-rails/etc/relative_url.rb] action delete (up to date)
* env_dir[/opt/gitlab/etc/gitlab-rails/env] action create
* directory[/opt/gitlab/etc/gitlab-rails/env] action create (up to date)
* file[/opt/gitlab/etc/gitlab-rails/env/HOME] action create (up to date)
* file[/opt/gitlab/etc/gitlab-rails/env/RAILS_ENV] action create (up to date)
* file[/opt/gitlab/etc/gitlab-rails/env/LD_PRELOAD] action create (up to date)
* file[/opt/gitlab/etc/gitlab-rails/env/SIDEKIQ_MEMORY_KILLER_MAX_RSS] action create (up to date)
* file[/opt/gitlab/etc/gitlab-rails/env/BUNDLE_GEMFILE] action create (up to date)
* file[/opt/gitlab/etc/gitlab-rails/env/PATH] action create (up to date)
* file[/opt/gitlab/etc/gitlab-rails/env/ICU_DATA] action create (up to date)
* file[/opt/gitlab/etc/gitlab-rails/env/PYTHONPATH] action create (up to date)
* file[/opt/gitlab/etc/gitlab-rails/env/EXECJS_RUNTIME] action create (up to date)
(up to date)
* link[/opt/gitlab/embedded/service/gitlab-rails/tmp] action create (up to date)
* link[/opt/gitlab/embedded/service/gitlab-rails/public/uploads] action create (up to date)
* link[/opt/gitlab/embedded/service/gitlab-rails/log] action create (up to date)
* link[/var/log/gitlab/gitlab-rails/sidekiq.log] action create (skipped due to not_if)
* file[/opt/gitlab/embedded/service/gitlab-rails/db/schema.rb] action create
- change owner from 'root' to 'git'
* remote_file[/var/opt/gitlab/gitlab-rails/VERSION] action create
- update content in file /var/opt/gitlab/gitlab-rails/VERSION from 31a9d9 to 8054cc
--- /var/opt/gitlab/gitlab-rails/VERSION 2017-10-03 11:33:19.344980288 +0100
+++ /var/opt/gitlab/gitlab-rails/.chef-VERSION20180504-12021-154hes6 2018-05-04 10:31:23.896332505 +0100
@@ -1,2 +1,2 @@
-10.0.2
+10.7.3
* remote_file[/var/opt/gitlab/gitlab-rails/REVISION] action create
- update content in file /var/opt/gitlab/gitlab-rails/REVISION from ad5502 to c4465e
--- /var/opt/gitlab/gitlab-rails/REVISION 2017-10-03 11:33:19.352980299 +0100
+++ /var/opt/gitlab/gitlab-rails/.chef-REVISION20180504-12021-1dqyxeo 2018-05-04 10:31:23.904332394 +0100
@@ -1,2 +1,2 @@
-06a5a33
+2555d6c
* file[/var/opt/gitlab/gitlab-rails/RUBY_VERSION] action create
- update content in file /var/opt/gitlab/gitlab-rails/RUBY_VERSION from b44c92 to 05b5bf
--- /var/opt/gitlab/gitlab-rails/RUBY_VERSION 2017-10-03 11:33:19.380980339 +0100
+++ /var/opt/gitlab/gitlab-rails/.chef-RUBY_VERSION20180504-12021-ak8t85 2018-05-04 10:31:23.952331729 +0100
@@ -1,2 +1,2 @@
-ruby 2.3.5p376 (2017-09-14 revision 59905) [x86_64-linux]
+ruby 2.3.6p384 (2017-12-14 revision 61254) [x86_64-linux]
* execute[chown -R root:root /opt/gitlab/embedded/service/gitlab-rails/public] action run
- execute chown -R root:root /opt/gitlab/embedded/service/gitlab-rails/public
* execute[clear the gitlab-rails cache] action nothing (skipped due to action :nothing)
* file[/var/opt/gitlab/gitlab-rails/config.ru] action delete (up to date)
Recipe: gitlab::add_trusted_certs
* directory[/etc/gitlab/trusted-certs] action create (up to date)
* directory[/opt/gitlab/embedded/ssl/certs] action create (up to date)
* file[/opt/gitlab/embedded/ssl/certs/README] action create (up to date)
* ruby_block[Move existing certs and link to /opt/gitlab/embedded/ssl/certs] action run
* Moving existing certificates found in /opt/gitlab/embedded/ssl/certs
* Symlinking existing certificates found in /etc/gitlab/trusted-certs
- execute the ruby block Move existing certs and link to /opt/gitlab/embedded/ssl/certs
Recipe: gitlab::default
* service[create a temporary unicorn service] action nothing (skipped due to action :nothing)
* service[create a temporary sidekiq service] action nothing (skipped due to action :nothing)
* service[create a temporary mailroom service] action nothing (skipped due to action :nothing)
Recipe: runit::systemd
* directory[/usr/lib/systemd/system] action create (up to date)
* cookbook_file[/usr/lib/systemd/system/gitlab-runsvdir.service] action create (up to date)
* file[/etc/systemd/system/default.target.wants/gitlab-runsvdir.service] action delete (up to date)
* execute[systemctl daemon-reload] action nothing (skipped due to action :nothing)
* execute[systemctl enable gitlab-runsvdir] action nothing (skipped due to action :nothing)
* execute[systemctl start gitlab-runsvdir] action nothing (skipped due to action :nothing)
Recipe: gitlab::redis
* account[user and group for redis] action create
* group[user and group for redis] action create (up to date)
* linux_user[user and group for redis] action create (up to date)
(up to date)
* group[Socket group] action create (up to date)
* directory[/var/opt/gitlab/redis] action create (up to date)
* directory[/var/log/gitlab/redis] action create (up to date)
* template[/var/opt/gitlab/redis/redis.conf] action create
- update content in file /var/opt/gitlab/redis/redis.conf from c1ed62 to d493be
--- /var/opt/gitlab/redis/redis.conf 2016-12-17 20:00:15.868158733 +0000
+++ /var/opt/gitlab/redis/.chef-redis20180504-12021-qiixzk.conf 2018-05-04 10:31:24.368325967 +0100
@@ -467,9 +467,9 @@
# There is no need to use both the options if you need to override just
# the port or the IP address.
#
-# slave-announce-ip 5.5.5.5
-# slave-announce-port 1234
+
+
################################## SECURITY ###################################
# Require clients to issue AUTH <PASSWORD> before processing any other
@@ -541,6 +541,7 @@
# output buffers (but this is not needed if the policy is 'noeviction').
#
# maxmemory <bytes>
+maxmemory 0
# MAXMEMORY POLICY: how Redis will select what to remove when maxmemory
# is reached. You can select among five behaviors:
@@ -564,6 +565,7 @@
# The default is:
#
# maxmemory-policy noeviction
+maxmemory-policy noeviction
# LRU and minimal TTL algorithms are not precise algorithms but approximated
# algorithms (in order to save memory), so you can tune it for speed or
@@ -575,6 +577,7 @@
# true LRU but costs a bit more CPU. 3 is very fast but not very accurate.
#
# maxmemory-samples 5
+maxmemory-samples 5
############################## APPEND ONLY MODE ###############################
* service[redis] action restart
- restart service service[redis]
* directory[/opt/gitlab/sv/redis] action create (up to date)
* directory[/opt/gitlab/sv/redis/log] action create (up to date)
* directory[/opt/gitlab/sv/redis/log/main] action create (up to date)
* template[/opt/gitlab/sv/redis/run] action create (up to date)
* template[/opt/gitlab/sv/redis/log/run] action create (up to date)
* template[/var/log/gitlab/redis/config] action create (up to date)
* ruby_block[reload redis svlogd configuration] action nothing (skipped due to action :nothing)
* file[/opt/gitlab/sv/redis/down] action delete (up to date)
* link[/opt/gitlab/init/redis] action create (up to date)
* link[/opt/gitlab/service/redis] action create (up to date)
* ruby_block[supervise_redis_sleep] action run (skipped due to not_if)
* directory[/opt/gitlab/sv/redis/supervise] action create (up to date)
* directory[/opt/gitlab/sv/redis/log/supervise] action create (up to date)
* file[/opt/gitlab/sv/redis/supervise/ok] action touch (skipped due to only_if)
* file[/opt/gitlab/sv/redis/log/supervise/ok] action touch (skipped due to only_if)
* file[/opt/gitlab/sv/redis/supervise/control] action touch (skipped due to only_if)
* file[/opt/gitlab/sv/redis/log/supervise/control] action touch (skipped due to only_if)
* service[redis] action nothing (skipped due to action :nothing)
Recipe: postgresql::user
* account[Postgresql user and group] action create
* group[Postgresql user and group] action create (up to date)
* linux_user[Postgresql user and group] action create (up to date)
(up to date)
Recipe: postgresql::enable
* directory[/var/opt/gitlab/postgresql] action create (up to date)
* directory[/var/opt/gitlab/postgresql/data] action create (up to date)
* directory[/var/log/gitlab/postgresql] action create (up to date)
* link[/var/opt/gitlab/postgresql/data] action create (skipped due to not_if)
* file[/var/opt/gitlab/postgresql/.profile] action create (up to date)
* sysctl[kernel.shmmax] action create
* directory[create /etc/sysctl.d for kernel.shmmax] action create (up to date)
* file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmmax.conf kernel.shmmax] action create (up to date)
* link[/etc/sysctl.d/90-omnibus-gitlab-kernel.shmmax.conf] action create (up to date)
* file[delete /etc/sysctl.d/90-postgresql.conf kernel.shmmax] action delete (skipped due to only_if)
* file[delete /etc/sysctl.d/90-unicorn.conf kernel.shmmax] action delete (skipped due to only_if)
* file[delete /opt/gitlab/embedded/etc/90-omnibus-gitlab.conf kernel.shmmax] action delete (skipped due to only_if)
* file[delete /etc/sysctl.d/90-omnibus-gitlab.conf kernel.shmmax] action delete (skipped due to only_if)
* execute[load sysctl conf kernel.shmmax] action nothing (skipped due to action :nothing)
(up to date)
* sysctl[kernel.shmall] action create
* directory[create /etc/sysctl.d for kernel.shmall] action create (up to date)
* file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmall.conf kernel.shmall] action create (up to date)
* link[/etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf] action create (up to date)
* file[delete /etc/sysctl.d/90-postgresql.conf kernel.shmall] action delete (skipped due to only_if)
* file[delete /etc/sysctl.d/90-unicorn.conf kernel.shmall] action delete (skipped due to only_if)
* file[delete /opt/gitlab/embedded/etc/90-omnibus-gitlab.conf kernel.shmall] action delete (skipped due to only_if)
* file[delete /etc/sysctl.d/90-omnibus-gitlab.conf kernel.shmall] action delete (skipped due to only_if)
* execute[load sysctl conf kernel.shmall] action nothing (skipped due to action :nothing)
(up to date)
* sysctl[kernel.sem] action create
* directory[create /etc/sysctl.d for kernel.sem] action create (up to date)
* file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.sem.conf kernel.sem] action create (up to date)
* link[/etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf] action create (up to date)
* file[delete /etc/sysctl.d/90-postgresql.conf kernel.sem] action delete (skipped due to only_if)
* file[delete /etc/sysctl.d/90-unicorn.conf kernel.sem] action delete (skipped due to only_if)
* file[delete /opt/gitlab/embedded/etc/90-omnibus-gitlab.conf kernel.sem] action delete (skipped due to only_if)
* file[delete /etc/sysctl.d/90-omnibus-gitlab.conf kernel.sem] action delete (skipped due to only_if)
* execute[load sysctl conf kernel.sem] action nothing (skipped due to action :nothing)
(up to date)
* execute[/opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8] action run (skipped due to not_if)
* file[/var/opt/gitlab/postgresql/data/server.crt] action create
- create new file /var/opt/gitlab/postgresql/data/server.crt
- update content in file /var/opt/gitlab/postgresql/data/server.crt from none to 4cfc6a
- suppressed sensitive resource
- change mode from '' to '0400'
- change owner from '' to 'gitlab-psql'
- change group from '' to 'gitlab-psql'
* file[/var/opt/gitlab/postgresql/data/server.key] action create
- create new file /var/opt/gitlab/postgresql/data/server.key
- update content in file /var/opt/gitlab/postgresql/data/server.key from none to 8cd9bc
- suppressed sensitive resource
- change mode from '' to '0400'
- change owner from '' to 'gitlab-psql'
- change group from '' to 'gitlab-psql'
* template[/var/opt/gitlab/postgresql/data/postgresql.conf] action create
- update content in file /var/opt/gitlab/postgresql/data/postgresql.conf from ee493d to c77c6c
--- /var/opt/gitlab/postgresql/data/postgresql.conf 2017-08-11 16:22:12.768388745 +0100
+++ /var/opt/gitlab/postgresql/data/.chef-postgresql20180504-12021-u7hzyo.conf 2018-05-04 10:31:25.176314774 +0100
@@ -81,9 +81,18 @@
# - Security and Authentication -
#authentication_timeout = 1min # 1s-600s
-#ssl = off # (change requires restart)
-#ssl_ciphers = 'ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH' # allowed SSL ciphers
- # (change requires restart)
+
+# change requires restart
+ssl = on
+
+# allowed SSL ciphers
+ssl_ciphers = 'HIGH:MEDIUM:+3DES:!aNULL:!SSLv3:!TLSv1'
+
+ssl_cert_file = 'server.crt'
+ssl_key_file = 'server.key'
+ssl_ca_file = '/opt/gitlab/embedded/ssl/certs/cacert.pem'
+
+
#ssl_renegotiation_limit = 512MB # amount of data between renegotiations
#password_encryption = on
#db_user_namespace = off
* execute[reload postgresql] action run
- execute /opt/gitlab/bin/gitlab-ctl hup postgresql
* execute[start postgresql] action run (skipped due to not_if)
* template[/var/opt/gitlab/postgresql/data/runtime.conf] action create
- update content in file /var/opt/gitlab/postgresql/data/runtime.conf from 64c38e to 0b6785
--- /var/opt/gitlab/postgresql/data/runtime.conf 2017-09-08 19:32:08.498413863 +0100
+++ /var/opt/gitlab/postgresql/data/.chef-runtime20180504-12021-xxjei3.conf 2018-05-04 10:31:26.648294384 +0100
@@ -20,7 +20,7 @@
# - Archiving -
archive_command = '' # command to use to archive a logfile segment
-archive_timeout = 60 # force a logfile segment switch after this
+archive_timeout = 0 # force a logfile segment switch after this
# number of seconds; 0 disables
# - Replication
@@ -73,6 +73,7 @@
# than the specified size in kilobytes;
# -1 disables, 0 logs all temp files
+
# - Autovacuum parameters -
autovacuum = on # Enable autovacuum subprocess? 'on'
# requires track_counts to also be on.
@@ -100,6 +101,18 @@
statement_timeout = 60000
idle_in_transaction_session_timeout = 60000
+
+# IO settings
+effective_io_concurrency = 1
+track_io_timing = 'off'
+
+# Parallel worker settings
+max_worker_processes = 8
+max_parallel_workers_per_gather = 0
+
+# Deadlock handling and logging
+deadlock_timeout = '5s'
+log_lock_waits = 1
# - Locale and Formatting -
datestyle = 'iso, mdy'
* execute[reload postgresql] action run
- execute /opt/gitlab/bin/gitlab-ctl hup postgresql
* execute[start postgresql] action run (skipped due to not_if)
* template[/var/opt/gitlab/postgresql/data/pg_hba.conf] action create (up to date)
* template[/var/opt/gitlab/postgresql/data/pg_ident.conf] action create (up to date)
* directory[/opt/gitlab/sv/postgresql] action create (up to date)
* directory[/opt/gitlab/sv/postgresql/log] action create (up to date)
* directory[/opt/gitlab/sv/postgresql/log/main] action create (up to date)
* template[/opt/gitlab/sv/postgresql/run] action create (up to date)
* template[/opt/gitlab/sv/postgresql/log/run] action create (up to date)
* template[/var/log/gitlab/postgresql/config] action create (up to date)
* ruby_block[reload postgresql svlogd configuration] action nothing (skipped due to action :nothing)
* file[/opt/gitlab/sv/postgresql/down] action delete (up to date)
* directory[/opt/gitlab/sv/postgresql/control] action create (up to date)
* template[/opt/gitlab/sv/postgresql/control/t] action create (up to date)
* link[/opt/gitlab/init/postgresql] action create (up to date)
* link[/opt/gitlab/service/postgresql] action create (up to date)
* ruby_block[supervise_postgresql_sleep] action run (skipped due to not_if)
* directory[/opt/gitlab/sv/postgresql/supervise] action create (up to date)
* directory[/opt/gitlab/sv/postgresql/log/supervise] action create (up to date)
* file[/opt/gitlab/sv/postgresql/supervise/ok] action touch (skipped due to only_if)
* file[/opt/gitlab/sv/postgresql/log/supervise/ok] action touch (skipped due to only_if)
* file[/opt/gitlab/sv/postgresql/supervise/control] action touch (skipped due to only_if)
* file[/opt/gitlab/sv/postgresql/log/supervise/control] action touch (skipped due to only_if)
* service[postgresql] action nothing (skipped due to action :nothing)
Recipe: postgresql::bin
* ruby_block[Link postgresql bin files to the correct version] action run (skipped due to only_if)
Recipe: postgresql::enable
* template[/opt/gitlab/etc/gitlab-psql-rc] action create (up to date)
* postgresql_user[gitlab] action create
* execute[create gitlab postgresql user] action run (skipped due to not_if)
(up to date)
* execute[create gitlabhq_production database] action run (skipped due to not_if)
* postgresql_user[gitlab_replicator] action create
* execute[create gitlab_replicator postgresql user] action run (skipped due to not_if)
* execute[set options for gitlab_replicator postgresql user] action run (skipped due to not_if)
(up to date)
* postgresql_extension[pg_trgm] action enable
* postgresql_query[enable pg_trgm extension] action run (skipped due to only_if)
(up to date)
* execute[reload postgresql] action nothing (skipped due to action :nothing)
* execute[start postgresql] action nothing (skipped due to action :nothing)
Recipe: gitlab::database_migrations
* bash[migrate gitlab-rails database] action run
[execute] == 20141126120926 AddMergeRequestRebaseEnabledToProjects: migrating ===========
-- transaction_open?()
-> 0.0001s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- transaction()
-- add_column(:projects, :merge_requests_rebase_enabled, :boolean, {:default=>nil})
-> 0.0431s
-- change_column_default(:projects, :merge_requests_rebase_enabled, false)
-> 0.0855s
-> 0.1329s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"projects\"")
-> 0.0215s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" ORDER BY \"projects\".\"id\" ASC LIMIT 1")
-> 0.0023s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 3 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0011s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 3 AND \"projects\".\"id\" < 4")
-> 0.0037s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 4 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0011s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 4 AND \"projects\".\"id\" < 7")
-> 0.0021s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 7 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 7 AND \"projects\".\"id\" < 8")
-> 0.0026s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 8 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0013s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 8 AND \"projects\".\"id\" < 12")
-> 0.0022s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 12 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 12 AND \"projects\".\"id\" < 13")
-> 0.0018s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 13 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 13 AND \"projects\".\"id\" < 14")
-> 0.0024s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 14 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 14 AND \"projects\".\"id\" < 17")
-> 0.0015s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 17 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 17 AND \"projects\".\"id\" < 18")
-> 0.0016s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 18 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 18 AND \"projects\".\"id\" < 19")
-> 0.0014s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 19 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0011s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 19 AND \"projects\".\"id\" < 20")
-> 0.0015s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 20 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 20 AND \"projects\".\"id\" < 22")
-> 0.0016s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 22 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 22")
-> 0.0016s
-- change_column_null(:projects, :merge_requests_rebase_enabled, false)
-> 0.0014s
== 20141126120926 AddMergeRequestRebaseEnabledToProjects: migrated (0.2137s) ==
== 20150827121444 AddFastForwardOptionToProject: migrating ====================
-- column_exists?(:projects, :merge_requests_ff_only_enabled)
-> 0.0043s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- transaction()
-- add_column(:projects, :merge_requests_ff_only_enabled, :boolean, {:default=>nil})
-> 0.0010s
-- change_column_default(:projects, :merge_requests_ff_only_enabled, false)
-> 0.0041s
-> 0.0074s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"projects\"")
-> 0.0011s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" ORDER BY \"projects\".\"id\" ASC LIMIT 1")
-> 0.0009s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 3 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 3 AND \"projects\".\"id\" < 4")
-> 0.0017s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 4 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 4 AND \"projects\".\"id\" < 7")
-> 0.0015s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 7 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 7 AND \"projects\".\"id\" < 8")
-> 0.0016s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 8 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 8 AND \"projects\".\"id\" < 12")
-> 0.0031s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 12 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0011s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 12 AND \"projects\".\"id\" < 13")
-> 0.0019s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 13 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 13 AND \"projects\".\"id\" < 14")
-> 0.0027s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 14 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 14 AND \"projects\".\"id\" < 17")
-> 0.0018s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 17 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0011s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 17 AND \"projects\".\"id\" < 18")
-> 0.0023s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 18 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 18 AND \"projects\".\"id\" < 19")
-> 0.0021s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 19 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 19 AND \"projects\".\"id\" < 20")
-> 0.0023s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 20 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0012s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 20 AND \"projects\".\"id\" < 22")
-> 0.0034s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 22 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 22")
-> 0.0018s
-- change_column_null(:projects, :merge_requests_ff_only_enabled, false)
-> 0.0069s
== 20150827121444 AddFastForwardOptionToProject: migrated (0.0723s) ===========
== 20160301174731 AddFingerprintIndex: migrating ==============================
-- index_exists?(:keys, :fingerprint)
-> 0.0061s
== 20160301174731 AddFingerprintIndex: migrated (0.0063s) =====================
== 20160621123729 AddRebaseCommitShaToMergeRequests: migrating ================
-- column_exists?(:merge_requests, :rebase_commit_sha)
-> 0.0023s
-- add_column(:merge_requests, :rebase_commit_sha, :string)
-> 0.0018s
== 20160621123729 AddRebaseCommitShaToMergeRequests: migrated (0.0042s) =======
== 20160713200638 AddRepositoryReadOnlyToProjects: migrating ==================
-- add_column(:projects, :repository_read_only, :boolean)
-> 0.0011s
== 20160713200638 AddRepositoryReadOnlyToProjects: migrated (0.0012s) =========
== 20170523073948 RemoveAssigneeIdFromIssue: migrating ========================
-- remove_column(:issues, :assignee_id)
-> 0.0409s
== 20170523073948 RemoveAssigneeIdFromIssue: migrated (0.0410s) ===============
== 20170531180233 AddAuthorizedKeysEnabledToApplicationSettings: migrating ====
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- transaction()
-- add_column(:application_settings, :authorized_keys_enabled, :boolean, {:default=>nil})
-> 0.0018s
-- change_column_default(:application_settings, :authorized_keys_enabled, true)
-> 0.0121s
-> 0.0167s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0011s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0006s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"application_settings\" SET \"authorized_keys_enabled\" = 't' WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0021s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"authorized_keys_enabled\" = 't' WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0015s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"authorized_keys_enabled\" = 't' WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0015s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"authorized_keys_enabled\" = 't' WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0015s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"authorized_keys_enabled\" = 't' WHERE \"application_settings\".\"id\" >= 5")
-> 0.0015s
-- change_column_null(:application_settings, :authorized_keys_enabled, false)
-> 0.0015s
== 20170531180233 AddAuthorizedKeysEnabledToApplicationSettings: migrated (0.0460s)
== 20170601163708 AddArtifactsStoreToCiBuild: migrating =======================
-- add_column(:ci_builds, :artifacts_file_store, :integer)
-> 0.0018s
-- add_column(:ci_builds, :artifacts_metadata_store, :integer)
-> 0.0009s
== 20170601163708 AddArtifactsStoreToCiBuild: migrated (0.0028s) ==============
== 20170720122741 CreateUserCustomAttributes: migrating =======================
-- create_table(:user_custom_attributes)
-> 0.1575s
== 20170720122741 CreateUserCustomAttributes: migrated (0.1576s) ==============
== 20170815221154 AddDiscussionLockedToIssuable: migrating ====================
-- add_column(:merge_requests, :discussion_locked, :boolean)
-> 0.0011s
-- add_column(:issues, :discussion_locked, :boolean)
-> 0.0009s
== 20170815221154 AddDiscussionLockedToIssuable: migrated (0.0022s) ===========
== 20170825015534 AddFileStoreToLfsObjects: migrating =========================
-- add_column(:lfs_objects, :file_store, :integer)
-> 0.0019s
== 20170825015534 AddFileStoreToLfsObjects: migrated (0.0020s) ================
== 20170827123848 AddIndexOnMergeRequestDiffCommitSha: migrating ==============
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- index_exists?(:merge_request_diff_commits, :sha, {:length=>nil, :algorithm=>:concurrently})
-> 0.0029s
-- add_index(:merge_request_diff_commits, :sha, {:length=>nil, :algorithm=>:concurrently})
-> 0.0202s
== 20170827123848 AddIndexOnMergeRequestDiffCommitSha: migrated (0.0241s) =====
== 20170904092148 AddEmailConfirmation: migrating =============================
-- add_column(:emails, :confirmation_token, :string)
-> 0.0016s
-- add_column(:emails, :confirmed_at, :datetime_with_timezone)
-> 0.0008s
-- add_column(:emails, :confirmation_sent_at, :datetime_with_timezone)
-> 0.0007s
== 20170904092148 AddEmailConfirmation: migrated (0.0034s) ====================
== 20170907170235 DeleteConflictingRedirectRoutes: migrating ==================
== 20170907170235 DeleteConflictingRedirectRoutes: migrated (0.0000s) =========
== 20170909090114 AddEmailConfirmationIndex: migrating ========================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- index_exists?(:emails, :confirmation_token, {:unique=>true, :algorithm=>:concurrently})
-> 0.0036s
-- add_index(:emails, :confirmation_token, {:unique=>true, :algorithm=>:concurrently})
-> 0.0069s
== 20170909090114 AddEmailConfirmationIndex: migrated (0.0114s) ===============
== 20170909150936 AddSpentAtToTimelogs: migrating =============================
-- add_column(:timelogs, :spent_at, :datetime_with_timezone)
-> 0.0026s
== 20170909150936 AddSpentAtToTimelogs: migrated (0.0027s) ====================
== 20170912113435 CleanStagesStatusesMigration: migrating =====================
== 20170912113435 CleanStagesStatusesMigration: migrated (0.0350s) ============
== 20170918072948 CreateJobArtifacts: migrating ===============================
-- create_table(:ci_job_artifacts)
-> 0.0345s
== 20170918072948 CreateJobArtifacts: migrated (0.0346s) ======================
== 20170918072949 AddFileStoreJobArtifacts: migrating =========================
-- add_column(:ci_job_artifacts, :file_store, :integer)
-> 0.0023s
== 20170918072949 AddFileStoreJobArtifacts: migrated (0.0024s) ================
== 20170918111708 CreateProjectCustomAttributes: migrating ====================
-- create_table(:project_custom_attributes)
-> 0.0367s
== 20170918111708 CreateProjectCustomAttributes: migrated (0.0368s) ===========
== 20170918140927 CreateGroupCustomAttributes: migrating ======================
-- create_table(:group_custom_attributes)
-> 0.0332s
-- add_foreign_key(:group_custom_attributes, :namespaces, {:column=>:group_id, :on_delete=>:cascade})
-> 0.0042s
== 20170918140927 CreateGroupCustomAttributes: migrated (0.0377s) =============
== 20170919211300 RemoveTemporaryCiBuildsIndex: migrating =====================
-- index_exists?(:ci_builds, :id, {:name=>"index_for_ci_builds_retried_migration"})
-> 0.0130s
-- transaction_open?()
-> 0.0000s
-- select_one("SELECT current_setting('server_version_num') AS v")
-> 0.0008s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- index_exists?(:ci_builds, :id, {:name=>"index_for_ci_builds_retried_migration", :algorithm=>:concurrently})
-> 0.0124s
-- remove_index(:ci_builds, {:name=>"index_for_ci_builds_retried_migration", :algorithm=>:concurrently, :column=>:id})
-> 0.0068s
== 20170919211300 RemoveTemporaryCiBuildsIndex: migrated (0.0339s) ============
== 20170921101004 NormalizeLdapExternUids: migrating ==========================
== 20170921101004 NormalizeLdapExternUids: migrated (0.0366s) =================
== 20170921115009 AddProjectRepositoryStorageIndex: migrating =================
-- index_exists?(:projects, :repository_storage)
-> 0.0156s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- index_exists?(:projects, :repository_storage, {:algorithm=>:concurrently})
-> 0.0162s
-- add_index(:projects, :repository_storage, {:algorithm=>:concurrently})
-> 0.0081s
== 20170921115009 AddProjectRepositoryStorageIndex: migrated (0.0409s) ========
== 20170924094327 CreateGcpClusters: migrating ================================
-- create_table(:gcp_clusters)
-> 0.0657s
== 20170924094327 CreateGcpClusters: migrated (0.0658s) =======================
== 20170926150348 ScheduleMergeRequestDiffMigrationsTakeTwo: migrating ========
== 20170926150348 ScheduleMergeRequestDiffMigrationsTakeTwo: migrated (0.0172s)
== 20170927095921 AddCiBuildsIndexForJobscontroller: migrating ================
-- index_exists?(:ci_builds, [:project_id, :id])
-> 0.0144s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- index_exists?(:ci_builds, [:project_id, :id], {:algorithm=>:concurrently})
-> 0.0166s
-- add_index(:ci_builds, [:project_id, :id], {:algorithm=>:concurrently})
-> 0.0078s
-- index_exists?(:ci_builds, :project_id)
-> 0.0150s
-- transaction_open?()
-> 0.0000s
-- select_one("SELECT current_setting('server_version_num') AS v")
-> 0.0006s
-- execute("SET statement_timeout TO 0")
-> 0.0007s
-- index_exists?(:ci_builds, :project_id, {:algorithm=>:concurrently})
-> 0.0200s
-- remove_index(:ci_builds, {:algorithm=>:concurrently, :column=>:project_id})
-> 0.0058s
== 20170927095921 AddCiBuildsIndexForJobscontroller: migrated (0.0824s) =======
== 20170927112318 UpdateLegacyDiffNotesTypeForImport: migrating ===============
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"notes\" WHERE \"notes\".\"type\" = 'Github::Import::LegacyDiffNote'")
-> 0.1406s
== 20170927112318 UpdateLegacyDiffNotesTypeForImport: migrated (0.1451s) ======
== 20170927112319 UpdateNotesTypeForImport: migrating =========================
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"notes\" WHERE \"notes\".\"type\" = 'Github::Import::Note'")
-> 0.0009s
== 20170927112319 UpdateNotesTypeForImport: migrated (0.0015s) ================
== 20170927122209 AddPartialIndexForLabelsTemplate: migrating =================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- index_exists?("labels", ["template"], {:where=>"template", :algorithm=>:concurrently})
-> 0.0088s
-- add_index("labels", ["template"], {:where=>"template", :algorithm=>:concurrently})
-> 0.0096s
== 20170927122209 AddPartialIndexForLabelsTemplate: migrated (0.0192s) ========
== 20170927161718 CreateGpgKeySubkeys: migrating ==============================
-- create_table(:gpg_key_subkeys)
-> 0.0636s
-- add_reference(:gpg_signatures, :gpg_key_subkey, {:index=>true, :foreign_key=>{:on_delete=>:nullify}})
-> 0.0268s
== 20170927161718 CreateGpgKeySubkeys: migrated (0.0906s) =====================
== 20170928100231 AddCompositeIndexOnMergeRequestsMergeCommitSha: migrating ===
-- index_exists?(:merge_requests, [:target_project_id, :merge_commit_sha, :id], {:name=>"index_merge_requests_on_tp_id_and_merge_commit_sha_and_id"})
-> 0.0198s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- index_exists?(:merge_requests, [:target_project_id, :merge_commit_sha, :id], {:name=>"index_merge_requests_on_tp_id_and_merge_commit_sha_and_id", :algorithm=>:concurrently})
-> 0.0143s
-- add_index(:merge_requests, [:target_project_id, :merge_commit_sha, :id], {:name=>"index_merge_requests_on_tp_id_and_merge_commit_sha_and_id", :algorithm=>:concurrently})
-> 0.0077s
== 20170928100231 AddCompositeIndexOnMergeRequestsMergeCommitSha: migrated (0.0427s)
== 20170928124105 CreateForkNetworks: migrating ===============================
-- create_table(:fork_networks)
-> 0.0591s
-- transaction_open?()
-> 0.0001s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- foreign_keys(:fork_networks)
-> 0.0066s
-- execute("ALTER TABLE fork_networks\nADD CONSTRAINT fk_e7b436b2b5\nFOREIGN KEY (root_project_id)\nREFERENCES projects (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0025s
-- execute("ALTER TABLE fork_networks VALIDATE CONSTRAINT fk_e7b436b2b5;")
-> 0.0022s
== 20170928124105 CreateForkNetworks: migrated (0.0715s) ======================
== 20170928133643 CreateForkNetworkMembers: migrating =========================
-- create_table(:fork_network_members)
-> 0.0311s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- foreign_keys(:fork_network_members)
-> 0.0052s
-- execute("ALTER TABLE fork_network_members\nADD CONSTRAINT fk_b01280dae4\nFOREIGN KEY (forked_from_project_id)\nREFERENCES projects (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0027s
-- execute("ALTER TABLE fork_network_members VALIDATE CONSTRAINT fk_b01280dae4;")
-> 0.0019s
== 20170928133643 CreateForkNetworkMembers: migrated (0.0420s) ================
== 20170929080234 AddFailureReasonToPipelines: migrating ======================
-- add_column(:ci_pipelines, :failure_reason, :integer)
-> 0.0041s
== 20170929080234 AddFailureReasonToPipelines: migrated (0.0043s) =============
== 20170929131201 PopulateForkNetworks: migrating =============================
-- Fork networks will be populated in 20171205190711 - RescheduleForkNetworkCreationCaller
== 20170929131201 PopulateForkNetworks: migrated (0.0000s) ====================
== 20171004121444 MakeSureFastForwardOptionExists: migrating ==================
-- column_exists?(:projects, :merge_requests_ff_only_enabled)
-> 0.0035s
== 20171004121444 MakeSureFastForwardOptionExists: migrated (0.0036s) =========
== 20171005130944 ScheduleCreateGpgKeySubkeysFromGpgKeys: migrating ===========
== 20171005130944 ScheduleCreateGpgKeySubkeysFromGpgKeys: migrated (0.0049s) ==
== 20171006090001 CreateCiBuildTraceSections: migrating =======================
-- create_table(:ci_build_trace_sections)
-> 0.0190s
-- add_index(:ci_build_trace_sections, [:build_id, :section_name_id], {:unique=>true})
-> 0.0077s
== 20171006090001 CreateCiBuildTraceSections: migrated (0.0270s) ==============
== 20171006090010 AddBuildForeignKeyToCiBuildTraceSections: migrating =========
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- foreign_keys(:ci_build_trace_sections)
-> 0.0056s
-- execute("ALTER TABLE ci_build_trace_sections\nADD CONSTRAINT fk_4ebe41f502\nFOREIGN KEY (build_id)\nREFERENCES ci_builds (id)\nON DELETE CASCADE\nNOT VALID;\n")
-> 0.0029s
-- execute("ALTER TABLE ci_build_trace_sections VALIDATE CONSTRAINT fk_4ebe41f502;")
-> 0.0028s
== 20171006090010 AddBuildForeignKeyToCiBuildTraceSections: migrated (0.0126s)
== 20171006090100 CreateCiBuildTraceSectionNames: migrating ===================
-- create_table(:ci_build_trace_section_names)
-> 0.0253s
-- add_index(:ci_build_trace_section_names, [:project_id, :name], {:unique=>true})
-> 0.0063s
== 20171006090100 CreateCiBuildTraceSectionNames: migrated (0.0318s) ==========
== 20171006091000 AddNameForeignKeyToCiBuildTraceSections: migrating ==========
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- foreign_keys(:ci_build_trace_sections)
-> 0.0053s
-- execute("ALTER TABLE ci_build_trace_sections\nADD CONSTRAINT fk_264e112c66\nFOREIGN KEY (section_name_id)\nREFERENCES ci_build_trace_section_names (id)\nON DELETE CASCADE\nNOT VALID;\n")
-> 0.0028s
-- execute("ALTER TABLE ci_build_trace_sections VALIDATE CONSTRAINT fk_264e112c66;")
-> 0.0029s
== 20171006091000 AddNameForeignKeyToCiBuildTraceSections: migrated (0.0121s) =
== 20171006220837 AddGlobalRateLimitsToApplicationSettings: migrating =========
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0008s
-- transaction()
-- add_column(:application_settings, :throttle_unauthenticated_enabled, :boolean, {:default=>nil})
-> 0.0021s
-- change_column_default(:application_settings, :throttle_unauthenticated_enabled, false)
-> 0.0092s
-> 0.0134s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0010s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0062s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0014s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0032s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0013s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0027s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0018s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0007s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0016s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0011s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 5")
-> 0.0022s
-- change_column_null(:application_settings, :throttle_unauthenticated_enabled, false)
-> 0.0014s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- transaction()
-- add_column(:application_settings, :throttle_unauthenticated_requests_per_period, :integer, {:default=>nil})
-> 0.0011s
-- change_column_default(:application_settings, :throttle_unauthenticated_requests_per_period, 3600)
-> 0.0134s
-> 0.0173s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0010s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0008s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_requests_per_period\" = 3600 WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0017s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_requests_per_period\" = 3600 WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0020s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_requests_per_period\" = 3600 WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0019s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_requests_per_period\" = 3600 WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0018s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_requests_per_period\" = 3600 WHERE \"application_settings\".\"id\" >= 5")
-> 0.0019s
-- change_column_null(:application_settings, :throttle_unauthenticated_requests_per_period, false)
-> 0.0018s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- transaction()
-- add_column(:application_settings, :throttle_unauthenticated_period_in_seconds, :integer, {:default=>nil})
-> 0.0104s
-- change_column_default(:application_settings, :throttle_unauthenticated_period_in_seconds, 3600)
-> 0.0105s
-> 0.0311s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0011s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0008s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0007s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0021s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0018s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0015s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0134s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0018s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 5")
-> 0.0020s
-- change_column_null(:application_settings, :throttle_unauthenticated_period_in_seconds, false)
-> 0.0021s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- transaction()
-- add_column(:application_settings, :throttle_authenticated_api_enabled, :boolean, {:default=>nil})
-> 0.0011s
-- change_column_default(:application_settings, :throttle_authenticated_api_enabled, false)
-> 0.0096s
-> 0.0132s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0016s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0010s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0013s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0020s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0020s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0016s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0017s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0012s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 5")
-> 0.0023s
-- change_column_null(:application_settings, :throttle_authenticated_api_enabled, false)
-> 0.0019s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- transaction()
-- add_column(:application_settings, :throttle_authenticated_api_requests_per_period, :integer, {:default=>nil})
-> 0.0013s
-- change_column_default(:application_settings, :throttle_authenticated_api_requests_per_period, 7200)
-> 0.0159s
-> 0.0211s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0011s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0008s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_requests_per_period\" = 7200 WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0021s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_requests_per_period\" = 7200 WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0018s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_requests_per_period\" = 7200 WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0026s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0012s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_requests_per_period\" = 7200 WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0024s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0016s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_requests_per_period\" = 7200 WHERE \"application_settings\".\"id\" >= 5")
-> 0.0026s
-- change_column_null(:application_settings, :throttle_authenticated_api_requests_per_period, false)
-> 0.0017s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- transaction()
-- add_column(:application_settings, :throttle_authenticated_api_period_in_seconds, :integer, {:default=>nil})
-> 0.0011s
-- change_column_default(:application_settings, :throttle_authenticated_api_period_in_seconds, 3600)
-> 0.0107s
-> 0.0142s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0011s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0007s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0017s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0024s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0012s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0030s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0112s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0091s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 5")
-> 0.0029s
-- change_column_null(:application_settings, :throttle_authenticated_api_period_in_seconds, false)
-> 0.0056s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- transaction()
-- add_column(:application_settings, :throttle_authenticated_web_enabled, :boolean, {:default=>nil})
-> 0.0010s
-- change_column_default(:application_settings, :throttle_authenticated_web_enabled, false)
-> 0.0113s
-> 0.0152s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0012s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0007s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0019s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0023s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0017s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0011s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0018s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 5")
-> 0.0016s
-- change_column_null(:application_settings, :throttle_authenticated_web_enabled, false)
-> 0.0023s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- transaction()
-- add_column(:application_settings, :throttle_authenticated_web_requests_per_period, :integer, {:default=>nil})
-> 0.0012s
-- change_column_default(:application_settings, :throttle_authenticated_web_requests_per_period, 7200)
-> 0.0105s
-> 0.0141s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0031s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0011s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_requests_per_period\" = 7200 WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0020s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_requests_per_period\" = 7200 WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0015s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_requests_per_period\" = 7200 WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0016s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_requests_per_period\" = 7200 WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0016s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_requests_per_period\" = 7200 WHERE \"application_settings\".\"id\" >= 5")
-> 0.0017s
-- change_column_null(:application_settings, :throttle_authenticated_web_requests_per_period, false)
-> 0.0017s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- transaction()
-- add_column(:application_settings, :throttle_authenticated_web_period_in_seconds, :integer, {:default=>nil})
-> 0.0012s
-- change_column_default(:application_settings, :throttle_authenticated_web_period_in_seconds, 3600)
-> 0.0116s
-> 0.0149s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0010s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0007s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0007s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0025s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0007s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0022s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0027s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0015s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0017s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 5")
-> 0.0016s
-- change_column_null(:application_settings, :throttle_authenticated_web_period_in_seconds, false)
-> 0.0015s
== 20171006220837 AddGlobalRateLimitsToApplicationSettings: migrated (0.4119s)
== 20171012101043 AddCircuitBreakerPropertiesToApplicationSettings: migrating =
-- add_column(:application_settings, :circuitbreaker_failure_count_threshold, :integer, {:default=>160})
-> 0.0250s
-- add_column(:application_settings, :circuitbreaker_failure_wait_time, :integer, {:default=>30})
-> 0.0183s
-- add_column(:application_settings, :circuitbreaker_failure_reset_time, :integer, {:default=>1800})
-> 0.0205s
-- add_column(:application_settings, :circuitbreaker_storage_timeout, :integer, {:default=>30})
-> 0.0179s
== 20171012101043 AddCircuitBreakerPropertiesToApplicationSettings: migrated (0.0822s)
== 20171012125712 MigrateUserAuthenticationTokenToPersonalAccessToken: migrating
-- execute("INSERT INTO personal_access_tokens (user_id, token, name, created_at, updated_at, scopes)\nSELECT id, authentication_token, 'Private Token', NOW(), NOW(), '---\n- api\n'\nFROM users\nWHERE authentication_token IS NOT NULL\nAND admin = FALSE\nAND NOT EXISTS (\n SELECT true\n FROM personal_access_tokens\n WHERE user_id = users.id\n AND token = users.authentication_token\n)\n")
-> 0.0234s
-- execute("INSERT INTO personal_access_tokens (user_id, token, name, created_at, updated_at, scopes)\nSELECT id, authentication_token, 'Private Token', NOW(), NOW(), '---\n- api\n- sudo\n'\nFROM users\nWHERE authentication_token IS NOT NULL\nAND admin = TRUE\nAND NOT EXISTS (\n SELECT true\n FROM personal_access_tokens\n WHERE user_id = users.id\n AND token = users.authentication_token\n)\n")
-> 0.0020s
== 20171012125712 MigrateUserAuthenticationTokenToPersonalAccessToken: migrated (0.0266s)
== 20171012150314 RemoveUserAuthenticationToken: migrating ====================
-- remove_column(:users, :authentication_token)
-> 0.0052s
== 20171012150314 RemoveUserAuthenticationToken: migrated (0.0053s) ===========
== 20171013094327 CreateNewClustersArchitectures: migrating ===================
-- create_table(:clusters)
-> 0.0262s
-- create_table(:cluster_projects)
-> 0.0297s
-- create_table(:cluster_platforms_kubernetes)
-> 0.0210s
-- create_table(:cluster_providers_gcp)
-> 0.0176s
== 20171013094327 CreateNewClustersArchitectures: migrated (0.0948s) ==========
== 20171013104327 MigrateGcpClustersToNewClustersArchitectures: migrating =====
== 20171013104327 MigrateGcpClustersToNewClustersArchitectures: migrated (0.0084s)
== 20171017145932 AddNewCircuitbreakerSettingsToApplicationSettings: migrating
-- add_column(:application_settings, :circuitbreaker_access_retries, :integer, {:default=>3})
-> 0.0199s
-- add_column(:application_settings, :circuitbreaker_backoff_threshold, :integer, {:default=>80})
-> 0.0165s
== 20171017145932 AddNewCircuitbreakerSettingsToApplicationSettings: migrated (0.0367s)
== 20171019141859 FixDevTimezoneSchema: migrating =============================
== 20171019141859 FixDevTimezoneSchema: migrated (0.0000s) ====================
== 20171025110159 AddLatestMergeRequestDiffIdToMergeRequests: migrating =======
-- add_column(:merge_requests, :latest_merge_request_diff_id, :integer)
-> 0.0017s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- index_exists?(:merge_requests, :latest_merge_request_diff_id, {:algorithm=>:concurrently})
-> 0.0222s
-- add_index(:merge_requests, :latest_merge_request_diff_id, {:algorithm=>:concurrently})
-> 0.0071s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- foreign_keys(:merge_requests)
-> 0.0052s
-- execute("ALTER TABLE merge_requests\nADD CONSTRAINT fk_06067f5644\nFOREIGN KEY (latest_merge_request_diff_id)\nREFERENCES merge_request_diffs (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0128s
-- execute("ALTER TABLE merge_requests VALIDATE CONSTRAINT fk_06067f5644;")
-> 0.1212s
== 20171025110159 AddLatestMergeRequestDiffIdToMergeRequests: migrated (0.1723s)
== 20171026082505 ScheduleMergeRequestLatestMergeRequestDiffIdMigrations: migrating
== 20171026082505 ScheduleMergeRequestLatestMergeRequestDiffIdMigrations: migrated (0.0071s)
== 20171031100710 CreateClustersKubernetesHelmApps: migrating =================
-- create_table(:clusters_applications_helm)
-> 0.0220s
== 20171031100710 CreateClustersKubernetesHelmApps: migrated (0.0221s) ========
== 20171101130535 AddGitalyTimeoutPropertiesToApplicationSettings: migrating ==
-- transaction_open?()
-> 0.0001s
-- execute("SET statement_timeout TO 0")
-> 0.0010s
-- transaction()
-- add_column(:application_settings, :gitaly_timeout_default, :integer, {:default=>nil})
-> 0.0023s
-- change_column_default(:application_settings, :gitaly_timeout_default, 55)
-> 0.0197s
-> 0.0257s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0016s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0012s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_default\" = 55 WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0031s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0011s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_default\" = 55 WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0023s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_default\" = 55 WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0020s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_default\" = 55 WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0015s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0007s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_default\" = 55 WHERE \"application_settings\".\"id\" >= 5")
-> 0.0017s
-- change_column_null(:application_settings, :gitaly_timeout_default, false)
-> 0.0017s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- transaction()
-- add_column(:application_settings, :gitaly_timeout_medium, :integer, {:default=>nil})
-> 0.0011s
-- change_column_default(:application_settings, :gitaly_timeout_medium, 30)
-> 0.0148s
-> 0.0198s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0012s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0095s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_medium\" = 30 WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0020s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_medium\" = 30 WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0018s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0011s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_medium\" = 30 WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0020s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_medium\" = 30 WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0018s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_medium\" = 30 WHERE \"application_settings\".\"id\" >= 5")
-> 0.0020s
-- change_column_null(:application_settings, :gitaly_timeout_medium, false)
-> 0.0017s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- transaction()
-- add_column(:application_settings, :gitaly_timeout_fast, :integer, {:default=>nil})
-> 0.0011s
-- change_column_default(:application_settings, :gitaly_timeout_fast, 10)
-> 0.0128s
-> 0.0162s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0011s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0011s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_fast\" = 10 WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0021s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_fast\" = 10 WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0024s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0011s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_fast\" = 10 WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0020s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_fast\" = 10 WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0019s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_fast\" = 10 WHERE \"application_settings\".\"id\" >= 5")
-> 0.0015s
-- change_column_null(:application_settings, :gitaly_timeout_fast, false)
-> 0.0016s
== 20171101130535 AddGitalyTimeoutPropertiesToApplicationSettings: migrated (0.1434s)
== 20171101134435 RemoveRefFetchedFromMergeRequests: migrating ================
-- remove_column(:merge_requests, :ref_fetched, :boolean)
-> 0.0011s
== 20171101134435 RemoveRefFetchedFromMergeRequests: migrated (0.0012s) =======
== 20171103000000 SetUploadsPathSizeForMysql: migrating =======================
-- change_column(:uploads, :path, :string, {:limit=>511})
-> 0.0287s
== 20171103000000 SetUploadsPathSizeForMysql: migrated (0.0288s) ==============
== 20171103140253 TrackUntrackedUploads: migrating ============================
== 20171103140253 TrackUntrackedUploads: migrated (0.0012s) ===================
== 20171106101200 CreateClustersKubernetesIngressApps: migrating ==============
-- create_table(:clusters_applications_ingress)
-> 0.0131s
== 20171106101200 CreateClustersKubernetesIngressApps: migrated (0.0132s) =====
== 20171106132212 IssuesConfidentialNotNull: migrating ========================
-- change_column_null(:issues, :confidential, false)
-> 0.0011s
== 20171106132212 IssuesConfidentialNotNull: migrated (0.0501s) ===============
== 20171106133143 RenameApplicationSettingsPasswordAuthenticationEnabledToPasswordAuthenticationEnabledForWeb: migrating
-- transaction_open?()
-> 0.0000s
-- columns(:application_settings)
-> 0.0118s
-- add_column(:application_settings, :password_authentication_enabled_for_web, :boolean, {:limit=>nil, :precision=>nil, :scale=>nil})
-> 0.0025s
-- quote_table_name(:application_settings)
-> 0.0001s
-- quote_column_name(:password_authentication_enabled)
-> 0.0000s
-- quote_column_name(:password_authentication_enabled_for_web)
-> 0.0000s
-- execute("CREATE OR REPLACE FUNCTION trigger_1aa3789b513d()\nRETURNS trigger AS\n$BODY$\nBEGIN\n NEW.\"password_authentication_enabled_for_web\" := NEW.\"password_authentication_enabled\";\n RETURN NEW;\nEND;\n$BODY$\nLANGUAGE 'plpgsql'\nVOLATILE\n")
-> 0.0092s
-- execute("CREATE TRIGGER trigger_1aa3789b513d\nBEFORE INSERT OR UPDATE\nON \"application_settings\"\nFOR EACH ROW\nEXECUTE PROCEDURE trigger_1aa3789b513d()\n")
-> 0.0031s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0011s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0008s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0011s
-- execute("UPDATE \"application_settings\" SET \"password_authentication_enabled_for_web\" = \"application_settings\".\"password_authentication_enabled\" WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0027s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"password_authentication_enabled_for_web\" = \"application_settings\".\"password_authentication_enabled\" WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0019s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"password_authentication_enabled_for_web\" = \"application_settings\".\"password_authentication_enabled\" WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0074s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0013s
-- execute("UPDATE \"application_settings\" SET \"password_authentication_enabled_for_web\" = \"application_settings\".\"password_authentication_enabled\" WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0021s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"application_settings\" SET \"password_authentication_enabled_for_web\" = \"application_settings\".\"password_authentication_enabled\" WHERE \"application_settings\".\"id\" >= 5")
-> 0.0021s
-- indexes(:application_settings)
-> 0.0017s
-- foreign_keys(:application_settings)
-> 0.0054s
== 20171106133143 RenameApplicationSettingsPasswordAuthenticationEnabledToPasswordAuthenticationEnabledForWeb: migrated (0.0689s)
== 20171106133144 CleanupApplicationSettingsPasswordAuthenticationEnabledRename: migrating
-- execute("DROP TRIGGER IF EXISTS trigger_1aa3789b513d ON application_settings")
-> 0.0109s
-- execute("DROP FUNCTION IF EXISTS trigger_1aa3789b513d()")
-> 0.0139s
-- remove_column(:application_settings, :password_authentication_enabled)
-> 0.0025s
== 20171106133144 CleanupApplicationSettingsPasswordAuthenticationEnabledRename: migrated (0.0286s)
== 20171106133911 AddPasswordAuthenticationEnabledForGitToApplicationSettings: migrating
-- add_column(:application_settings, :password_authentication_enabled_for_git, :boolean, {:default=>true, :null=>false})
-> 0.0189s
== 20171106133911 AddPasswordAuthenticationEnabledForGitToApplicationSettings: migrated (0.0191s)
== 20171106135924 IssuesMilestoneIdForeignKey: migrating ======================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- foreign_keys(:issues)
-> 0.0065s
-- execute("ALTER TABLE issues\nADD CONSTRAINT fk_96b1dd429c\nFOREIGN KEY (milestone_id)\nREFERENCES milestones (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0037s
-- execute("ALTER TABLE issues VALIDATE CONSTRAINT fk_96b1dd429c;")
-> 0.0030s
== 20171106135924 IssuesMilestoneIdForeignKey: migrated (0.0469s) =============
== 20171106150657 IssuesUpdatedByIdForeignKey: migrating ======================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- index_exists?(:issues, :updated_by_id, {:where=>"updated_by_id IS NOT NULL", :algorithm=>:concurrently})
-> 0.0134s
-- add_index(:issues, :updated_by_id, {:where=>"updated_by_id IS NOT NULL", :algorithm=>:concurrently})
-> 0.0097s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- foreign_keys(:issues)
-> 0.0161s
-- execute("ALTER TABLE issues\nADD CONSTRAINT fk_ffed080f01\nFOREIGN KEY (updated_by_id)\nREFERENCES users (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0031s
-- execute("ALTER TABLE issues VALIDATE CONSTRAINT fk_ffed080f01;")
-> 0.0027s
== 20171106150657 IssuesUpdatedByIdForeignKey: migrated (0.0507s) =============
== 20171106151218 IssuesMovedToIdForeignKey: migrating ========================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- foreign_keys(:issues)
-> 0.0062s
-- execute("ALTER TABLE issues\nADD CONSTRAINT fk_a194299be1\nFOREIGN KEY (moved_to_id)\nREFERENCES issues (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0039s
-- execute("ALTER TABLE issues VALIDATE CONSTRAINT fk_a194299be1;")
-> 0.0023s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- index_exists?(:issues, :moved_to_id, {:where=>"moved_to_id IS NOT NULL", :algorithm=>:concurrently})
-> 0.0120s
-- add_index(:issues, :moved_to_id, {:where=>"moved_to_id IS NOT NULL", :algorithm=>:concurrently})
-> 0.0096s
== 20171106151218 IssuesMovedToIdForeignKey: migrated (0.0389s) ===============
== 20171106154015 RemoveIssuesBranchName: migrating ===========================
-- remove_column(:issues, :branch_name, :string)
-> 0.0009s
== 20171106154015 RemoveIssuesBranchName: migrated (0.0010s) ==================
== 20171106155656 TurnIssuesDueDateIndexToPartialIndex: migrating =============
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- index_exists?(:issues, [:project_id, :due_date, :id, :state], {:where=>"due_date IS NOT NULL", :name=>"idx_issues_on_project_id_and_due_date_and_id_and_state_partial", :algorithm=>:concurrently})
-> 0.0128s
-- add_index(:issues, [:project_id, :due_date, :id, :state], {:where=>"due_date IS NOT NULL", :name=>"idx_issues_on_project_id_and_due_date_and_id_and_state_partial", :algorithm=>:concurrently})
-> 0.0128s
-- transaction_open?()
-> 0.0000s
-- select_one("SELECT current_setting('server_version_num') AS v")
-> 0.0011s
-- execute("SET statement_timeout TO 0")
-> 0.0007s
-- index_exists?(:issues, nil, {:name=>"index_issues_on_project_id_and_due_date_and_id_and_state", :algorithm=>:concurrently})
-> 0.0132s
== 20171106155656 TurnIssuesDueDateIndexToPartialIndex: migrated (0.0422s) ====
== 20171106171453 AddTimezoneToIssuesClosedAt: migrating ======================
-- transaction_open?()
-> 0.0000s
-- columns(:issues)
-> 0.0020s
-- add_column(:issues, "closed_at_for_type_change", :datetime_with_timezone, {:limit=>nil, :precision=>nil, :scale=>nil})
-> 0.0020s
-- quote_table_name(:issues)
-> 0.0001s
-- quote_column_name(:closed_at)
-> 0.0000s
-- quote_column_name("closed_at_for_type_change")
-> 0.0000s
-- execute("CREATE OR REPLACE FUNCTION trigger_08acb26c5ecf()\nRETURNS trigger AS\n$BODY$\nBEGIN\n NEW.\"closed_at_for_type_change\" := NEW.\"closed_at\";\n RETURN NEW;\nEND;\n$BODY$\nLANGUAGE 'plpgsql'\nVOLATILE\n")
-> 0.0308s
-- execute("CREATE TRIGGER trigger_08acb26c5ecf\nBEFORE INSERT OR UPDATE\nON \"issues\"\nFOR EACH ROW\nEXECUTE PROCEDURE trigger_08acb26c5ecf()\n")
-> 0.0020s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"issues\"")
-> 0.0073s
-- indexes(:issues)
-> 0.0138s
-- foreign_keys(:issues)
-> 0.0061s
== 20171106171453 AddTimezoneToIssuesClosedAt: migrated (0.0666s) =============
== 20171106180641 CleanupAddTimezoneToIssuesClosedAt: migrating ===============
-- transaction()
-- execute("DROP TRIGGER IF EXISTS trigger_08acb26c5ecf ON issues")
-> 0.0009s
-- execute("DROP FUNCTION IF EXISTS trigger_08acb26c5ecf()")
-> 0.0007s
-- remove_column(:issues, :closed_at)
-> 0.0008s
-- rename_column(:issues, "closed_at_for_type_change", :closed_at)
-> 0.0144s
-> 0.0218s
== 20171106180641 CleanupAddTimezoneToIssuesClosedAt: migrated (0.0220s) ======
== 20171114104051 RemoveEmptyForkNetworks: migrating ==========================
-- Deleting empty ForkNetworks in batches
== 20171114104051 RemoveEmptyForkNetworks: migrated (0.0163s) =================
== 20171114150259 MergeRequestsAuthorIdForeignKey: migrating ==================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- foreign_keys(:merge_requests)
-> 0.0059s
-- execute("ALTER TABLE merge_requests\nADD CONSTRAINT fk_e719a85f8a\nFOREIGN KEY (author_id)\nREFERENCES users (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0035s
-- execute("ALTER TABLE merge_requests VALIDATE CONSTRAINT fk_e719a85f8a;")
-> 0.0039s
== 20171114150259 MergeRequestsAuthorIdForeignKey: migrated (0.1339s) =========
== 20171114160005 MergeRequestsAssigneeIdForeignKey: migrating ================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- foreign_keys(:merge_requests)
-> 0.0059s
-- execute("ALTER TABLE merge_requests\nADD CONSTRAINT fk_6149611a04\nFOREIGN KEY (assignee_id)\nREFERENCES users (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0034s
-- execute("ALTER TABLE merge_requests VALIDATE CONSTRAINT fk_6149611a04;")
-> 0.0092s
== 20171114160005 MergeRequestsAssigneeIdForeignKey: migrated (0.0238s) =======
== 20171114160904 MergeRequestsUpdatedByIdForeignKey: migrating ===============
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- index_exists?(:merge_requests, :updated_by_id, {:where=>"updated_by_id IS NOT NULL", :algorithm=>:concurrently})
-> 0.0168s
-- add_index(:merge_requests, :updated_by_id, {:where=>"updated_by_id IS NOT NULL", :algorithm=>:concurrently})
-> 0.0079s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0009s
-- foreign_keys(:merge_requests)
-> 0.0062s
-- execute("ALTER TABLE merge_requests\nADD CONSTRAINT fk_641731faff\nFOREIGN KEY (updated_by_id)\nREFERENCES users (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0029s
-- execute("ALTER TABLE merge_requests VALIDATE CONSTRAINT fk_641731faff;")
-> 0.0027s
== 20171114160904 MergeRequestsUpdatedByIdForeignKey: migrated (0.0431s) ======
== 20171114161720 MergeRequestsMergeUserIdForeignKey: migrating ===============
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- index_exists?(:merge_requests, :merge_user_id, {:where=>"merge_user_id IS NOT NULL", :algorithm=>:concurrently})
-> 0.0151s
-- add_index(:merge_requests, :merge_user_id, {:where=>"merge_user_id IS NOT NULL", :algorithm=>:concurrently})
-> 0.0079s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- foreign_keys(:merge_requests)
-> 0.0064s
-- execute("ALTER TABLE merge_requests\nADD CONSTRAINT fk_ad525e1f87\nFOREIGN KEY (merge_user_id)\nREFERENCES users (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0036s
-- execute("ALTER TABLE merge_requests VALIDATE CONSTRAINT fk_ad525e1f87;")
-> 0.0039s
== 20171114161720 MergeRequestsMergeUserIdForeignKey: migrated (0.0437s) ======
== 20171114161914 MergeRequestsSourceProjectIdForeignKey: migrating ===========
-- change_column_null(:merge_requests, :source_project_id, true)
-> 0.0025s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- foreign_keys(:merge_requests)
-> 0.0071s
-- execute("ALTER TABLE merge_requests\nADD CONSTRAINT fk_3308fe130c\nFOREIGN KEY (source_project_id)\nREFERENCES projects (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0023s
-- execute("ALTER TABLE merge_requests VALIDATE CONSTRAINT fk_3308fe130c;")
-> 0.0027s
== 20171114161914 MergeRequestsSourceProjectIdForeignKey: migrated (0.0205s) ==
== 20171114162227 MergeRequestsMilestoneIdForeignKey: migrating ===============
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- foreign_keys(:merge_requests)
-> 0.0099s
-- execute("ALTER TABLE merge_requests\nADD CONSTRAINT fk_6a5165a692\nFOREIGN KEY (milestone_id)\nREFERENCES milestones (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0041s
-- execute("ALTER TABLE merge_requests VALIDATE CONSTRAINT fk_6a5165a692;")
-> 0.0117s
== 20171114162227 MergeRequestsMilestoneIdForeignKey: migrated (0.0306s) ======
== 20171115164540 PopulateMergeRequestsLatestMergeRequestDiffIdTakeTwo: migrating
== 20171115164540 PopulateMergeRequestsLatestMergeRequestDiffIdTakeTwo: migrated (0.0067s)
== 20171116135628 AddEnvironmentScopeToClusters: migrating ====================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- transaction()
-- add_column(:clusters, :environment_scope, :string, {:default=>nil})
-> 0.0010s
-- change_column_default(:clusters, :environment_scope, "*")
-> 0.0026s
-> 0.0055s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"clusters\"")
-> 0.0013s
-- change_column_null(:clusters, :environment_scope, false)
-> 0.0027s
== 20171116135628 AddEnvironmentScopeToClusters: migrated (0.0109s) ===========
== 20171121135738 CleanUpFromMergeRequestDiffsAndCommits: migrating ===========
== 20171121135738 CleanUpFromMergeRequestDiffsAndCommits: migrated (0.0061s) ==
== 20171121144800 CiPipelinesIndexOnProjectIdRefStatusId: migrating ===========
-- index_exists?(:ci_pipelines, [:project_id, :ref, :status, :id])
-> 0.0082s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- index_exists?(:ci_pipelines, [:project_id, :ref, :status, :id], {:algorithm=>:concurrently})
-> 0.0075s
-- add_index(:ci_pipelines, [:project_id, :ref, :status, :id], {:algorithm=>:concurrently})
-> 0.0117s
-- index_exists?(:ci_pipelines, [:project_id, :ref, :status])
-> 0.0098s
-- transaction_open?()
-> 0.0000s
-- select_one("SELECT current_setting('server_version_num') AS v")
-> 0.0007s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- index_exists?(:ci_pipelines, [:project_id, :ref, :status], {:algorithm=>:concurrently})
-> 0.0095s
-- remove_index(:ci_pipelines, {:algorithm=>:concurrently, :column=>[:project_id, :ref, :status]})
-> 0.0057s
== 20171121144800 CiPipelinesIndexOnProjectIdRefStatusId: migrated (0.0553s) ==
== 20171121160421 RemoveMergeRequestDiffStCommitsAndStDiffs: migrating ========
-- remove_column(:merge_request_diffs, :st_commits, :text)
-> 0.0009s
-- remove_column(:merge_request_diffs, :st_diffs, :text)
-> 0.0011s
== 20171121160421 RemoveMergeRequestDiffStCommitsAndStDiffs: migrated (0.0022s)
== 20171122131600 AddNewProjectGuidelinesToAppearances: migrating =============
-- change_table(:appearances)
-> 0.0022s
== 20171122131600 AddNewProjectGuidelinesToAppearances: migrated (0.0026s) ====
== 20171123094802 AddCircuitbreakerCheckIntervalToApplicationSettings: migrating
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- transaction()
-- add_column(:application_settings, :circuitbreaker_check_interval, :integer, {:default=>nil})
-> 0.0015s
-- change_column_default(:application_settings, :circuitbreaker_check_interval, 1)
-> 0.0151s
-> 0.0196s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0012s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0013s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"circuitbreaker_check_interval\" = 1 WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0028s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"circuitbreaker_check_interval\" = 1 WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0020s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"circuitbreaker_check_interval\" = 1 WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0021s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"application_settings\" SET \"circuitbreaker_check_interval\" = 1 WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0124s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"circuitbreaker_check_interval\" = 1 WHERE \"application_settings\".\"id\" >= 5")
-> 0.0055s
-- change_column_null(:application_settings, :circuitbreaker_check_interval, false)
-> 0.0047s
== 20171123094802 AddCircuitbreakerCheckIntervalToApplicationSettings: migrated (0.0619s)
== 20171123101020 UpdateCircuitbreakerDefaults: migrating =====================
-- change_column_default(:application_settings, :circuitbreaker_failure_count_threshold, 3)
-> 0.0151s
-- change_column_default(:application_settings, :circuitbreaker_storage_timeout, 15)
-> 0.0172s
== 20171123101020 UpdateCircuitbreakerDefaults: migrated (0.0384s) ============
== 20171123101046 RemoveOldCircuitbreakerConfig: migrating ====================
-- remove_column(:application_settings, :circuitbreaker_backoff_threshold)
-> 0.0014s
-- remove_column(:application_settings, :circuitbreaker_failure_wait_time)
-> 0.0011s
== 20171123101046 RemoveOldCircuitbreakerConfig: migrated (0.0026s) ===========
== 20171124095655 AddIndexOnMergeRequestDiffsMergeRequestIdAndId: migrating ===
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- index_exists?(:merge_request_diffs, [:merge_request_id, :id], {:algorithm=>:concurrently})
-> 0.0032s
-- add_index(:merge_request_diffs, [:merge_request_id, :id], {:algorithm=>:concurrently})
-> 0.0100s
== 20171124095655 AddIndexOnMergeRequestDiffsMergeRequestIdAndId: migrated (0.0142s)
== 20171124100152 RemoveIndexOnMergeRequestDiffsMergeRequestDiffId: migrating =
-- index_exists?(:merge_request_diffs, :merge_request_id)
-> 0.0043s
-- transaction_open?()
-> 0.0000s
-- select_one("SELECT current_setting('server_version_num') AS v")
-> 0.0007s
-- execute("SET statement_timeout TO 0")
-> 0.0012s
-- index_exists?(:merge_request_diffs, :merge_request_id, {:algorithm=>:concurrently})
-> 0.0032s
-- remove_index(:merge_request_diffs, {:algorithm=>:concurrently, :column=>:merge_request_id})
-> 0.0054s
== 20171124100152 RemoveIndexOnMergeRequestDiffsMergeRequestDiffId: migrated (0.0160s)
== 20171124104327 MigrateKubernetesServiceToNewClustersArchitectures: migrating
== 20171124104327 MigrateKubernetesServiceToNewClustersArchitectures: migrated (0.0536s)
== 20171124125042 AddDefaultValuesToMergeRequestStates: migrating =============
-- change_column_default(:merge_requests, :state, :opened)
-> 0.0035s
-- change_column_default(:merge_requests, :merge_status, :unchecked)
-> 0.0033s
== 20171124125042 AddDefaultValuesToMergeRequestStates: migrated (0.0070s) ====
== 20171124125748 PopulateMissingMergeRequestStatuses: migrating ==============
-- Populating missing merge_requests.state values
-- Populating missing merge_requests.merge_status values. This will take a few minutes...
== 20171124125748 PopulateMissingMergeRequestStatuses: migrated (0.0049s) =====
== 20171124132536 MakeMergeRequestStatusesNotNull: migrating ==================
-- change_column_null(:merge_requests, :state, false)
-> 0.0009s
-- change_column_null(:merge_requests, :merge_status, false)
-> 0.0008s
== 20171124132536 MakeMergeRequestStatusesNotNull: migrated (0.0019s) =========
== 20171124150326 RescheduleForkNetworkCreation: migrating ====================
-- Fork networks will be populated in 20171205190711 - RescheduleForkNetworkCreationCaller
== 20171124150326 RescheduleForkNetworkCreation: migrated (0.0000s) ===========
== 20171127151038 AddEventsRelatedColumnsToMergeRequestMetrics: migrating =====
-- change_table(:merge_request_metrics)
-> 0.0051s
-- add_column(:merge_request_metrics, :latest_closed_at, :datetime_with_timezone)
-> 0.0016s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- foreign_keys(:merge_request_metrics)
-> 0.0067s
-- execute("ALTER TABLE merge_request_metrics\nADD CONSTRAINT fk_7f28d925f3\nFOREIGN KEY (merged_by_id)\nREFERENCES users (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0071s
-- execute("ALTER TABLE merge_request_metrics VALIDATE CONSTRAINT fk_7f28d925f3;")
-> 0.0714s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- foreign_keys(:merge_request_metrics)
-> 0.0058s
-- execute("ALTER TABLE merge_request_metrics\nADD CONSTRAINT fk_ae440388cc\nFOREIGN KEY (latest_closed_by_id)\nREFERENCES users (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0034s
-- execute("ALTER TABLE merge_request_metrics VALIDATE CONSTRAINT fk_ae440388cc;")
-> 0.0025s
== 20171127151038 AddEventsRelatedColumnsToMergeRequestMetrics: migrated (0.1060s)
== 20171128214150 SchedulePopulateMergeRequestMetricsWithEventsData: migrating
-- Scheduling `PopulateMergeRequestMetricsWithEventsData` jobs
== 20171128214150 SchedulePopulateMergeRequestMetricsWithEventsData: migrated (0.0033s)
== 20171204204233 AddPermanentToRedirectRoute: migrating ======================
-- add_column(:redirect_routes, :permanent, :boolean)
-> 0.0063s
== 20171204204233 AddPermanentToRedirectRoute: migrated (0.0064s) =============
== 20171205190711 RescheduleForkNetworkCreationCaller: migrating ==============
-- Populating the `fork_networks` based on existing `forked_project_links`
== 20171205190711 RescheduleForkNetworkCreationCaller: migrated (0.0176s) =====
== 20171206221519 AddPermanentIndexToRedirectRoute: migrating =================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0011s
-- index_exists?(:redirect_routes, :permanent, {:algorithm=>:concurrently})
-> 0.0067s
-- add_index(:redirect_routes, :permanent, {:algorithm=>:concurrently})
-> 0.0107s
== 20171206221519 AddPermanentIndexToRedirectRoute: migrated (0.0189s) ========
== 20171207150300 RemoveProjectLabelsGroupIdCopy: migrating ===================
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"labels\" WHERE \"labels\".\"type\" = 'ProjectLabel' AND \"labels\".\"group_id\" IS NOT NULL")
-> 0.0371s
== 20171207150300 RemoveProjectLabelsGroupIdCopy: migrated (0.0404s) ==========
== 20171207150343 RemoveSoftRemovedObjects: migrating =========================
-- execute("SET statement_timeout TO 0")
-> 0.0007s
-- index_exists?("issues", [:deleted_at, :id], {:name=>"index_on_issues_tmp"})
-> 0.0167s
-- Creating temporary index index_on_issues_tmp
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- index_exists?("issues", [:deleted_at, :id], {:name=>"index_on_issues_tmp", :where=>"deleted_at IS NOT NULL", :algorithm=>:concurrently})
-> 0.0190s
-- add_index("issues", [:deleted_at, :id], {:name=>"index_on_issues_tmp", :where=>"deleted_at IS NOT NULL", :algorithm=>:concurrently})
-> 0.0076s
-> 0.0274s
-- index_exists?("merge_requests", [:deleted_at, :id], {:name=>"index_on_merge_requests_tmp"})
-> 0.0176s
-- Creating temporary index index_on_merge_requests_tmp
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- index_exists?("merge_requests", [:deleted_at, :id], {:name=>"index_on_merge_requests_tmp", :where=>"deleted_at IS NOT NULL", :algorithm=>:concurrently})
-> 0.0192s
-- add_index("merge_requests", [:deleted_at, :id], {:name=>"index_on_merge_requests_tmp", :where=>"deleted_at IS NOT NULL", :algorithm=>:concurrently})
-> 0.0096s
-> 0.0297s
-- index_exists?("ci_pipeline_schedules", [:deleted_at, :id], {:name=>"index_on_ci_pipeline_schedules_tmp"})
-> 0.0036s
-- Creating temporary index index_on_ci_pipeline_schedules_tmp
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- index_exists?("ci_pipeline_schedules", [:deleted_at, :id], {:name=>"index_on_ci_pipeline_schedules_tmp", :where=>"deleted_at IS NOT NULL", :algorithm=>:concurrently})
-> 0.0084s
-- add_index("ci_pipeline_schedules", [:deleted_at, :id], {:name=>"index_on_ci_pipeline_schedules_tmp", :where=>"deleted_at IS NOT NULL", :algorithm=>:concurrently})
-> 0.0094s
-> 0.0187s
-- index_exists?("ci_triggers", [:deleted_at, :id], {:name=>"index_on_ci_triggers_tmp"})
-> 0.0043s
-- Creating temporary index index_on_ci_triggers_tmp
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- index_exists?("ci_triggers", [:deleted_at, :id], {:name=>"index_on_ci_triggers_tmp", :where=>"deleted_at IS NOT NULL", :algorithm=>:concurrently})rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:
PG::NotNullViolation: ERROR: column "projects_limit" contains null values
: ALTER TABLE "users" ALTER "projects_limit" SET NOT NULL
/opt/gitlab/embedded/service/gitlab-rails/db/migrate/20171229225929_change_user_project_limit_not_null_and_remove_default.rb:30:in `up'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:50:in `block (3 levels) in <top (required)>'
/opt/gitlab/embedded/bin/bundle:23:in `load'
/opt/gitlab/embedded/bin/bundle:23:in `<main>'
Caused by:
ActiveRecord::StatementInvalid: PG::NotNullViolation: ERROR: column "projects_limit" contains null values
: ALTER TABLE "users" ALTER "projects_limit" SET NOT NULL
/opt/gitlab/embedded/service/gitlab-rails/db/migrate/20171229225929_change_user_project_limit_not_null_and_remove_default.rb:30:in `up'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:50:in `block (3 levels) in <top (required)>'
/opt/gitlab/embedded/bin/bundle:23:in `load'
/opt/gitlab/embedded/bin/bundle:23:in `<main>'
Caused by:
PG::NotNullViolation: ERROR: column "projects_limit" contains null values
/opt/gitlab/embedded/service/gitlab-rails/db/migrate/20171229225929_change_user_project_limit_not_null_and_remove_default.rb:30:in `up'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:50:in `block (3 levels) in <top (required)>'
/opt/gitlab/embedded/bin/bundle:23:in `load'
/opt/gitlab/embedded/bin/bundle:23:in `<main>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
-> 0.0062s
-- add_index("ci_triggers", [:deleted_at, :id], {:name=>"index_on_ci_triggers_tmp", :where=>"deleted_at IS NOT NULL", :algorithm=>:concurrently})
-> 0.0075s
-> 0.0157s
-- Removing soft removed rows from issues
-> 0.0034s
-- Removing soft removed rows from merge_requests
-> 0.0031s
-- Removing soft removed rows from ci_pipeline_schedules
-> 0.0101s
-- Removing soft removed rows from ci_triggers
-> 0.0086s
-- index_exists?("issues", [:deleted_at, :id], {:name=>"index_on_issues_tmp"})
-> 0.0175s
-- Removing temporary index index_on_issues_tmp
-- transaction_open?()
-> 0.0000s
-- select_one("SELECT current_setting('server_version_num') AS v")
-> 0.0008s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- indexes("issues")
-> 0.0173s
-- remove_index("issues", {:algorithm=>:concurrently, :name=>"index_on_issues_tmp"})
-> 0.0058s
-> 0.0248s
-- index_exists?("merge_requests", [:deleted_at, :id], {:name=>"index_on_merge_requests_tmp"})
-> 0.0214s
-- Removing temporary index index_on_merge_requests_tmp
-- transaction_open?()
-> 0.0000s
-- select_one("SELECT current_setting('server_version_num') AS v")
-> 0.0006s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- indexes("merge_requests")
-> 0.0194s
-- remove_index("merge_requests", {:algorithm=>:concurrently, :name=>"index_on_merge_requests_tmp"})
-> 0.0055s
-> 0.0264s
-- index_exists?("ci_pipeline_schedules", [:deleted_at, :id], {:name=>"index_on_ci_pipeline_schedules_tmp"})
-> 0.0052s
-- Removing temporary index index_on_ci_pipeline_schedules_tmp
-- transaction_open?()
-> 0.0000s
-- select_one("SELECT current_setting('server_version_num') AS v")
-> 0.0007s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- indexes("ci_pipeline_schedules")
-> 0.0051s
-- remove_index("ci_pipeline_schedules", {:algorithm=>:concurrently, :name=>"index_on_ci_pipeline_schedules_tmp"})
-> 0.0052s
-> 0.0120s
-- index_exists?("ci_triggers", [:deleted_at, :id], {:name=>"index_on_ci_triggers_tmp"})
-> 0.0045s
-- Removing temporary index index_on_ci_triggers_tmp
-- transaction_open?()
-> 0.0000s
-- select_one("SELECT current_setting('server_version_num') AS v")
-> 0.0009s
-- execute("SET statement_timeout TO 0")
-> 0.0037s
-- indexes("ci_triggers")
-> 0.0037s
-- remove_index("ci_triggers", {:algorithm=>:concurrently, :name=>"index_on_ci_triggers_tmp"})
-> 0.0050s
-> 0.0138s
== 20171207150343 RemoveSoftRemovedObjects: migrated (0.3435s) ================
== 20171207150344 RemoveDeletedAtColumns: migrating ===========================
-- column_exists?(:issues, :deleted_at)
-> 0.0022s
-- remove_column(:issues, :deleted_at)
-> 0.0030s
-- column_exists?(:merge_requests, :deleted_at)
-> 0.0029s
-- remove_column(:merge_requests, :deleted_at)
-> 0.0138s
-- column_exists?(:namespaces, :deleted_at)
-> 0.0025s
-- remove_column(:namespaces, :deleted_at)
-> 0.0036s
-- column_exists?(:ci_pipeline_schedules, :deleted_at)
-> 0.0021s
-- remove_column(:ci_pipeline_schedules, :deleted_at)
-> 0.0022s
-- column_exists?(:ci_triggers, :deleted_at)
-> 0.0018s
-- remove_column(:ci_triggers, :deleted_at)
-> 0.0019s
== 20171207150344 RemoveDeletedAtColumns: migrated (0.0368s) ==================
== 20171207185153 AddMergeRequestStateIndex: migrating ========================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- index_exists?(:merge_requests, [:source_project_id, :source_branch], {:where=>"state = 'opened'", :name=>"index_merge_requests_on_source_project_and_branch_state_opened", :algorithm=>:concurrently})
-> 0.0131s
-- add_index(:merge_requests, [:source_project_id, :source_branch], {:where=>"state = 'opened'", :name=>"index_merge_requests_on_source_project_and_branch_state_opened", :algorithm=>:concurrently})
-> 0.0078s
== 20171207185153 AddMergeRequestStateIndex: migrated (0.0217s) ===============
== 20171211145425 AddCanPushToDeployKeysProjects: migrating ===================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0007s
-- transaction()
-- add_column(:deploy_keys_projects, :can_push, :boolean, {:default=>nil})
-> 0.0009s
-- change_column_default(:deploy_keys_projects, :can_push, false)
-> 0.0022s
-> 0.0055s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"deploy_keys_projects\"")
-> 0.0028s
-- change_column_null(:deploy_keys_projects, :can_push, false)
-> 0.0014s
== 20171211145425 AddCanPushToDeployKeysProjects: migrated (0.0111s) ==========
== 20171212203433 CreateClustersApplicationsPrometheus: migrating =============
-- create_table(:clusters_applications_prometheus)
-> 0.0115s
== 20171212203433 CreateClustersApplicationsPrometheus: migrated (0.0116s) ====
== 20171213160445 MigrateGithubImporterAdvanceStageSidekiqQueue: migrating ====
== 20171213160445 MigrateGithubImporterAdvanceStageSidekiqQueue: migrated (0.0005s)
== 20171214144320 AddStoreColumnToUploads: migrating ==========================
-- add_column(:uploads, :store, :integer)
-> 0.0008s
== 20171214144320 AddStoreColumnToUploads: migrated (0.0012s) =================
== 20171215113714 PopulateCanPushFromDeployKeysProjects: migrating ============
== 20171215113714 PopulateCanPushFromDeployKeysProjects: migrated (0.0045s) ===
== 20171215121205 PostPopulateCanPushFromDeployKeysProjects: migrating ========
== 20171215121205 PostPopulateCanPushFromDeployKeysProjects: migrated (0.0017s)
== 20171215121259 RemoveCanPushFromKeys: migrating ============================
-- remove_column(:keys, :can_push)
-> 0.0044s
== 20171215121259 RemoveCanPushFromKeys: migrated (0.0045s) ===================
== 20171216111734 CleanUpForMembers: migrating ================================
== 20171216111734 CleanUpForMembers: migrated (0.0414s) =======================
== 20171216112339 AddForeignKeyForMembers: migrating ==========================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0003s
-- foreign_keys(:members)
-> 0.0058s
-- execute("ALTER TABLE members\nADD CONSTRAINT fk_2e88fb7ce9\nFOREIGN KEY (user_id)\nREFERENCES users (id)\nON DELETE CASCADE\nNOT VALID;\n")
-> 0.0029s
-- execute("ALTER TABLE members VALIDATE CONSTRAINT fk_2e88fb7ce9;")
-> 0.0025s
== 20171216112339 AddForeignKeyForMembers: migrated (0.0122s) =================
== 20171219121201 NormalizeExternUidFromIdentities: migrating =================
== 20171219121201 NormalizeExternUidFromIdentities: migrated (0.0161s) ========
== 20171220191323 AddIndexOnNamespacesLowerName: migrating ====================
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_on_namespaces_lower_name ON namespaces (lower(name));")
-> 0.0041s
== 20171220191323 AddIndexOnNamespacesLowerName: migrated (0.0057s) ===========
== 20171221140220 ScheduleIssuesClosedAtTypeChange: migrating =================
-- columns("issues")
-> 0.0020s
== 20171221140220 ScheduleIssuesClosedAtTypeChange: migrated (0.0021s) ========
== 20171222115326 AddConfidentialNoteEventsToWebHooks: migrating ==============
-- add_column(:web_hooks, :confidential_note_events, :boolean)
-> 0.0036s
== 20171222115326 AddConfidentialNoteEventsToWebHooks: migrated (0.0039s) =====
== 20171222183504 AddJobsCacheIndexToProject: migrating =======================
-- add_column(:projects, :jobs_cache_index, :integer)
-> 0.0011s
== 20171222183504 AddJobsCacheIndexToProject: migrated (0.0012s) ==============
== 20171229225929 ChangeUserProjectLimitNotNullAndRemoveDefault: migrating ====
-- change_column_null(:users, :projects_limit, false)
================================================================================
Error executing action `run` on resource 'bash[migrate gitlab-rails database]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of "bash" "/tmp/chef-script20180504-12021-1gw9z1f" ----
STDOUT: == 20141126120926 AddMergeRequestRebaseEnabledToProjects: migrating ===========
-- transaction_open?()
-> 0.0001s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- transaction()
-- add_column(:projects, :merge_requests_rebase_enabled, :boolean, {:default=>nil})
-> 0.0431s
-- change_column_default(:projects, :merge_requests_rebase_enabled, false)
-> 0.0855s
-> 0.1329s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"projects\"")
-> 0.0215s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" ORDER BY \"projects\".\"id\" ASC LIMIT 1")
-> 0.0023s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 3 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0011s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 3 AND \"projects\".\"id\" < 4")
-> 0.0037s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 4 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0011s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 4 AND \"projects\".\"id\" < 7")
-> 0.0021s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 7 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 7 AND \"projects\".\"id\" < 8")
-> 0.0026s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 8 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0013s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 8 AND \"projects\".\"id\" < 12")
-> 0.0022s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 12 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 12 AND \"projects\".\"id\" < 13")
-> 0.0018s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 13 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 13 AND \"projects\".\"id\" < 14")
-> 0.0024s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 14 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 14 AND \"projects\".\"id\" < 17")
-> 0.0015s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 17 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 17 AND \"projects\".\"id\" < 18")
-> 0.0016s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 18 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 18 AND \"projects\".\"id\" < 19")
-> 0.0014s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 19 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0011s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 19 AND \"projects\".\"id\" < 20")
-> 0.0015s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 20 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 20 AND \"projects\".\"id\" < 22")
-> 0.0016s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 22 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 22")
-> 0.0016s
-- change_column_null(:projects, :merge_requests_rebase_enabled, false)
-> 0.0014s
== 20141126120926 AddMergeRequestRebaseEnabledToProjects: migrated (0.2137s) ==
== 20150827121444 AddFastForwardOptionToProject: migrating ====================
-- column_exists?(:projects, :merge_requests_ff_only_enabled)
-> 0.0043s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- transaction()
-- add_column(:projects, :merge_requests_ff_only_enabled, :boolean, {:default=>nil})
-> 0.0010s
-- change_column_default(:projects, :merge_requests_ff_only_enabled, false)
-> 0.0041s
-> 0.0074s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"projects\"")
-> 0.0011s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" ORDER BY \"projects\".\"id\" ASC LIMIT 1")
-> 0.0009s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 3 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 3 AND \"projects\".\"id\" < 4")
-> 0.0017s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 4 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 4 AND \"projects\".\"id\" < 7")
-> 0.0015s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 7 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 7 AND \"projects\".\"id\" < 8")
-> 0.0016s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 8 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 8 AND \"projects\".\"id\" < 12")
-> 0.0031s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 12 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0011s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 12 AND \"projects\".\"id\" < 13")
-> 0.0019s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 13 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 13 AND \"projects\".\"id\" < 14")
-> 0.0027s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 14 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 14 AND \"projects\".\"id\" < 17")
-> 0.0018s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 17 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0011s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 17 AND \"projects\".\"id\" < 18")
-> 0.0023s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 18 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 18 AND \"projects\".\"id\" < 19")
-> 0.0021s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 19 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 19 AND \"projects\".\"id\" < 20")
-> 0.0023s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 20 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0012s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 20 AND \"projects\".\"id\" < 22")
-> 0.0034s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 22 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 22")
-> 0.0018s
-- change_column_null(:projects, :merge_requests_ff_only_enabled, false)
-> 0.0069s
== 20150827121444 AddFastForwardOptionToProject: migrated (0.0723s) ===========
== 20160301174731 AddFingerprintIndex: migrating ==============================
-- index_exists?(:keys, :fingerprint)
-> 0.0061s
== 20160301174731 AddFingerprintIndex: migrated (0.0063s) =====================
== 20160621123729 AddRebaseCommitShaToMergeRequests: migrating ================
-- column_exists?(:merge_requests, :rebase_commit_sha)
-> 0.0023s
-- add_column(:merge_requests, :rebase_commit_sha, :string)
-> 0.0018s
== 20160621123729 AddRebaseCommitShaToMergeRequests: migrated (0.0042s) =======
== 20160713200638 AddRepositoryReadOnlyToProjects: migrating ==================
-- add_column(:projects, :repository_read_only, :boolean)
-> 0.0011s
== 20160713200638 AddRepositoryReadOnlyToProjects: migrated (0.0012s) =========
== 20170523073948 RemoveAssigneeIdFromIssue: migrating ========================
-- remove_column(:issues, :assignee_id)
-> 0.0409s
== 20170523073948 RemoveAssigneeIdFromIssue: migrated (0.0410s) ===============
== 20170531180233 AddAuthorizedKeysEnabledToApplicationSettings: migrating ====
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- transaction()
-- add_column(:application_settings, :authorized_keys_enabled, :boolean, {:default=>nil})
-> 0.0018s
-- change_column_default(:application_settings, :authorized_keys_enabled, true)
-> 0.0121s
-> 0.0167s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0011s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0006s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"application_settings\" SET \"authorized_keys_enabled\" = 't' WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0021s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"authorized_keys_enabled\" = 't' WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0015s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"authorized_keys_enabled\" = 't' WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0015s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"authorized_keys_enabled\" = 't' WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0015s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"authorized_keys_enabled\" = 't' WHERE \"application_settings\".\"id\" >= 5")
-> 0.0015s
-- change_column_null(:application_settings, :authorized_keys_enabled, false)
-> 0.0015s
== 20170531180233 AddAuthorizedKeysEnabledToApplicationSettings: migrated (0.0460s)
== 20170601163708 AddArtifactsStoreToCiBuild: migrating =======================
-- add_column(:ci_builds, :artifacts_file_store, :integer)
-> 0.0018s
-- add_column(:ci_builds, :artifacts_metadata_store, :integer)
-> 0.0009s
== 20170601163708 AddArtifactsStoreToCiBuild: migrated (0.0028s) ==============
== 20170720122741 CreateUserCustomAttributes: migrating =======================
-- create_table(:user_custom_attributes)
-> 0.1575s
== 20170720122741 CreateUserCustomAttributes: migrated (0.1576s) ==============
== 20170815221154 AddDiscussionLockedToIssuable: migrating ====================
-- add_column(:merge_requests, :discussion_locked, :boolean)
-> 0.0011s
-- add_column(:issues, :discussion_locked, :boolean)
-> 0.0009s
== 20170815221154 AddDiscussionLockedToIssuable: migrated (0.0022s) ===========
== 20170825015534 AddFileStoreToLfsObjects: migrating =========================
-- add_column(:lfs_objects, :file_store, :integer)
-> 0.0019s
== 20170825015534 AddFileStoreToLfsObjects: migrated (0.0020s) ================
== 20170827123848 AddIndexOnMergeRequestDiffCommitSha: migrating ==============
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- index_exists?(:merge_request_diff_commits, :sha, {:length=>nil, :algorithm=>:concurrently})
-> 0.0029s
-- add_index(:merge_request_diff_commits, :sha, {:length=>nil, :algorithm=>:concurrently})
-> 0.0202s
== 20170827123848 AddIndexOnMergeRequestDiffCommitSha: migrated (0.0241s) =====
== 20170904092148 AddEmailConfirmation: migrating =============================
-- add_column(:emails, :confirmation_token, :string)
-> 0.0016s
-- add_column(:emails, :confirmed_at, :datetime_with_timezone)
-> 0.0008s
-- add_column(:emails, :confirmation_sent_at, :datetime_with_timezone)
-> 0.0007s
== 20170904092148 AddEmailConfirmation: migrated (0.0034s) ====================
== 20170907170235 DeleteConflictingRedirectRoutes: migrating ==================
== 20170907170235 DeleteConflictingRedirectRoutes: migrated (0.0000s) =========
== 20170909090114 AddEmailConfirmationIndex: migrating ========================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- index_exists?(:emails, :confirmation_token, {:unique=>true, :algorithm=>:concurrently})
-> 0.0036s
-- add_index(:emails, :confirmation_token, {:unique=>true, :algorithm=>:concurrently})
-> 0.0069s
== 20170909090114 AddEmailConfirmationIndex: migrated (0.0114s) ===============
== 20170909150936 AddSpentAtToTimelogs: migrating =============================
-- add_column(:timelogs, :spent_at, :datetime_with_timezone)
-> 0.0026s
== 20170909150936 AddSpentAtToTimelogs: migrated (0.0027s) ====================
== 20170912113435 CleanStagesStatusesMigration: migrating =====================
== 20170912113435 CleanStagesStatusesMigration: migrated (0.0350s) ============
== 20170918072948 CreateJobArtifacts: migrating ===============================
-- create_table(:ci_job_artifacts)
-> 0.0345s
== 20170918072948 CreateJobArtifacts: migrated (0.0346s) ======================
== 20170918072949 AddFileStoreJobArtifacts: migrating =========================
-- add_column(:ci_job_artifacts, :file_store, :integer)
-> 0.0023s
== 20170918072949 AddFileStoreJobArtifacts: migrated (0.0024s) ================
== 20170918111708 CreateProjectCustomAttributes: migrating ====================
-- create_table(:project_custom_attributes)
-> 0.0367s
== 20170918111708 CreateProjectCustomAttributes: migrated (0.0368s) ===========
== 20170918140927 CreateGroupCustomAttributes: migrating ======================
-- create_table(:group_custom_attributes)
-> 0.0332s
-- add_foreign_key(:group_custom_attributes, :namespaces, {:column=>:group_id, :on_delete=>:cascade})
-> 0.0042s
== 20170918140927 CreateGroupCustomAttributes: migrated (0.0377s) =============
== 20170919211300 RemoveTemporaryCiBuildsIndex: migrating =====================
-- index_exists?(:ci_builds, :id, {:name=>"index_for_ci_builds_retried_migration"})
-> 0.0130s
-- transaction_open?()
-> 0.0000s
-- select_one("SELECT current_setting('server_version_num') AS v")
-> 0.0008s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- index_exists?(:ci_builds, :id, {:name=>"index_for_ci_builds_retried_migration", :algorithm=>:concurrently})
-> 0.0124s
-- remove_index(:ci_builds, {:name=>"index_for_ci_builds_retried_migration", :algorithm=>:concurrently, :column=>:id})
-> 0.0068s
== 20170919211300 RemoveTemporaryCiBuildsIndex: migrated (0.0339s) ============
== 20170921101004 NormalizeLdapExternUids: migrating ==========================
== 20170921101004 NormalizeLdapExternUids: migrated (0.0366s) =================
== 20170921115009 AddProjectRepositoryStorageIndex: migrating =================
-- index_exists?(:projects, :repository_storage)
-> 0.0156s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- index_exists?(:projects, :repository_storage, {:algorithm=>:concurrently})
-> 0.0162s
-- add_index(:projects, :repository_storage, {:algorithm=>:concurrently})
-> 0.0081s
== 20170921115009 AddProjectRepositoryStorageIndex: migrated (0.0409s) ========
== 20170924094327 CreateGcpClusters: migrating ================================
-- create_table(:gcp_clusters)
-> 0.0657s
== 20170924094327 CreateGcpClusters: migrated (0.0658s) =======================
== 20170926150348 ScheduleMergeRequestDiffMigrationsTakeTwo: migrating ========
== 20170926150348 ScheduleMergeRequestDiffMigrationsTakeTwo: migrated (0.0172s)
== 20170927095921 AddCiBuildsIndexForJobscontroller: migrating ================
-- index_exists?(:ci_builds, [:project_id, :id])
-> 0.0144s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- index_exists?(:ci_builds, [:project_id, :id], {:algorithm=>:concurrently})
-> 0.0166s
-- add_index(:ci_builds, [:project_id, :id], {:algorithm=>:concurrently})
-> 0.0078s
-- index_exists?(:ci_builds, :project_id)
-> 0.0150s
-- transaction_open?()
-> 0.0000s
-- select_one("SELECT current_setting('server_version_num') AS v")
-> 0.0006s
-- execute("SET statement_timeout TO 0")
-> 0.0007s
-- index_exists?(:ci_builds, :project_id, {:algorithm=>:concurrently})
-> 0.0200s
-- remove_index(:ci_builds, {:algorithm=>:concurrently, :column=>:project_id})
-> 0.0058s
== 20170927095921 AddCiBuildsIndexForJobscontroller: migrated (0.0824s) =======
== 20170927112318 UpdateLegacyDiffNotesTypeForImport: migrating ===============
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"notes\" WHERE \"notes\".\"type\" = 'Github::Import::LegacyDiffNote'")
-> 0.1406s
== 20170927112318 UpdateLegacyDiffNotesTypeForImport: migrated (0.1451s) ======
== 20170927112319 UpdateNotesTypeForImport: migrating =========================
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"notes\" WHERE \"notes\".\"type\" = 'Github::Import::Note'")
-> 0.0009s
== 20170927112319 UpdateNotesTypeForImport: migrated (0.0015s) ================
== 20170927122209 AddPartialIndexForLabelsTemplate: migrating =================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- index_exists?("labels", ["template"], {:where=>"template", :algorithm=>:concurrently})
-> 0.0088s
-- add_index("labels", ["template"], {:where=>"template", :algorithm=>:concurrently})
-> 0.0096s
== 20170927122209 AddPartialIndexForLabelsTemplate: migrated (0.0192s) ========
== 20170927161718 CreateGpgKeySubkeys: migrating ==============================
-- create_table(:gpg_key_subkeys)
-> 0.0636s
-- add_reference(:gpg_signatures, :gpg_key_subkey, {:index=>true, :foreign_key=>{:on_delete=>:nullify}})
-> 0.0268s
== 20170927161718 CreateGpgKeySubkeys: migrated (0.0906s) =====================
== 20170928100231 AddCompositeIndexOnMergeRequestsMergeCommitSha: migrating ===
-- index_exists?(:merge_requests, [:target_project_id, :merge_commit_sha, :id], {:name=>"index_merge_requests_on_tp_id_and_merge_commit_sha_and_id"})
-> 0.0198s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- index_exists?(:merge_requests, [:target_project_id, :merge_commit_sha, :id], {:name=>"index_merge_requests_on_tp_id_and_merge_commit_sha_and_id", :algorithm=>:concurrently})
-> 0.0143s
-- add_index(:merge_requests, [:target_project_id, :merge_commit_sha, :id], {:name=>"index_merge_requests_on_tp_id_and_merge_commit_sha_and_id", :algorithm=>:concurrently})
-> 0.0077s
== 20170928100231 AddCompositeIndexOnMergeRequestsMergeCommitSha: migrated (0.0427s)
== 20170928124105 CreateForkNetworks: migrating ===============================
-- create_table(:fork_networks)
-> 0.0591s
-- transaction_open?()
-> 0.0001s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- foreign_keys(:fork_networks)
-> 0.0066s
-- execute("ALTER TABLE fork_networks\nADD CONSTRAINT fk_e7b436b2b5\nFOREIGN KEY (root_project_id)\nREFERENCES projects (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0025s
-- execute("ALTER TABLE fork_networks VALIDATE CONSTRAINT fk_e7b436b2b5;")
-> 0.0022s
== 20170928124105 CreateForkNetworks: migrated (0.0715s) ======================
== 20170928133643 CreateForkNetworkMembers: migrating =========================
-- create_table(:fork_network_members)
-> 0.0311s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- foreign_keys(:fork_network_members)
-> 0.0052s
-- execute("ALTER TABLE fork_network_members\nADD CONSTRAINT fk_b01280dae4\nFOREIGN KEY (forked_from_project_id)\nREFERENCES projects (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0027s
-- execute("ALTER TABLE fork_network_members VALIDATE CONSTRAINT fk_b01280dae4;")
-> 0.0019s
== 20170928133643 CreateForkNetworkMembers: migrated (0.0420s) ================
== 20170929080234 AddFailureReasonToPipelines: migrating ======================
-- add_column(:ci_pipelines, :failure_reason, :integer)
-> 0.0041s
== 20170929080234 AddFailureReasonToPipelines: migrated (0.0043s) =============
== 20170929131201 PopulateForkNetworks: migrating =============================
-- Fork networks will be populated in 20171205190711 - RescheduleForkNetworkCreationCaller
== 20170929131201 PopulateForkNetworks: migrated (0.0000s) ====================
== 20171004121444 MakeSureFastForwardOptionExists: migrating ==================
-- column_exists?(:projects, :merge_requests_ff_only_enabled)
-> 0.0035s
== 20171004121444 MakeSureFastForwardOptionExists: migrated (0.0036s) =========
== 20171005130944 ScheduleCreateGpgKeySubkeysFromGpgKeys: migrating ===========
== 20171005130944 ScheduleCreateGpgKeySubkeysFromGpgKeys: migrated (0.0049s) ==
== 20171006090001 CreateCiBuildTraceSections: migrating =======================
-- create_table(:ci_build_trace_sections)
-> 0.0190s
-- add_index(:ci_build_trace_sections, [:build_id, :section_name_id], {:unique=>true})
-> 0.0077s
== 20171006090001 CreateCiBuildTraceSections: migrated (0.0270s) ==============
== 20171006090010 AddBuildForeignKeyToCiBuildTraceSections: migrating =========
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- foreign_keys(:ci_build_trace_sections)
-> 0.0056s
-- execute("ALTER TABLE ci_build_trace_sections\nADD CONSTRAINT fk_4ebe41f502\nFOREIGN KEY (build_id)\nREFERENCES ci_builds (id)\nON DELETE CASCADE\nNOT VALID;\n")
-> 0.0029s
-- execute("ALTER TABLE ci_build_trace_sections VALIDATE CONSTRAINT fk_4ebe41f502;")
-> 0.0028s
== 20171006090010 AddBuildForeignKeyToCiBuildTraceSections: migrated (0.0126s)
== 20171006090100 CreateCiBuildTraceSectionNames: migrating ===================
-- create_table(:ci_build_trace_section_names)
-> 0.0253s
-- add_index(:ci_build_trace_section_names, [:project_id, :name], {:unique=>true})
-> 0.0063s
== 20171006090100 CreateCiBuildTraceSectionNames: migrated (0.0318s) ==========
== 20171006091000 AddNameForeignKeyToCiBuildTraceSections: migrating ==========
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- foreign_keys(:ci_build_trace_sections)
-> 0.0053s
-- execute("ALTER TABLE ci_build_trace_sections\nADD CONSTRAINT fk_264e112c66\nFOREIGN KEY (section_name_id)\nREFERENCES ci_build_trace_section_names (id)\nON DELETE CASCADE\nNOT VALID;\n")
-> 0.0028s
-- execute("ALTER TABLE ci_build_trace_sections VALIDATE CONSTRAINT fk_264e112c66;")
-> 0.0029s
== 20171006091000 AddNameForeignKeyToCiBuildTraceSections: migrated (0.0121s) =
== 20171006220837 AddGlobalRateLimitsToApplicationSettings: migrating =========
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0008s
-- transaction()
-- add_column(:application_settings, :throttle_unauthenticated_enabled, :boolean, {:default=>nil})
-> 0.0021s
-- change_column_default(:application_settings, :throttle_unauthenticated_enabled, false)
-> 0.0092s
-> 0.0134s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0010s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0062s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0014s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0032s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0013s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0027s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0018s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0007s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0016s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0011s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 5")
-> 0.0022s
-- change_column_null(:application_settings, :throttle_unauthenticated_enabled, false)
-> 0.0014s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- transaction()
-- add_column(:application_settings, :throttle_unauthenticated_requests_per_period, :integer, {:default=>nil})
-> 0.0011s
-- change_column_default(:application_settings, :throttle_unauthenticated_requests_per_period, 3600)
-> 0.0134s
-> 0.0173s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0010s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0008s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_requests_per_period\" = 3600 WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0017s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_requests_per_period\" = 3600 WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0020s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_requests_per_period\" = 3600 WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0019s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_requests_per_period\" = 3600 WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0018s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_requests_per_period\" = 3600 WHERE \"application_settings\".\"id\" >= 5")
-> 0.0019s
-- change_column_null(:application_settings, :throttle_unauthenticated_requests_per_period, false)
-> 0.0018s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- transaction()
-- add_column(:application_settings, :throttle_unauthenticated_period_in_seconds, :integer, {:default=>nil})
-> 0.0104s
-- change_column_default(:application_settings, :throttle_unauthenticated_period_in_seconds, 3600)
-> 0.0105s
-> 0.0311s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0011s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0008s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0007s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0021s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0018s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0015s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0134s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0018s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 5")
-> 0.0020s
-- change_column_null(:application_settings, :throttle_unauthenticated_period_in_seconds, false)
-> 0.0021s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- transaction()
-- add_column(:application_settings, :throttle_authenticated_api_enabled, :boolean, {:default=>nil})
-> 0.0011s
-- change_column_default(:application_settings, :throttle_authenticated_api_enabled, false)
-> 0.0096s
-> 0.0132s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0016s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0010s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0013s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0020s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0020s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0016s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0017s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0012s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 5")
-> 0.0023s
-- change_column_null(:application_settings, :throttle_authenticated_api_enabled, false)
-> 0.0019s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- transaction()
-- add_column(:application_settings, :throttle_authenticated_api_requests_per_period, :integer, {:default=>nil})
-> 0.0013s
-- change_column_default(:application_settings, :throttle_authenticated_api_requests_per_period, 7200)
-> 0.0159s
-> 0.0211s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0011s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0008s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_requests_per_period\" = 7200 WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0021s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_requests_per_period\" = 7200 WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0018s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_requests_per_period\" = 7200 WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0026s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0012s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_requests_per_period\" = 7200 WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0024s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0016s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_requests_per_period\" = 7200 WHERE \"application_settings\".\"id\" >= 5")
-> 0.0026s
-- change_column_null(:application_settings, :throttle_authenticated_api_requests_per_period, false)
-> 0.0017s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- transaction()
-- add_column(:application_settings, :throttle_authenticated_api_period_in_seconds, :integer, {:default=>nil})
-> 0.0011s
-- change_column_default(:application_settings, :throttle_authenticated_api_period_in_seconds, 3600)
-> 0.0107s
-> 0.0142s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0011s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0007s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0017s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0024s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0012s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0030s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0112s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0091s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 5")
-> 0.0029s
-- change_column_null(:application_settings, :throttle_authenticated_api_period_in_seconds, false)
-> 0.0056s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- transaction()
-- add_column(:application_settings, :throttle_authenticated_web_enabled, :boolean, {:default=>nil})
-> 0.0010s
-- change_column_default(:application_settings, :throttle_authenticated_web_enabled, false)
-> 0.0113s
-> 0.0152s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0012s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0007s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0019s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0023s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0017s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0011s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0018s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 5")
-> 0.0016s
-- change_column_null(:application_settings, :throttle_authenticated_web_enabled, false)
-> 0.0023s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- transaction()
-- add_column(:application_settings, :throttle_authenticated_web_requests_per_period, :integer, {:default=>nil})
-> 0.0012s
-- change_column_default(:application_settings, :throttle_authenticated_web_requests_per_period, 7200)
-> 0.0105s
-> 0.0141s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0031s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0011s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_requests_per_period\" = 7200 WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0020s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_requests_per_period\" = 7200 WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0015s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_requests_per_period\" = 7200 WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0016s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_requests_per_period\" = 7200 WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0016s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_requests_per_period\" = 7200 WHERE \"application_settings\".\"id\" >= 5")
-> 0.0017s
-- change_column_null(:application_settings, :throttle_authenticated_web_requests_per_period, false)
-> 0.0017s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- transaction()
-- add_column(:application_settings, :throttle_authenticated_web_period_in_seconds, :integer, {:default=>nil})
-> 0.0012s
-- change_column_default(:application_settings, :throttle_authenticated_web_period_in_seconds, 3600)
-> 0.0116s
-> 0.0149s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0010s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0007s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0007s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0025s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0007s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0022s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0027s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0015s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0017s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 5")
-> 0.0016s
-- change_column_null(:application_settings, :throttle_authenticated_web_period_in_seconds, false)
-> 0.0015s
== 20171006220837 AddGlobalRateLimitsToApplicationSettings: migrated (0.4119s)
== 20171012101043 AddCircuitBreakerPropertiesToApplicationSettings: migrating =
-- add_column(:application_settings, :circuitbreaker_failure_count_threshold, :integer, {:default=>160})
-> 0.0250s
-- add_column(:application_settings, :circuitbreaker_failure_wait_time, :integer, {:default=>30})
-> 0.0183s
-- add_column(:application_settings, :circuitbreaker_failure_reset_time, :integer, {:default=>1800})
-> 0.0205s
-- add_column(:application_settings, :circuitbreaker_storage_timeout, :integer, {:default=>30})
-> 0.0179s
== 20171012101043 AddCircuitBreakerPropertiesToApplicationSettings: migrated (0.0822s)
== 20171012125712 MigrateUserAuthenticationTokenToPersonalAccessToken: migrating
-- execute("INSERT INTO personal_access_tokens (user_id, token, name, created_at, updated_at, scopes)\nSELECT id, authentication_token, 'Private Token', NOW(), NOW(), '---\n- api\n'\nFROM users\nWHERE authentication_token IS NOT NULL\nAND admin = FALSE\nAND NOT EXISTS (\n SELECT true\n FROM personal_access_tokens\n WHERE user_id = users.id\n AND token = users.authentication_token\n)\n")
-> 0.0234s
-- execute("INSERT INTO personal_access_tokens (user_id, token, name, created_at, updated_at, scopes)\nSELECT id, authentication_token, 'Private Token', NOW(), NOW(), '---\n- api\n- sudo\n'\nFROM users\nWHERE authentication_token IS NOT NULL\nAND admin = TRUE\nAND NOT EXISTS (\n SELECT true\n FROM personal_access_tokens\n WHERE user_id = users.id\n AND token = users.authentication_token\n)\n")
-> 0.0020s
== 20171012125712 MigrateUserAuthenticationTokenToPersonalAccessToken: migrated (0.0266s)
== 20171012150314 RemoveUserAuthenticationToken: migrating ====================
-- remove_column(:users, :authentication_token)
-> 0.0052s
== 20171012150314 RemoveUserAuthenticationToken: migrated (0.0053s) ===========
== 20171013094327 CreateNewClustersArchitectures: migrating ===================
-- create_table(:clusters)
-> 0.0262s
-- create_table(:cluster_projects)
-> 0.0297s
-- create_table(:cluster_platforms_kubernetes)
-> 0.0210s
-- create_table(:cluster_providers_gcp)
-> 0.0176s
== 20171013094327 CreateNewClustersArchitectures: migrated (0.0948s) ==========
== 20171013104327 MigrateGcpClustersToNewClustersArchitectures: migrating =====
== 20171013104327 MigrateGcpClustersToNewClustersArchitectures: migrated (0.0084s)
== 20171017145932 AddNewCircuitbreakerSettingsToApplicationSettings: migrating
-- add_column(:application_settings, :circuitbreaker_access_retries, :integer, {:default=>3})
-> 0.0199s
-- add_column(:application_settings, :circuitbreaker_backoff_threshold, :integer, {:default=>80})
-> 0.0165s
== 20171017145932 AddNewCircuitbreakerSettingsToApplicationSettings: migrated (0.0367s)
== 20171019141859 FixDevTimezoneSchema: migrating =============================
== 20171019141859 FixDevTimezoneSchema: migrated (0.0000s) ====================
== 20171025110159 AddLatestMergeRequestDiffIdToMergeRequests: migrating =======
-- add_column(:merge_requests, :latest_merge_request_diff_id, :integer)
-> 0.0017s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- index_exists?(:merge_requests, :latest_merge_request_diff_id, {:algorithm=>:concurrently})
-> 0.0222s
-- add_index(:merge_requests, :latest_merge_request_diff_id, {:algorithm=>:concurrently})
-> 0.0071s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- foreign_keys(:merge_requests)
-> 0.0052s
-- execute("ALTER TABLE merge_requests\nADD CONSTRAINT fk_06067f5644\nFOREIGN KEY (latest_merge_request_diff_id)\nREFERENCES merge_request_diffs (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0128s
-- execute("ALTER TABLE merge_requests VALIDATE CONSTRAINT fk_06067f5644;")
-> 0.1212s
== 20171025110159 AddLatestMergeRequestDiffIdToMergeRequests: migrated (0.1723s)
== 20171026082505 ScheduleMergeRequestLatestMergeRequestDiffIdMigrations: migrating
== 20171026082505 ScheduleMergeRequestLatestMergeRequestDiffIdMigrations: migrated (0.0071s)
== 20171031100710 CreateClustersKubernetesHelmApps: migrating =================
-- create_table(:clusters_applications_helm)
-> 0.0220s
== 20171031100710 CreateClustersKubernetesHelmApps: migrated (0.0221s) ========
== 20171101130535 AddGitalyTimeoutPropertiesToApplicationSettings: migrating ==
-- transaction_open?()
-> 0.0001s
-- execute("SET statement_timeout TO 0")
-> 0.0010s
-- transaction()
-- add_column(:application_settings, :gitaly_timeout_default, :integer, {:default=>nil})
-> 0.0023s
-- change_column_default(:application_settings, :gitaly_timeout_default, 55)
-> 0.0197s
-> 0.0257s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0016s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0012s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_default\" = 55 WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0031s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0011s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_default\" = 55 WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0023s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_default\" = 55 WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0020s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_default\" = 55 WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0015s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0007s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_default\" = 55 WHERE \"application_settings\".\"id\" >= 5")
-> 0.0017s
-- change_column_null(:application_settings, :gitaly_timeout_default, false)
-> 0.0017s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- transaction()
-- add_column(:application_settings, :gitaly_timeout_medium, :integer, {:default=>nil})
-> 0.0011s
-- change_column_default(:application_settings, :gitaly_timeout_medium, 30)
-> 0.0148s
-> 0.0198s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0012s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0095s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_medium\" = 30 WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0020s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_medium\" = 30 WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0018s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0011s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_medium\" = 30 WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0020s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_medium\" = 30 WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0018s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_medium\" = 30 WHERE \"application_settings\".\"id\" >= 5")
-> 0.0020s
-- change_column_null(:application_settings, :gitaly_timeout_medium, false)
-> 0.0017s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- transaction()
-- add_column(:application_settings, :gitaly_timeout_fast, :integer, {:default=>nil})
-> 0.0011s
-- change_column_default(:application_settings, :gitaly_timeout_fast, 10)
-> 0.0128s
-> 0.0162s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0011s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0011s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_fast\" = 10 WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0021s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_fast\" = 10 WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0024s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0011s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_fast\" = 10 WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0020s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_fast\" = 10 WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0019s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_fast\" = 10 WHERE \"application_settings\".\"id\" >= 5")
-> 0.0015s
-- change_column_null(:application_settings, :gitaly_timeout_fast, false)
-> 0.0016s
== 20171101130535 AddGitalyTimeoutPropertiesToApplicationSettings: migrated (0.1434s)
== 20171101134435 RemoveRefFetchedFromMergeRequests: migrating ================
-- remove_column(:merge_requests, :ref_fetched, :boolean)
-> 0.0011s
== 20171101134435 RemoveRefFetchedFromMergeRequests: migrated (0.0012s) =======
== 20171103000000 SetUploadsPathSizeForMysql: migrating =======================
-- change_column(:uploads, :path, :string, {:limit=>511})
-> 0.0287s
== 20171103000000 SetUploadsPathSizeForMysql: migrated (0.0288s) ==============
== 20171103140253 TrackUntrackedUploads: migrating ============================
== 20171103140253 TrackUntrackedUploads: migrated (0.0012s) ===================
== 20171106101200 CreateClustersKubernetesIngressApps: migrating ==============
-- create_table(:clusters_applications_ingress)
-> 0.0131s
== 20171106101200 CreateClustersKubernetesIngressApps: migrated (0.0132s) =====
== 20171106132212 IssuesConfidentialNotNull: migrating ========================
-- change_column_null(:issues, :confidential, false)
-> 0.0011s
== 20171106132212 IssuesConfidentialNotNull: migrated (0.0501s) ===============
== 20171106133143 RenameApplicationSettingsPasswordAuthenticationEnabledToPasswordAuthenticationEnabledForWeb: migrating
-- transaction_open?()
-> 0.0000s
-- columns(:application_settings)
-> 0.0118s
-- add_column(:application_settings, :password_authentication_enabled_for_web, :boolean, {:limit=>nil, :precision=>nil, :scale=>nil})
-> 0.0025s
-- quote_table_name(:application_settings)
-> 0.0001s
-- quote_column_name(:password_authentication_enabled)
-> 0.0000s
-- quote_column_name(:password_authentication_enabled_for_web)
-> 0.0000s
-- execute("CREATE OR REPLACE FUNCTION trigger_1aa3789b513d()\nRETURNS trigger AS\n$BODY$\nBEGIN\n NEW.\"password_authentication_enabled_for_web\" := NEW.\"password_authentication_enabled\";\n RETURN NEW;\nEND;\n$BODY$\nLANGUAGE 'plpgsql'\nVOLATILE\n")
-> 0.0092s
-- execute("CREATE TRIGGER trigger_1aa3789b513d\nBEFORE INSERT OR UPDATE\nON \"application_settings\"\nFOR EACH ROW\nEXECUTE PROCEDURE trigger_1aa3789b513d()\n")
-> 0.0031s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0011s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0008s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0011s
-- execute("UPDATE \"application_settings\" SET \"password_authentication_enabled_for_web\" = \"application_settings\".\"password_authentication_enabled\" WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0027s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"password_authentication_enabled_for_web\" = \"application_settings\".\"password_authentication_enabled\" WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0019s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"password_authentication_enabled_for_web\" = \"application_settings\".\"password_authentication_enabled\" WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0074s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0013s
-- execute("UPDATE \"application_settings\" SET \"password_authentication_enabled_for_web\" = \"application_settings\".\"password_authentication_enabled\" WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0021s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"application_settings\" SET \"password_authentication_enabled_for_web\" = \"application_settings\".\"password_authentication_enabled\" WHERE \"application_settings\".\"id\" >= 5")
-> 0.0021s
-- indexes(:application_settings)
-> 0.0017s
-- foreign_keys(:application_settings)
-> 0.0054s
== 20171106133143 RenameApplicationSettingsPasswordAuthenticationEnabledToPasswordAuthenticationEnabledForWeb: migrated (0.0689s)
== 20171106133144 CleanupApplicationSettingsPasswordAuthenticationEnabledRename: migrating
-- execute("DROP TRIGGER IF EXISTS trigger_1aa3789b513d ON application_settings")
-> 0.0109s
-- execute("DROP FUNCTION IF EXISTS trigger_1aa3789b513d()")
-> 0.0139s
-- remove_column(:application_settings, :password_authentication_enabled)
-> 0.0025s
== 20171106133144 CleanupApplicationSettingsPasswordAuthenticationEnabledRename: migrated (0.0286s)
== 20171106133911 AddPasswordAuthenticationEnabledForGitToApplicationSettings: migrating
-- add_column(:application_settings, :password_authentication_enabled_for_git, :boolean, {:default=>true, :null=>false})
-> 0.0189s
== 20171106133911 AddPasswordAuthenticationEnabledForGitToApplicationSettings: migrated (0.0191s)
== 20171106135924 IssuesMilestoneIdForeignKey: migrating ======================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- foreign_keys(:issues)
-> 0.0065s
-- execute("ALTER TABLE issues\nADD CONSTRAINT fk_96b1dd429c\nFOREIGN KEY (milestone_id)\nREFERENCES milestones (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0037s
-- execute("ALTER TABLE issues VALIDATE CONSTRAINT fk_96b1dd429c;")
-> 0.0030s
== 20171106135924 IssuesMilestoneIdForeignKey: migrated (0.0469s) =============
== 20171106150657 IssuesUpdatedByIdForeignKey: migrating ======================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- index_exists?(:issues, :updated_by_id, {:where=>"updated_by_id IS NOT NULL", :algorithm=>:concurrently})
-> 0.0134s
-- add_index(:issues, :updated_by_id, {:where=>"updated_by_id IS NOT NULL", :algorithm=>:concurrently})
-> 0.0097s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- foreign_keys(:issues)
-> 0.0161s
-- execute("ALTER TABLE issues\nADD CONSTRAINT fk_ffed080f01\nFOREIGN KEY (updated_by_id)\nREFERENCES users (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0031s
-- execute("ALTER TABLE issues VALIDATE CONSTRAINT fk_ffed080f01;")
-> 0.0027s
== 20171106150657 IssuesUpdatedByIdForeignKey: migrated (0.0507s) =============
== 20171106151218 IssuesMovedToIdForeignKey: migrating ========================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- foreign_keys(:issues)
-> 0.0062s
-- execute("ALTER TABLE issues\nADD CONSTRAINT fk_a194299be1\nFOREIGN KEY (moved_to_id)\nREFERENCES issues (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0039s
-- execute("ALTER TABLE issues VALIDATE CONSTRAINT fk_a194299be1;")
-> 0.0023s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- index_exists?(:issues, :moved_to_id, {:where=>"moved_to_id IS NOT NULL", :algorithm=>:concurrently})
-> 0.0120s
-- add_index(:issues, :moved_to_id, {:where=>"moved_to_id IS NOT NULL", :algorithm=>:concurrently})
-> 0.0096s
== 20171106151218 IssuesMovedToIdForeignKey: migrated (0.0389s) ===============
== 20171106154015 RemoveIssuesBranchName: migrating ===========================
-- remove_column(:issues, :branch_name, :string)
-> 0.0009s
== 20171106154015 RemoveIssuesBranchName: migrated (0.0010s) ==================
== 20171106155656 TurnIssuesDueDateIndexToPartialIndex: migrating =============
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- index_exists?(:issues, [:project_id, :due_date, :id, :state], {:where=>"due_date IS NOT NULL", :name=>"idx_issues_on_project_id_and_due_date_and_id_and_state_partial", :algorithm=>:concurrently})
-> 0.0128s
-- add_index(:issues, [:project_id, :due_date, :id, :state], {:where=>"due_date IS NOT NULL", :name=>"idx_issues_on_project_id_and_due_date_and_id_and_state_partial", :algorithm=>:concurrently})
-> 0.0128s
-- transaction_open?()
-> 0.0000s
-- select_one("SELECT current_setting('server_version_num') AS v")
-> 0.0011s
-- execute("SET statement_timeout TO 0")
-> 0.0007s
-- index_exists?(:issues, nil, {:name=>"index_issues_on_project_id_and_due_date_and_id_and_state", :algorithm=>:concurrently})
-> 0.0132s
== 20171106155656 TurnIssuesDueDateIndexToPartialIndex: migrated (0.0422s) ====
== 20171106171453 AddTimezoneToIssuesClosedAt: migrating ======================
-- transaction_open?()
-> 0.0000s
-- columns(:issues)
-> 0.0020s
-- add_column(:issues, "closed_at_for_type_change", :datetime_with_timezone, {:limit=>nil, :precision=>nil, :scale=>nil})
-> 0.0020s
-- quote_table_name(:issues)
-> 0.0001s
-- quote_column_name(:closed_at)
-> 0.0000s
-- quote_column_name("closed_at_for_type_change")
-> 0.0000s
-- execute("CREATE OR REPLACE FUNCTION trigger_08acb26c5ecf()\nRETURNS trigger AS\n$BODY$\nBEGIN\n NEW.\"closed_at_for_type_change\" := NEW.\"closed_at\";\n RETURN NEW;\nEND;\n$BODY$\nLANGUAGE 'plpgsql'\nVOLATILE\n")
-> 0.0308s
-- execute("CREATE TRIGGER trigger_08acb26c5ecf\nBEFORE INSERT OR UPDATE\nON \"issues\"\nFOR EACH ROW\nEXECUTE PROCEDURE trigger_08acb26c5ecf()\n")
-> 0.0020s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"issues\"")
-> 0.0073s
-- indexes(:issues)
-> 0.0138s
-- foreign_keys(:issues)
-> 0.0061s
== 20171106171453 AddTimezoneToIssuesClosedAt: migrated (0.0666s) =============
== 20171106180641 CleanupAddTimezoneToIssuesClosedAt: migrating ===============
-- transaction()
-- execute("DROP TRIGGER IF EXISTS trigger_08acb26c5ecf ON issues")
-> 0.0009s
-- execute("DROP FUNCTION IF EXISTS trigger_08acb26c5ecf()")
-> 0.0007s
-- remove_column(:issues, :closed_at)
-> 0.0008s
-- rename_column(:issues, "closed_at_for_type_change", :closed_at)
-> 0.0144s
-> 0.0218s
== 20171106180641 CleanupAddTimezoneToIssuesClosedAt: migrated (0.0220s) ======
== 20171114104051 RemoveEmptyForkNetworks: migrating ==========================
-- Deleting empty ForkNetworks in batches
== 20171114104051 RemoveEmptyForkNetworks: migrated (0.0163s) =================
== 20171114150259 MergeRequestsAuthorIdForeignKey: migrating ==================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- foreign_keys(:merge_requests)
-> 0.0059s
-- execute("ALTER TABLE merge_requests\nADD CONSTRAINT fk_e719a85f8a\nFOREIGN KEY (author_id)\nREFERENCES users (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0035s
-- execute("ALTER TABLE merge_requests VALIDATE CONSTRAINT fk_e719a85f8a;")
-> 0.0039s
== 20171114150259 MergeRequestsAuthorIdForeignKey: migrated (0.1339s) =========
== 20171114160005 MergeRequestsAssigneeIdForeignKey: migrating ================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- foreign_keys(:merge_requests)
-> 0.0059s
-- execute("ALTER TABLE merge_requests\nADD CONSTRAINT fk_6149611a04\nFOREIGN KEY (assignee_id)\nREFERENCES users (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0034s
-- execute("ALTER TABLE merge_requests VALIDATE CONSTRAINT fk_6149611a04;")
-> 0.0092s
== 20171114160005 MergeRequestsAssigneeIdForeignKey: migrated (0.0238s) =======
== 20171114160904 MergeRequestsUpdatedByIdForeignKey: migrating ===============
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- index_exists?(:merge_requests, :updated_by_id, {:where=>"updated_by_id IS NOT NULL", :algorithm=>:concurrently})
-> 0.0168s
-- add_index(:merge_requests, :updated_by_id, {:where=>"updated_by_id IS NOT NULL", :algorithm=>:concurrently})
-> 0.0079s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0009s
-- foreign_keys(:merge_requests)
-> 0.0062s
-- execute("ALTER TABLE merge_requests\nADD CONSTRAINT fk_641731faff\nFOREIGN KEY (updated_by_id)\nREFERENCES users (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0029s
-- execute("ALTER TABLE merge_requests VALIDATE CONSTRAINT fk_641731faff;")
-> 0.0027s
== 20171114160904 MergeRequestsUpdatedByIdForeignKey: migrated (0.0431s) ======
== 20171114161720 MergeRequestsMergeUserIdForeignKey: migrating ===============
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- index_exists?(:merge_requests, :merge_user_id, {:where=>"merge_user_id IS NOT NULL", :algorithm=>:concurrently})
-> 0.0151s
-- add_index(:merge_requests, :merge_user_id, {:where=>"merge_user_id IS NOT NULL", :algorithm=>:concurrently})
-> 0.0079s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- foreign_keys(:merge_requests)
-> 0.0064s
-- execute("ALTER TABLE merge_requests\nADD CONSTRAINT fk_ad525e1f87\nFOREIGN KEY (merge_user_id)\nREFERENCES users (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0036s
-- execute("ALTER TABLE merge_requests VALIDATE CONSTRAINT fk_ad525e1f87;")
-> 0.0039s
== 20171114161720 MergeRequestsMergeUserIdForeignKey: migrated (0.0437s) ======
== 20171114161914 MergeRequestsSourceProjectIdForeignKey: migrating ===========
-- change_column_null(:merge_requests, :source_project_id, true)
-> 0.0025s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- foreign_keys(:merge_requests)
-> 0.0071s
-- execute("ALTER TABLE merge_requests\nADD CONSTRAINT fk_3308fe130c\nFOREIGN KEY (source_project_id)\nREFERENCES projects (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0023s
-- execute("ALTER TABLE merge_requests VALIDATE CONSTRAINT fk_3308fe130c;")
-> 0.0027s
== 20171114161914 MergeRequestsSourceProjectIdForeignKey: migrated (0.0205s) ==
== 20171114162227 MergeRequestsMilestoneIdForeignKey: migrating ===============
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- foreign_keys(:merge_requests)
-> 0.0099s
-- execute("ALTER TABLE merge_requests\nADD CONSTRAINT fk_6a5165a692\nFOREIGN KEY (milestone_id)\nREFERENCES milestones (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0041s
-- execute("ALTER TABLE merge_requests VALIDATE CONSTRAINT fk_6a5165a692;")
-> 0.0117s
== 20171114162227 MergeRequestsMilestoneIdForeignKey: migrated (0.0306s) ======
== 20171115164540 PopulateMergeRequestsLatestMergeRequestDiffIdTakeTwo: migrating
== 20171115164540 PopulateMergeRequestsLatestMergeRequestDiffIdTakeTwo: migrated (0.0067s)
== 20171116135628 AddEnvironmentScopeToClusters: migrating ====================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- transaction()
-- add_column(:clusters, :environment_scope, :string, {:default=>nil})
-> 0.0010s
-- change_column_default(:clusters, :environment_scope, "*")
-> 0.0026s
-> 0.0055s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"clusters\"")
-> 0.0013s
-- change_column_null(:clusters, :environment_scope, false)
-> 0.0027s
== 20171116135628 AddEnvironmentScopeToClusters: migrated (0.0109s) ===========
== 20171121135738 CleanUpFromMergeRequestDiffsAndCommits: migrating ===========
== 20171121135738 CleanUpFromMergeRequestDiffsAndCommits: migrated (0.0061s) ==
== 20171121144800 CiPipelinesIndexOnProjectIdRefStatusId: migrating ===========
-- index_exists?(:ci_pipelines, [:project_id, :ref, :status, :id])
-> 0.0082s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- index_exists?(:ci_pipelines, [:project_id, :ref, :status, :id], {:algorithm=>:concurrently})
-> 0.0075s
-- add_index(:ci_pipelines, [:project_id, :ref, :status, :id], {:algorithm=>:concurrently})
-> 0.0117s
-- index_exists?(:ci_pipelines, [:project_id, :ref, :status])
-> 0.0098s
-- transaction_open?()
-> 0.0000s
-- select_one("SELECT current_setting('server_version_num') AS v")
-> 0.0007s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- index_exists?(:ci_pipelines, [:project_id, :ref, :status], {:algorithm=>:concurrently})
-> 0.0095s
-- remove_index(:ci_pipelines, {:algorithm=>:concurrently, :column=>[:project_id, :ref, :status]})
-> 0.0057s
== 20171121144800 CiPipelinesIndexOnProjectIdRefStatusId: migrated (0.0553s) ==
== 20171121160421 RemoveMergeRequestDiffStCommitsAndStDiffs: migrating ========
-- remove_column(:merge_request_diffs, :st_commits, :text)
-> 0.0009s
-- remove_column(:merge_request_diffs, :st_diffs, :text)
-> 0.0011s
== 20171121160421 RemoveMergeRequestDiffStCommitsAndStDiffs: migrated (0.0022s)
== 20171122131600 AddNewProjectGuidelinesToAppearances: migrating =============
-- change_table(:appearances)
-> 0.0022s
== 20171122131600 AddNewProjectGuidelinesToAppearances: migrated (0.0026s) ====
== 20171123094802 AddCircuitbreakerCheckIntervalToApplicationSettings: migrating
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- transaction()
-- add_column(:application_settings, :circuitbreaker_check_interval, :integer, {:default=>nil})
-> 0.0015s
-- change_column_default(:application_settings, :circuitbreaker_check_interval, 1)
-> 0.0151s
-> 0.0196s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0012s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0013s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"circuitbreaker_check_interval\" = 1 WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0028s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"circuitbreaker_check_interval\" = 1 WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0020s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"circuitbreaker_check_interval\" = 1 WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0021s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"application_settings\" SET \"circuitbreaker_check_interval\" = 1 WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0124s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"circuitbreaker_check_interval\" = 1 WHERE \"application_settings\".\"id\" >= 5")
-> 0.0055s
-- change_column_null(:application_settings, :circuitbreaker_check_interval, false)
-> 0.0047s
== 20171123094802 AddCircuitbreakerCheckIntervalToApplicationSettings: migrated (0.0619s)
== 20171123101020 UpdateCircuitbreakerDefaults: migrating =====================
-- change_column_default(:application_settings, :circuitbreaker_failure_count_threshold, 3)
-> 0.0151s
-- change_column_default(:application_settings, :circuitbreaker_storage_timeout, 15)
-> 0.0172s
== 20171123101020 UpdateCircuitbreakerDefaults: migrated (0.0384s) ============
== 20171123101046 RemoveOldCircuitbreakerConfig: migrating ====================
-- remove_column(:application_settings, :circuitbreaker_backoff_threshold)
-> 0.0014s
-- remove_column(:application_settings, :circuitbreaker_failure_wait_time)
-> 0.0011s
== 20171123101046 RemoveOldCircuitbreakerConfig: migrated (0.0026s) ===========
== 20171124095655 AddIndexOnMergeRequestDiffsMergeRequestIdAndId: migrating ===
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- index_exists?(:merge_request_diffs, [:merge_request_id, :id], {:algorithm=>:concurrently})
-> 0.0032s
-- add_index(:merge_request_diffs, [:merge_request_id, :id], {:algorithm=>:concurrently})
-> 0.0100s
== 20171124095655 AddIndexOnMergeRequestDiffsMergeRequestIdAndId: migrated (0.0142s)
== 20171124100152 RemoveIndexOnMergeRequestDiffsMergeRequestDiffId: migrating =
-- index_exists?(:merge_request_diffs, :merge_request_id)
-> 0.0043s
-- transaction_open?()
-> 0.0000s
-- select_one("SELECT current_setting('server_version_num') AS v")
-> 0.0007s
-- execute("SET statement_timeout TO 0")
-> 0.0012s
-- index_exists?(:merge_request_diffs, :merge_request_id, {:algorithm=>:concurrently})
-> 0.0032s
-- remove_index(:merge_request_diffs, {:algorithm=>:concurrently, :column=>:merge_request_id})
-> 0.0054s
== 20171124100152 RemoveIndexOnMergeRequestDiffsMergeRequestDiffId: migrated (0.0160s)
== 20171124104327 MigrateKubernetesServiceToNewClustersArchitectures: migrating
== 20171124104327 MigrateKubernetesServiceToNewClustersArchitectures: migrated (0.0536s)
== 20171124125042 AddDefaultValuesToMergeRequestStates: migrating =============
-- change_column_default(:merge_requests, :state, :opened)
-> 0.0035s
-- change_column_default(:merge_requests, :merge_status, :unchecked)
-> 0.0033s
== 20171124125042 AddDefaultValuesToMergeRequestStates: migrated (0.0070s) ====
== 20171124125748 PopulateMissingMergeRequestStatuses: migrating ==============
-- Populating missing merge_requests.state values
-- Populating missing merge_requests.merge_status values. This will take a few minutes...
== 20171124125748 PopulateMissingMergeRequestStatuses: migrated (0.0049s) =====
== 20171124132536 MakeMergeRequestStatusesNotNull: migrating ==================
-- change_column_null(:merge_requests, :state, false)
-> 0.0009s
-- change_column_null(:merge_requests, :merge_status, false)
-> 0.0008s
== 20171124132536 MakeMergeRequestStatusesNotNull: migrated (0.0019s) =========
== 20171124150326 RescheduleForkNetworkCreation: migrating ====================
-- Fork networks will be populated in 20171205190711 - RescheduleForkNetworkCreationCaller
== 20171124150326 RescheduleForkNetworkCreation: migrated (0.0000s) ===========
== 20171127151038 AddEventsRelatedColumnsToMergeRequestMetrics: migrating =====
-- change_table(:merge_request_metrics)
-> 0.0051s
-- add_column(:merge_request_metrics, :latest_closed_at, :datetime_with_timezone)
-> 0.0016s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- foreign_keys(:merge_request_metrics)
-> 0.0067s
-- execute("ALTER TABLE merge_request_metrics\nADD CONSTRAINT fk_7f28d925f3\nFOREIGN KEY (merged_by_id)\nREFERENCES users (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0071s
-- execute("ALTER TABLE merge_request_metrics VALIDATE CONSTRAINT fk_7f28d925f3;")
-> 0.0714s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- foreign_keys(:merge_request_metrics)
-> 0.0058s
-- execute("ALTER TABLE merge_request_metrics\nADD CONSTRAINT fk_ae440388cc\nFOREIGN KEY (latest_closed_by_id)\nREFERENCES users (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0034s
-- execute("ALTER TABLE merge_request_metrics VALIDATE CONSTRAINT fk_ae440388cc;")
-> 0.0025s
== 20171127151038 AddEventsRelatedColumnsToMergeRequestMetrics: migrated (0.1060s)
== 20171128214150 SchedulePopulateMergeRequestMetricsWithEventsData: migrating
-- Scheduling `PopulateMergeRequestMetricsWithEventsData` jobs
== 20171128214150 SchedulePopulateMergeRequestMetricsWithEventsData: migrated (0.0033s)
== 20171204204233 AddPermanentToRedirectRoute: migrating ======================
-- add_column(:redirect_routes, :permanent, :boolean)
-> 0.0063s
== 20171204204233 AddPermanentToRedirectRoute: migrated (0.0064s) =============
== 20171205190711 RescheduleForkNetworkCreationCaller: migrating ==============
-- Populating the `fork_networks` based on existing `forked_project_links`
== 20171205190711 RescheduleForkNetworkCreationCaller: migrated (0.0176s) =====
== 20171206221519 AddPermanentIndexToRedirectRoute: migrating =================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0011s
-- index_exists?(:redirect_routes, :permanent, {:algorithm=>:concurrently})
-> 0.0067s
-- add_index(:redirect_routes, :permanent, {:algorithm=>:concurrently})
-> 0.0107s
== 20171206221519 AddPermanentIndexToRedirectRoute: migrated (0.0189s) ========
== 20171207150300 RemoveProjectLabelsGroupIdCopy: migrating ===================
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"labels\" WHERE \"labels\".\"type\" = 'ProjectLabel' AND \"labels\".\"group_id\" IS NOT NULL")
-> 0.0371s
== 20171207150300 RemoveProjectLabelsGroupIdCopy: migrated (0.0404s) ==========
== 20171207150343 RemoveSoftRemovedObjects: migrating =========================
-- execute("SET statement_timeout TO 0")
-> 0.0007s
-- index_exists?("issues", [:deleted_at, :id], {:name=>"index_on_issues_tmp"})
-> 0.0167s
-- Creating temporary index index_on_issues_tmp
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- index_exists?("issues", [:deleted_at, :id], {:name=>"index_on_issues_tmp", :where=>"deleted_at IS NOT NULL", :algorithm=>:concurrently})
-> 0.0190s
-- add_index("issues", [:deleted_at, :id], {:name=>"index_on_issues_tmp", :where=>"deleted_at IS NOT NULL", :algorithm=>:concurrently})
-> 0.0076s
-> 0.0274s
-- index_exists?("merge_requests", [:deleted_at, :id], {:name=>"index_on_merge_requests_tmp"})
-> 0.0176s
-- Creating temporary index index_on_merge_requests_tmp
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- index_exists?("merge_requests", [:deleted_at, :id], {:name=>"index_on_merge_requests_tmp", :where=>"deleted_at IS NOT NULL", :algorithm=>:concurrently})
-> 0.0192s
-- add_index("merge_requests", [:deleted_at, :id], {:name=>"index_on_merge_requests_tmp", :where=>"deleted_at IS NOT NULL", :algorithm=>:concurrently})
-> 0.0096s
-> 0.0297s
-- index_exists?("ci_pipeline_schedules", [:deleted_at, :id], {:name=>"index_on_ci_pipeline_schedules_tmp"})
-> 0.0036s
-- Creating temporary index index_on_ci_pipeline_schedules_tmp
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- index_exists?("ci_pipeline_schedules", [:deleted_at, :id], {:name=>"index_on_ci_pipeline_schedules_tmp", :where=>"deleted_at IS NOT NULL", :algorithm=>:concurrently})
-> 0.0084s
-- add_index("ci_pipeline_schedules", [:deleted_at, :id], {:name=>"index_on_ci_pipeline_schedules_tmp", :where=>"deleted_at IS NOT NULL", :algorithm=>:concurrently})
-> 0.0094s
-> 0.0187s
-- index_exists?("ci_triggers", [:deleted_at, :id], {:name=>"index_on_ci_triggers_tmp"})
-> 0.0043s
-- Creating temporary index index_on_ci_triggers_tmp
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- index_exists?("ci_triggers", [:deleted_at, :id], {:name=>"index_on_ci_triggers_tmp", :where=>"deleted_at IS NOT NULL", :algorithm=>:concurrently})rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:
PG::NotNullViolation: ERROR: column "projects_limit" contains null values
: ALTER TABLE "users" ALTER "projects_limit" SET NOT NULL
/opt/gitlab/embedded/service/gitlab-rails/db/migrate/20171229225929_change_user_project_limit_not_null_and_remove_default.rb:30:in `up'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:50:in `block (3 levels) in <top (required)>'
/opt/gitlab/embedded/bin/bundle:23:in `load'
/opt/gitlab/embedded/bin/bundle:23:in `<main>'
Caused by:
ActiveRecord::StatementInvalid: PG::NotNullViolation: ERROR: column "projects_limit" contains null values
: ALTER TABLE "users" ALTER "projects_limit" SET NOT NULL
/opt/gitlab/embedded/service/gitlab-rails/db/migrate/20171229225929_change_user_project_limit_not_null_and_remove_default.rb:30:in `up'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:50:in `block (3 levels) in <top (required)>'
/opt/gitlab/embedded/bin/bundle:23:in `load'
/opt/gitlab/embedded/bin/bundle:23:in `<main>'
Caused by:
PG::NotNullViolation: ERROR: column "projects_limit" contains null values
/opt/gitlab/embedded/service/gitlab-rails/db/migrate/20171229225929_change_user_project_limit_not_null_and_remove_default.rb:30:in `up'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:50:in `block (3 levels) in <top (required)>'
/opt/gitlab/embedded/bin/bundle:23:in `load'
/opt/gitlab/embedded/bin/bundle:23:in `<main>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
-> 0.0062s
-- add_index("ci_triggers", [:deleted_at, :id], {:name=>"index_on_ci_triggers_tmp", :where=>"deleted_at IS NOT NULL", :algorithm=>:concurrently})
-> 0.0075s
-> 0.0157s
-- Removing soft removed rows from issues
-> 0.0034s
-- Removing soft removed rows from merge_requests
-> 0.0031s
-- Removing soft removed rows from ci_pipeline_schedules
-> 0.0101s
-- Removing soft removed rows from ci_triggers
-> 0.0086s
-- index_exists?("issues", [:deleted_at, :id], {:name=>"index_on_issues_tmp"})
-> 0.0175s
-- Removing temporary index index_on_issues_tmp
-- transaction_open?()
-> 0.0000s
-- select_one("SELECT current_setting('server_version_num') AS v")
-> 0.0008s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- indexes("issues")
-> 0.0173s
-- remove_index("issues", {:algorithm=>:concurrently, :name=>"index_on_issues_tmp"})
-> 0.0058s
-> 0.0248s
-- index_exists?("merge_requests", [:deleted_at, :id], {:name=>"index_on_merge_requests_tmp"})
-> 0.0214s
-- Removing temporary index index_on_merge_requests_tmp
-- transaction_open?()
-> 0.0000s
-- select_one("SELECT current_setting('server_version_num') AS v")
-> 0.0006s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- indexes("merge_requests")
-> 0.0194s
-- remove_index("merge_requests", {:algorithm=>:concurrently, :name=>"index_on_merge_requests_tmp"})
-> 0.0055s
-> 0.0264s
-- index_exists?("ci_pipeline_schedules", [:deleted_at, :id], {:name=>"index_on_ci_pipeline_schedules_tmp"})
-> 0.0052s
-- Removing temporary index index_on_ci_pipeline_schedules_tmp
-- transaction_open?()
-> 0.0000s
-- select_one("SELECT current_setting('server_version_num') AS v")
-> 0.0007s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- indexes("ci_pipeline_schedules")
-> 0.0051s
-- remove_index("ci_pipeline_schedules", {:algorithm=>:concurrently, :name=>"index_on_ci_pipeline_schedules_tmp"})
-> 0.0052s
-> 0.0120s
-- index_exists?("ci_triggers", [:deleted_at, :id], {:name=>"index_on_ci_triggers_tmp"})
-> 0.0045s
-- Removing temporary index index_on_ci_triggers_tmp
-- transaction_open?()
-> 0.0000s
-- select_one("SELECT current_setting('server_version_num') AS v")
-> 0.0009s
-- execute("SET statement_timeout TO 0")
-> 0.0037s
-- indexes("ci_triggers")
-> 0.0037s
-- remove_index("ci_triggers", {:algorithm=>:concurrently, :name=>"index_on_ci_triggers_tmp"})
-> 0.0050s
-> 0.0138s
== 20171207150343 RemoveSoftRemovedObjects: migrated (0.3435s) ================
== 20171207150344 RemoveDeletedAtColumns: migrating ===========================
-- column_exists?(:issues, :deleted_at)
-> 0.0022s
-- remove_column(:issues, :deleted_at)
-> 0.0030s
-- column_exists?(:merge_requests, :deleted_at)
-> 0.0029s
-- remove_column(:merge_requests, :deleted_at)
-> 0.0138s
-- column_exists?(:namespaces, :deleted_at)
-> 0.0025s
-- remove_column(:namespaces, :deleted_at)
-> 0.0036s
-- column_exists?(:ci_pipeline_schedules, :deleted_at)
-> 0.0021s
-- remove_column(:ci_pipeline_schedules, :deleted_at)
-> 0.0022s
-- column_exists?(:ci_triggers, :deleted_at)
-> 0.0018s
-- remove_column(:ci_triggers, :deleted_at)
-> 0.0019s
== 20171207150344 RemoveDeletedAtColumns: migrated (0.0368s) ==================
== 20171207185153 AddMergeRequestStateIndex: migrating ========================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- index_exists?(:merge_requests, [:source_project_id, :source_branch], {:where=>"state = 'opened'", :name=>"index_merge_requests_on_source_project_and_branch_state_opened", :algorithm=>:concurrently})
-> 0.0131s
-- add_index(:merge_requests, [:source_project_id, :source_branch], {:where=>"state = 'opened'", :name=>"index_merge_requests_on_source_project_and_branch_state_opened", :algorithm=>:concurrently})
-> 0.0078s
== 20171207185153 AddMergeRequestStateIndex: migrated (0.0217s) ===============
== 20171211145425 AddCanPushToDeployKeysProjects: migrating ===================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0007s
-- transaction()
-- add_column(:deploy_keys_projects, :can_push, :boolean, {:default=>nil})
-> 0.0009s
-- change_column_default(:deploy_keys_projects, :can_push, false)
-> 0.0022s
-> 0.0055s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"deploy_keys_projects\"")
-> 0.0028s
-- change_column_null(:deploy_keys_projects, :can_push, false)
-> 0.0014s
== 20171211145425 AddCanPushToDeployKeysProjects: migrated (0.0111s) ==========
== 20171212203433 CreateClustersApplicationsPrometheus: migrating =============
-- create_table(:clusters_applications_prometheus)
-> 0.0115s
== 20171212203433 CreateClustersApplicationsPrometheus: migrated (0.0116s) ====
== 20171213160445 MigrateGithubImporterAdvanceStageSidekiqQueue: migrating ====
== 20171213160445 MigrateGithubImporterAdvanceStageSidekiqQueue: migrated (0.0005s)
== 20171214144320 AddStoreColumnToUploads: migrating ==========================
-- add_column(:uploads, :store, :integer)
-> 0.0008s
== 20171214144320 AddStoreColumnToUploads: migrated (0.0012s) =================
== 20171215113714 PopulateCanPushFromDeployKeysProjects: migrating ============
== 20171215113714 PopulateCanPushFromDeployKeysProjects: migrated (0.0045s) ===
== 20171215121205 PostPopulateCanPushFromDeployKeysProjects: migrating ========
== 20171215121205 PostPopulateCanPushFromDeployKeysProjects: migrated (0.0017s)
== 20171215121259 RemoveCanPushFromKeys: migrating ============================
-- remove_column(:keys, :can_push)
-> 0.0044s
== 20171215121259 RemoveCanPushFromKeys: migrated (0.0045s) ===================
== 20171216111734 CleanUpForMembers: migrating ================================
== 20171216111734 CleanUpForMembers: migrated (0.0414s) =======================
== 20171216112339 AddForeignKeyForMembers: migrating ==========================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0003s
-- foreign_keys(:members)
-> 0.0058s
-- execute("ALTER TABLE members\nADD CONSTRAINT fk_2e88fb7ce9\nFOREIGN KEY (user_id)\nREFERENCES users (id)\nON DELETE CASCADE\nNOT VALID;\n")
-> 0.0029s
-- execute("ALTER TABLE members VALIDATE CONSTRAINT fk_2e88fb7ce9;")
-> 0.0025s
== 20171216112339 AddForeignKeyForMembers: migrated (0.0122s) =================
== 20171219121201 NormalizeExternUidFromIdentities: migrating =================
== 20171219121201 NormalizeExternUidFromIdentities: migrated (0.0161s) ========
== 20171220191323 AddIndexOnNamespacesLowerName: migrating ====================
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_on_namespaces_lower_name ON namespaces (lower(name));")
-> 0.0041s
== 20171220191323 AddIndexOnNamespacesLowerName: migrated (0.0057s) ===========
== 20171221140220 ScheduleIssuesClosedAtTypeChange: migrating =================
-- columns("issues")
-> 0.0020s
== 20171221140220 ScheduleIssuesClosedAtTypeChange: migrated (0.0021s) ========
== 20171222115326 AddConfidentialNoteEventsToWebHooks: migrating ==============
-- add_column(:web_hooks, :confidential_note_events, :boolean)
-> 0.0036s
== 20171222115326 AddConfidentialNoteEventsToWebHooks: migrated (0.0039s) =====
== 20171222183504 AddJobsCacheIndexToProject: migrating =======================
-- add_column(:projects, :jobs_cache_index, :integer)
-> 0.0011s
== 20171222183504 AddJobsCacheIndexToProject: migrated (0.0012s) ==============
== 20171229225929 ChangeUserProjectLimitNotNullAndRemoveDefault: migrating ====
-- change_column_null(:users, :projects_limit, false)
STDERR:
---- End output of "bash" "/tmp/chef-script20180504-12021-1gw9z1f" ----
Ran "bash" "/tmp/chef-script20180504-12021-1gw9z1f" returned 1
Resource Declaration:
---------------------
# In /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/database_migrations.rb
49: bash "migrate gitlab-rails database" do
50: code <<-EOH
51: set -e
52: log_file="#{node['gitlab']['gitlab-rails']['log_directory']}/gitlab-rails-db-migrate-$(date +%Y-%m-%d-%H-%M-%S).log"
53: umask 077
54: /opt/gitlab/bin/gitlab-rake gitlab:db:configure 2>& 1 | tee ${log_file}
55: STATUS=${PIPESTATUS[0]}
56: echo $STATUS > #{db_migrate_status_file}
57: exit $STATUS
58: EOH
59: environment env_variables unless env_variables.empty?
60: notifies :run, "execute[clear the gitlab-rails cache]", :immediately
61: dependent_services.each do |svc|
62: notifies :restart, svc, :immediately
63: end
64: not_if "(test -f #{db_migrate_status_file}) && (cat #{db_migrate_status_file} | grep -Fx 0)"
65: only_if { node['gitlab']['gitlab-rails']['auto_migrate'] }
66: end
Compiled Resource:
------------------
# Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/database_migrations.rb:49:in `from_file'
bash("migrate gitlab-rails database") do
action [:run]
default_guard_interpreter :default
command nil
backup 5
returns 0
user nil
interpreter "bash"
declared_type :bash
cookbook_name "gitlab"
recipe_name "database_migrations"
code " set -e\n log_file=\"/var/log/gitlab/gitlab-rails/gitlab-rails-db-migrate-$(date +%Y-%m-%d-%H-%M-%S).log\"\n umask 077\n /opt/gitlab/bin/gitlab-rake gitlab:db:configure 2>& 1 | tee ${log_file}\n STATUS=${PIPESTATUS[0]}\n echo $STATUS > /var/opt/gitlab/gitlab-rails/upgrade-status/db-migrate-873248b1f0d3a7a5535771a3a1635803-2555d6c\n exit $STATUS\n"
domain nil
not_if "(test -f /var/opt/gitlab/gitlab-rails/upgrade-status/db-migrate-873248b1f0d3a7a5535771a3a1635803-2555d6c) && (cat /var/opt/gitlab/gitlab-rails/upgrade-status/db-migrate-873248b1f0d3a7a5535771a3a1635803-2555d6c | grep -Fx 0)"
only_if { #code block }
end
System Info:
------------
chef_version=13.6.4
platform=ubuntu
platform_version=16.04
ruby=ruby 2.3.6p384 (2017-12-14 revision 61254) [x86_64-linux]
program_name=/opt/gitlab/embedded/bin/chef-client
executable=/opt/gitlab/embedded/bin/chef-client
Recipe: gitlab::gitlab-rails
* execute[clear the gitlab-rails cache] action run
- execute /opt/gitlab/bin/gitlab-rake cache:clear
Running handlers:
There was an error running gitlab-ctl reconfigure:
bash[migrate gitlab-rails database] (gitlab::database_migrations line 49) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of "bash" "/tmp/chef-script20180504-12021-1gw9z1f" ----
STDOUT: == 20141126120926 AddMergeRequestRebaseEnabledToProjects: migrating ===========
-- transaction_open?()
-> 0.0001s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- transaction()
-- add_column(:projects, :merge_requests_rebase_enabled, :boolean, {:default=>nil})
-> 0.0431s
-- change_column_default(:projects, :merge_requests_rebase_enabled, false)
-> 0.0855s
-> 0.1329s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"projects\"")
-> 0.0215s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" ORDER BY \"projects\".\"id\" ASC LIMIT 1")
-> 0.0023s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 3 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0011s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 3 AND \"projects\".\"id\" < 4")
-> 0.0037s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 4 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0011s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 4 AND \"projects\".\"id\" < 7")
-> 0.0021s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 7 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 7 AND \"projects\".\"id\" < 8")
-> 0.0026s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 8 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0013s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 8 AND \"projects\".\"id\" < 12")
-> 0.0022s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 12 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 12 AND \"projects\".\"id\" < 13")
-> 0.0018s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 13 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 13 AND \"projects\".\"id\" < 14")
-> 0.0024s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 14 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 14 AND \"projects\".\"id\" < 17")
-> 0.0015s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 17 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 17 AND \"projects\".\"id\" < 18")
-> 0.0016s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 18 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 18 AND \"projects\".\"id\" < 19")
-> 0.0014s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 19 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0011s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 19 AND \"projects\".\"id\" < 20")
-> 0.0015s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 20 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 20 AND \"projects\".\"id\" < 22")
-> 0.0016s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 22 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"projects\" SET \"merge_requests_rebase_enabled\" = 'f' WHERE \"projects\".\"id\" >= 22")
-> 0.0016s
-- change_column_null(:projects, :merge_requests_rebase_enabled, false)
-> 0.0014s
== 20141126120926 AddMergeRequestRebaseEnabledToProjects: migrated (0.2137s) ==
== 20150827121444 AddFastForwardOptionToProject: migrating ====================
-- column_exists?(:projects, :merge_requests_ff_only_enabled)
-> 0.0043s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- transaction()
-- add_column(:projects, :merge_requests_ff_only_enabled, :boolean, {:default=>nil})
-> 0.0010s
-- change_column_default(:projects, :merge_requests_ff_only_enabled, false)
-> 0.0041s
-> 0.0074s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"projects\"")
-> 0.0011s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" ORDER BY \"projects\".\"id\" ASC LIMIT 1")
-> 0.0009s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 3 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 3 AND \"projects\".\"id\" < 4")
-> 0.0017s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 4 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 4 AND \"projects\".\"id\" < 7")
-> 0.0015s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 7 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 7 AND \"projects\".\"id\" < 8")
-> 0.0016s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 8 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 8 AND \"projects\".\"id\" < 12")
-> 0.0031s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 12 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0011s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 12 AND \"projects\".\"id\" < 13")
-> 0.0019s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 13 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 13 AND \"projects\".\"id\" < 14")
-> 0.0027s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 14 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 14 AND \"projects\".\"id\" < 17")
-> 0.0018s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 17 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0011s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 17 AND \"projects\".\"id\" < 18")
-> 0.0023s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 18 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 18 AND \"projects\".\"id\" < 19")
-> 0.0021s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 19 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 19 AND \"projects\".\"id\" < 20")
-> 0.0023s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 20 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0012s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 20 AND \"projects\".\"id\" < 22")
-> 0.0034s
-- exec_query("SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"id\" >= 22 ORDER BY \"projects\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"projects\" SET \"merge_requests_ff_only_enabled\" = 'f' WHERE \"projects\".\"id\" >= 22")
-> 0.0018s
-- change_column_null(:projects, :merge_requests_ff_only_enabled, false)
-> 0.0069s
== 20150827121444 AddFastForwardOptionToProject: migrated (0.0723s) ===========
== 20160301174731 AddFingerprintIndex: migrating ==============================
-- index_exists?(:keys, :fingerprint)
-> 0.0061s
== 20160301174731 AddFingerprintIndex: migrated (0.0063s) =====================
== 20160621123729 AddRebaseCommitShaToMergeRequests: migrating ================
-- column_exists?(:merge_requests, :rebase_commit_sha)
-> 0.0023s
-- add_column(:merge_requests, :rebase_commit_sha, :string)
-> 0.0018s
== 20160621123729 AddRebaseCommitShaToMergeRequests: migrated (0.0042s) =======
== 20160713200638 AddRepositoryReadOnlyToProjects: migrating ==================
-- add_column(:projects, :repository_read_only, :boolean)
-> 0.0011s
== 20160713200638 AddRepositoryReadOnlyToProjects: migrated (0.0012s) =========
== 20170523073948 RemoveAssigneeIdFromIssue: migrating ========================
-- remove_column(:issues, :assignee_id)
-> 0.0409s
== 20170523073948 RemoveAssigneeIdFromIssue: migrated (0.0410s) ===============
== 20170531180233 AddAuthorizedKeysEnabledToApplicationSettings: migrating ====
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- transaction()
-- add_column(:application_settings, :authorized_keys_enabled, :boolean, {:default=>nil})
-> 0.0018s
-- change_column_default(:application_settings, :authorized_keys_enabled, true)
-> 0.0121s
-> 0.0167s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0011s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0006s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"application_settings\" SET \"authorized_keys_enabled\" = 't' WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0021s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"authorized_keys_enabled\" = 't' WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0015s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"authorized_keys_enabled\" = 't' WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0015s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"authorized_keys_enabled\" = 't' WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0015s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"authorized_keys_enabled\" = 't' WHERE \"application_settings\".\"id\" >= 5")
-> 0.0015s
-- change_column_null(:application_settings, :authorized_keys_enabled, false)
-> 0.0015s
== 20170531180233 AddAuthorizedKeysEnabledToApplicationSettings: migrated (0.0460s)
== 20170601163708 AddArtifactsStoreToCiBuild: migrating =======================
-- add_column(:ci_builds, :artifacts_file_store, :integer)
-> 0.0018s
-- add_column(:ci_builds, :artifacts_metadata_store, :integer)
-> 0.0009s
== 20170601163708 AddArtifactsStoreToCiBuild: migrated (0.0028s) ==============
== 20170720122741 CreateUserCustomAttributes: migrating =======================
-- create_table(:user_custom_attributes)
-> 0.1575s
== 20170720122741 CreateUserCustomAttributes: migrated (0.1576s) ==============
== 20170815221154 AddDiscussionLockedToIssuable: migrating ====================
-- add_column(:merge_requests, :discussion_locked, :boolean)
-> 0.0011s
-- add_column(:issues, :discussion_locked, :boolean)
-> 0.0009s
== 20170815221154 AddDiscussionLockedToIssuable: migrated (0.0022s) ===========
== 20170825015534 AddFileStoreToLfsObjects: migrating =========================
-- add_column(:lfs_objects, :file_store, :integer)
-> 0.0019s
== 20170825015534 AddFileStoreToLfsObjects: migrated (0.0020s) ================
== 20170827123848 AddIndexOnMergeRequestDiffCommitSha: migrating ==============
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- index_exists?(:merge_request_diff_commits, :sha, {:length=>nil, :algorithm=>:concurrently})
-> 0.0029s
-- add_index(:merge_request_diff_commits, :sha, {:length=>nil, :algorithm=>:concurrently})
-> 0.0202s
== 20170827123848 AddIndexOnMergeRequestDiffCommitSha: migrated (0.0241s) =====
== 20170904092148 AddEmailConfirmation: migrating =============================
-- add_column(:emails, :confirmation_token, :string)
-> 0.0016s
-- add_column(:emails, :confirmed_at, :datetime_with_timezone)
-> 0.0008s
-- add_column(:emails, :confirmation_sent_at, :datetime_with_timezone)
-> 0.0007s
== 20170904092148 AddEmailConfirmation: migrated (0.0034s) ====================
== 20170907170235 DeleteConflictingRedirectRoutes: migrating ==================
== 20170907170235 DeleteConflictingRedirectRoutes: migrated (0.0000s) =========
== 20170909090114 AddEmailConfirmationIndex: migrating ========================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- index_exists?(:emails, :confirmation_token, {:unique=>true, :algorithm=>:concurrently})
-> 0.0036s
-- add_index(:emails, :confirmation_token, {:unique=>true, :algorithm=>:concurrently})
-> 0.0069s
== 20170909090114 AddEmailConfirmationIndex: migrated (0.0114s) ===============
== 20170909150936 AddSpentAtToTimelogs: migrating =============================
-- add_column(:timelogs, :spent_at, :datetime_with_timezone)
-> 0.0026s
== 20170909150936 AddSpentAtToTimelogs: migrated (0.0027s) ====================
== 20170912113435 CleanStagesStatusesMigration: migrating =====================
== 20170912113435 CleanStagesStatusesMigration: migrated (0.0350s) ============
== 20170918072948 CreateJobArtifacts: migrating ===============================
-- create_table(:ci_job_artifacts)
-> 0.0345s
== 20170918072948 CreateJobArtifacts: migrated (0.0346s) ======================
== 20170918072949 AddFileStoreJobArtifacts: migrating =========================
-- add_column(:ci_job_artifacts, :file_store, :integer)
-> 0.0023s
== 20170918072949 AddFileStoreJobArtifacts: migrated (0.0024s) ================
== 20170918111708 CreateProjectCustomAttributes: migrating ====================
-- create_table(:project_custom_attributes)
-> 0.0367s
== 20170918111708 CreateProjectCustomAttributes: migrated (0.0368s) ===========
== 20170918140927 CreateGroupCustomAttributes: migrating ======================
-- create_table(:group_custom_attributes)
-> 0.0332s
-- add_foreign_key(:group_custom_attributes, :namespaces, {:column=>:group_id, :on_delete=>:cascade})
-> 0.0042s
== 20170918140927 CreateGroupCustomAttributes: migrated (0.0377s) =============
== 20170919211300 RemoveTemporaryCiBuildsIndex: migrating =====================
-- index_exists?(:ci_builds, :id, {:name=>"index_for_ci_builds_retried_migration"})
-> 0.0130s
-- transaction_open?()
-> 0.0000s
-- select_one("SELECT current_setting('server_version_num') AS v")
-> 0.0008s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- index_exists?(:ci_builds, :id, {:name=>"index_for_ci_builds_retried_migration", :algorithm=>:concurrently})
-> 0.0124s
-- remove_index(:ci_builds, {:name=>"index_for_ci_builds_retried_migration", :algorithm=>:concurrently, :column=>:id})
-> 0.0068s
== 20170919211300 RemoveTemporaryCiBuildsIndex: migrated (0.0339s) ============
== 20170921101004 NormalizeLdapExternUids: migrating ==========================
== 20170921101004 NormalizeLdapExternUids: migrated (0.0366s) =================
== 20170921115009 AddProjectRepositoryStorageIndex: migrating =================
-- index_exists?(:projects, :repository_storage)
-> 0.0156s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- index_exists?(:projects, :repository_storage, {:algorithm=>:concurrently})
-> 0.0162s
-- add_index(:projects, :repository_storage, {:algorithm=>:concurrently})
-> 0.0081s
== 20170921115009 AddProjectRepositoryStorageIndex: migrated (0.0409s) ========
== 20170924094327 CreateGcpClusters: migrating ================================
-- create_table(:gcp_clusters)
-> 0.0657s
== 20170924094327 CreateGcpClusters: migrated (0.0658s) =======================
== 20170926150348 ScheduleMergeRequestDiffMigrationsTakeTwo: migrating ========
== 20170926150348 ScheduleMergeRequestDiffMigrationsTakeTwo: migrated (0.0172s)
== 20170927095921 AddCiBuildsIndexForJobscontroller: migrating ================
-- index_exists?(:ci_builds, [:project_id, :id])
-> 0.0144s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- index_exists?(:ci_builds, [:project_id, :id], {:algorithm=>:concurrently})
-> 0.0166s
-- add_index(:ci_builds, [:project_id, :id], {:algorithm=>:concurrently})
-> 0.0078s
-- index_exists?(:ci_builds, :project_id)
-> 0.0150s
-- transaction_open?()
-> 0.0000s
-- select_one("SELECT current_setting('server_version_num') AS v")
-> 0.0006s
-- execute("SET statement_timeout TO 0")
-> 0.0007s
-- index_exists?(:ci_builds, :project_id, {:algorithm=>:concurrently})
-> 0.0200s
-- remove_index(:ci_builds, {:algorithm=>:concurrently, :column=>:project_id})
-> 0.0058s
== 20170927095921 AddCiBuildsIndexForJobscontroller: migrated (0.0824s) =======
== 20170927112318 UpdateLegacyDiffNotesTypeForImport: migrating ===============
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"notes\" WHERE \"notes\".\"type\" = 'Github::Import::LegacyDiffNote'")
-> 0.1406s
== 20170927112318 UpdateLegacyDiffNotesTypeForImport: migrated (0.1451s) ======
== 20170927112319 UpdateNotesTypeForImport: migrating =========================
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"notes\" WHERE \"notes\".\"type\" = 'Github::Import::Note'")
-> 0.0009s
== 20170927112319 UpdateNotesTypeForImport: migrated (0.0015s) ================
== 20170927122209 AddPartialIndexForLabelsTemplate: migrating =================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- index_exists?("labels", ["template"], {:where=>"template", :algorithm=>:concurrently})
-> 0.0088s
-- add_index("labels", ["template"], {:where=>"template", :algorithm=>:concurrently})
-> 0.0096s
== 20170927122209 AddPartialIndexForLabelsTemplate: migrated (0.0192s) ========
== 20170927161718 CreateGpgKeySubkeys: migrating ==============================
-- create_table(:gpg_key_subkeys)
-> 0.0636s
-- add_reference(:gpg_signatures, :gpg_key_subkey, {:index=>true, :foreign_key=>{:on_delete=>:nullify}})
-> 0.0268s
== 20170927161718 CreateGpgKeySubkeys: migrated (0.0906s) =====================
== 20170928100231 AddCompositeIndexOnMergeRequestsMergeCommitSha: migrating ===
-- index_exists?(:merge_requests, [:target_project_id, :merge_commit_sha, :id], {:name=>"index_merge_requests_on_tp_id_and_merge_commit_sha_and_id"})
-> 0.0198s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- index_exists?(:merge_requests, [:target_project_id, :merge_commit_sha, :id], {:name=>"index_merge_requests_on_tp_id_and_merge_commit_sha_and_id", :algorithm=>:concurrently})
-> 0.0143s
-- add_index(:merge_requests, [:target_project_id, :merge_commit_sha, :id], {:name=>"index_merge_requests_on_tp_id_and_merge_commit_sha_and_id", :algorithm=>:concurrently})
-> 0.0077s
== 20170928100231 AddCompositeIndexOnMergeRequestsMergeCommitSha: migrated (0.0427s)
== 20170928124105 CreateForkNetworks: migrating ===============================
-- create_table(:fork_networks)
-> 0.0591s
-- transaction_open?()
-> 0.0001s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- foreign_keys(:fork_networks)
-> 0.0066s
-- execute("ALTER TABLE fork_networks\nADD CONSTRAINT fk_e7b436b2b5\nFOREIGN KEY (root_project_id)\nREFERENCES projects (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0025s
-- execute("ALTER TABLE fork_networks VALIDATE CONSTRAINT fk_e7b436b2b5;")
-> 0.0022s
== 20170928124105 CreateForkNetworks: migrated (0.0715s) ======================
== 20170928133643 CreateForkNetworkMembers: migrating =========================
-- create_table(:fork_network_members)
-> 0.0311s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- foreign_keys(:fork_network_members)
-> 0.0052s
-- execute("ALTER TABLE fork_network_members\nADD CONSTRAINT fk_b01280dae4\nFOREIGN KEY (forked_from_project_id)\nREFERENCES projects (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0027s
-- execute("ALTER TABLE fork_network_members VALIDATE CONSTRAINT fk_b01280dae4;")
-> 0.0019s
== 20170928133643 CreateForkNetworkMembers: migrated (0.0420s) ================
== 20170929080234 AddFailureReasonToPipelines: migrating ======================
-- add_column(:ci_pipelines, :failure_reason, :integer)
-> 0.0041s
== 20170929080234 AddFailureReasonToPipelines: migrated (0.0043s) =============
== 20170929131201 PopulateForkNetworks: migrating =============================
-- Fork networks will be populated in 20171205190711 - RescheduleForkNetworkCreationCaller
== 20170929131201 PopulateForkNetworks: migrated (0.0000s) ====================
== 20171004121444 MakeSureFastForwardOptionExists: migrating ==================
-- column_exists?(:projects, :merge_requests_ff_only_enabled)
-> 0.0035s
== 20171004121444 MakeSureFastForwardOptionExists: migrated (0.0036s) =========
== 20171005130944 ScheduleCreateGpgKeySubkeysFromGpgKeys: migrating ===========
== 20171005130944 ScheduleCreateGpgKeySubkeysFromGpgKeys: migrated (0.0049s) ==
== 20171006090001 CreateCiBuildTraceSections: migrating =======================
-- create_table(:ci_build_trace_sections)
-> 0.0190s
-- add_index(:ci_build_trace_sections, [:build_id, :section_name_id], {:unique=>true})
-> 0.0077s
== 20171006090001 CreateCiBuildTraceSections: migrated (0.0270s) ==============
== 20171006090010 AddBuildForeignKeyToCiBuildTraceSections: migrating =========
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- foreign_keys(:ci_build_trace_sections)
-> 0.0056s
-- execute("ALTER TABLE ci_build_trace_sections\nADD CONSTRAINT fk_4ebe41f502\nFOREIGN KEY (build_id)\nREFERENCES ci_builds (id)\nON DELETE CASCADE\nNOT VALID;\n")
-> 0.0029s
-- execute("ALTER TABLE ci_build_trace_sections VALIDATE CONSTRAINT fk_4ebe41f502;")
-> 0.0028s
== 20171006090010 AddBuildForeignKeyToCiBuildTraceSections: migrated (0.0126s)
== 20171006090100 CreateCiBuildTraceSectionNames: migrating ===================
-- create_table(:ci_build_trace_section_names)
-> 0.0253s
-- add_index(:ci_build_trace_section_names, [:project_id, :name], {:unique=>true})
-> 0.0063s
== 20171006090100 CreateCiBuildTraceSectionNames: migrated (0.0318s) ==========
== 20171006091000 AddNameForeignKeyToCiBuildTraceSections: migrating ==========
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- foreign_keys(:ci_build_trace_sections)
-> 0.0053s
-- execute("ALTER TABLE ci_build_trace_sections\nADD CONSTRAINT fk_264e112c66\nFOREIGN KEY (section_name_id)\nREFERENCES ci_build_trace_section_names (id)\nON DELETE CASCADE\nNOT VALID;\n")
-> 0.0028s
-- execute("ALTER TABLE ci_build_trace_sections VALIDATE CONSTRAINT fk_264e112c66;")
-> 0.0029s
== 20171006091000 AddNameForeignKeyToCiBuildTraceSections: migrated (0.0121s) =
== 20171006220837 AddGlobalRateLimitsToApplicationSettings: migrating =========
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0008s
-- transaction()
-- add_column(:application_settings, :throttle_unauthenticated_enabled, :boolean, {:default=>nil})
-> 0.0021s
-- change_column_default(:application_settings, :throttle_unauthenticated_enabled, false)
-> 0.0092s
-> 0.0134s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0010s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0062s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0014s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0032s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0013s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0027s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0018s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0007s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0016s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0011s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 5")
-> 0.0022s
-- change_column_null(:application_settings, :throttle_unauthenticated_enabled, false)
-> 0.0014s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- transaction()
-- add_column(:application_settings, :throttle_unauthenticated_requests_per_period, :integer, {:default=>nil})
-> 0.0011s
-- change_column_default(:application_settings, :throttle_unauthenticated_requests_per_period, 3600)
-> 0.0134s
-> 0.0173s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0010s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0008s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_requests_per_period\" = 3600 WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0017s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_requests_per_period\" = 3600 WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0020s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_requests_per_period\" = 3600 WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0019s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_requests_per_period\" = 3600 WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0018s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_requests_per_period\" = 3600 WHERE \"application_settings\".\"id\" >= 5")
-> 0.0019s
-- change_column_null(:application_settings, :throttle_unauthenticated_requests_per_period, false)
-> 0.0018s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- transaction()
-- add_column(:application_settings, :throttle_unauthenticated_period_in_seconds, :integer, {:default=>nil})
-> 0.0104s
-- change_column_default(:application_settings, :throttle_unauthenticated_period_in_seconds, 3600)
-> 0.0105s
-> 0.0311s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0011s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0008s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0007s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0021s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0018s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0015s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0134s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0018s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_unauthenticated_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 5")
-> 0.0020s
-- change_column_null(:application_settings, :throttle_unauthenticated_period_in_seconds, false)
-> 0.0021s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- transaction()
-- add_column(:application_settings, :throttle_authenticated_api_enabled, :boolean, {:default=>nil})
-> 0.0011s
-- change_column_default(:application_settings, :throttle_authenticated_api_enabled, false)
-> 0.0096s
-> 0.0132s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0016s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0010s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0013s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0020s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0020s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0016s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0017s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0012s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 5")
-> 0.0023s
-- change_column_null(:application_settings, :throttle_authenticated_api_enabled, false)
-> 0.0019s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- transaction()
-- add_column(:application_settings, :throttle_authenticated_api_requests_per_period, :integer, {:default=>nil})
-> 0.0013s
-- change_column_default(:application_settings, :throttle_authenticated_api_requests_per_period, 7200)
-> 0.0159s
-> 0.0211s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0011s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0008s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_requests_per_period\" = 7200 WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0021s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_requests_per_period\" = 7200 WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0018s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_requests_per_period\" = 7200 WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0026s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0012s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_requests_per_period\" = 7200 WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0024s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0016s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_requests_per_period\" = 7200 WHERE \"application_settings\".\"id\" >= 5")
-> 0.0026s
-- change_column_null(:application_settings, :throttle_authenticated_api_requests_per_period, false)
-> 0.0017s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- transaction()
-- add_column(:application_settings, :throttle_authenticated_api_period_in_seconds, :integer, {:default=>nil})
-> 0.0011s
-- change_column_default(:application_settings, :throttle_authenticated_api_period_in_seconds, 3600)
-> 0.0107s
-> 0.0142s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0011s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0007s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0017s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0024s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0012s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0030s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0112s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0091s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_api_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 5")
-> 0.0029s
-- change_column_null(:application_settings, :throttle_authenticated_api_period_in_seconds, false)
-> 0.0056s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- transaction()
-- add_column(:application_settings, :throttle_authenticated_web_enabled, :boolean, {:default=>nil})
-> 0.0010s
-- change_column_default(:application_settings, :throttle_authenticated_web_enabled, false)
-> 0.0113s
-> 0.0152s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0012s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0007s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0019s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0023s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0017s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0011s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0018s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_enabled\" = 'f' WHERE \"application_settings\".\"id\" >= 5")
-> 0.0016s
-- change_column_null(:application_settings, :throttle_authenticated_web_enabled, false)
-> 0.0023s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- transaction()
-- add_column(:application_settings, :throttle_authenticated_web_requests_per_period, :integer, {:default=>nil})
-> 0.0012s
-- change_column_default(:application_settings, :throttle_authenticated_web_requests_per_period, 7200)
-> 0.0105s
-> 0.0141s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0031s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0011s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_requests_per_period\" = 7200 WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0020s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_requests_per_period\" = 7200 WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0015s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_requests_per_period\" = 7200 WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0016s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_requests_per_period\" = 7200 WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0016s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_requests_per_period\" = 7200 WHERE \"application_settings\".\"id\" >= 5")
-> 0.0017s
-- change_column_null(:application_settings, :throttle_authenticated_web_requests_per_period, false)
-> 0.0017s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- transaction()
-- add_column(:application_settings, :throttle_authenticated_web_period_in_seconds, :integer, {:default=>nil})
-> 0.0012s
-- change_column_default(:application_settings, :throttle_authenticated_web_period_in_seconds, 3600)
-> 0.0116s
-> 0.0149s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0010s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0007s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0007s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0025s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0007s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0022s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0027s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0015s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0017s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"throttle_authenticated_web_period_in_seconds\" = 3600 WHERE \"application_settings\".\"id\" >= 5")
-> 0.0016s
-- change_column_null(:application_settings, :throttle_authenticated_web_period_in_seconds, false)
-> 0.0015s
== 20171006220837 AddGlobalRateLimitsToApplicationSettings: migrated (0.4119s)
== 20171012101043 AddCircuitBreakerPropertiesToApplicationSettings: migrating =
-- add_column(:application_settings, :circuitbreaker_failure_count_threshold, :integer, {:default=>160})
-> 0.0250s
-- add_column(:application_settings, :circuitbreaker_failure_wait_time, :integer, {:default=>30})
-> 0.0183s
-- add_column(:application_settings, :circuitbreaker_failure_reset_time, :integer, {:default=>1800})
-> 0.0205s
-- add_column(:application_settings, :circuitbreaker_storage_timeout, :integer, {:default=>30})
-> 0.0179s
== 20171012101043 AddCircuitBreakerPropertiesToApplicationSettings: migrated (0.0822s)
== 20171012125712 MigrateUserAuthenticationTokenToPersonalAccessToken: migrating
-- execute("INSERT INTO personal_access_tokens (user_id, token, name, created_at, updated_at, scopes)\nSELECT id, authentication_token, 'Private Token', NOW(), NOW(), '---\n- api\n'\nFROM users\nWHERE authentication_token IS NOT NULL\nAND admin = FALSE\nAND NOT EXISTS (\n SELECT true\n FROM personal_access_tokens\n WHERE user_id = users.id\n AND token = users.authentication_token\n)\n")
-> 0.0234s
-- execute("INSERT INTO personal_access_tokens (user_id, token, name, created_at, updated_at, scopes)\nSELECT id, authentication_token, 'Private Token', NOW(), NOW(), '---\n- api\n- sudo\n'\nFROM users\nWHERE authentication_token IS NOT NULL\nAND admin = TRUE\nAND NOT EXISTS (\n SELECT true\n FROM personal_access_tokens\n WHERE user_id = users.id\n AND token = users.authentication_token\n)\n")
-> 0.0020s
== 20171012125712 MigrateUserAuthenticationTokenToPersonalAccessToken: migrated (0.0266s)
== 20171012150314 RemoveUserAuthenticationToken: migrating ====================
-- remove_column(:users, :authentication_token)
-> 0.0052s
== 20171012150314 RemoveUserAuthenticationToken: migrated (0.0053s) ===========
== 20171013094327 CreateNewClustersArchitectures: migrating ===================
-- create_table(:clusters)
-> 0.0262s
-- create_table(:cluster_projects)
-> 0.0297s
-- create_table(:cluster_platforms_kubernetes)
-> 0.0210s
-- create_table(:cluster_providers_gcp)
-> 0.0176s
== 20171013094327 CreateNewClustersArchitectures: migrated (0.0948s) ==========
== 20171013104327 MigrateGcpClustersToNewClustersArchitectures: migrating =====
== 20171013104327 MigrateGcpClustersToNewClustersArchitectures: migrated (0.0084s)
== 20171017145932 AddNewCircuitbreakerSettingsToApplicationSettings: migrating
-- add_column(:application_settings, :circuitbreaker_access_retries, :integer, {:default=>3})
-> 0.0199s
-- add_column(:application_settings, :circuitbreaker_backoff_threshold, :integer, {:default=>80})
-> 0.0165s
== 20171017145932 AddNewCircuitbreakerSettingsToApplicationSettings: migrated (0.0367s)
== 20171019141859 FixDevTimezoneSchema: migrating =============================
== 20171019141859 FixDevTimezoneSchema: migrated (0.0000s) ====================
== 20171025110159 AddLatestMergeRequestDiffIdToMergeRequests: migrating =======
-- add_column(:merge_requests, :latest_merge_request_diff_id, :integer)
-> 0.0017s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- index_exists?(:merge_requests, :latest_merge_request_diff_id, {:algorithm=>:concurrently})
-> 0.0222s
-- add_index(:merge_requests, :latest_merge_request_diff_id, {:algorithm=>:concurrently})
-> 0.0071s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- foreign_keys(:merge_requests)
-> 0.0052s
-- execute("ALTER TABLE merge_requests\nADD CONSTRAINT fk_06067f5644\nFOREIGN KEY (latest_merge_request_diff_id)\nREFERENCES merge_request_diffs (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0128s
-- execute("ALTER TABLE merge_requests VALIDATE CONSTRAINT fk_06067f5644;")
-> 0.1212s
== 20171025110159 AddLatestMergeRequestDiffIdToMergeRequests: migrated (0.1723s)
== 20171026082505 ScheduleMergeRequestLatestMergeRequestDiffIdMigrations: migrating
== 20171026082505 ScheduleMergeRequestLatestMergeRequestDiffIdMigrations: migrated (0.0071s)
== 20171031100710 CreateClustersKubernetesHelmApps: migrating =================
-- create_table(:clusters_applications_helm)
-> 0.0220s
== 20171031100710 CreateClustersKubernetesHelmApps: migrated (0.0221s) ========
== 20171101130535 AddGitalyTimeoutPropertiesToApplicationSettings: migrating ==
-- transaction_open?()
-> 0.0001s
-- execute("SET statement_timeout TO 0")
-> 0.0010s
-- transaction()
-- add_column(:application_settings, :gitaly_timeout_default, :integer, {:default=>nil})
-> 0.0023s
-- change_column_default(:application_settings, :gitaly_timeout_default, 55)
-> 0.0197s
-> 0.0257s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0016s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0012s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_default\" = 55 WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0031s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0011s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_default\" = 55 WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0023s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_default\" = 55 WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0020s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_default\" = 55 WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0015s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0007s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_default\" = 55 WHERE \"application_settings\".\"id\" >= 5")
-> 0.0017s
-- change_column_null(:application_settings, :gitaly_timeout_default, false)
-> 0.0017s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- transaction()
-- add_column(:application_settings, :gitaly_timeout_medium, :integer, {:default=>nil})
-> 0.0011s
-- change_column_default(:application_settings, :gitaly_timeout_medium, 30)
-> 0.0148s
-> 0.0198s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0012s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0095s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_medium\" = 30 WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0020s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_medium\" = 30 WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0018s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0011s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_medium\" = 30 WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0020s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_medium\" = 30 WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0018s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_medium\" = 30 WHERE \"application_settings\".\"id\" >= 5")
-> 0.0020s
-- change_column_null(:application_settings, :gitaly_timeout_medium, false)
-> 0.0017s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- transaction()
-- add_column(:application_settings, :gitaly_timeout_fast, :integer, {:default=>nil})
-> 0.0011s
-- change_column_default(:application_settings, :gitaly_timeout_fast, 10)
-> 0.0128s
-> 0.0162s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0011s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0011s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_fast\" = 10 WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0021s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_fast\" = 10 WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0024s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0011s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_fast\" = 10 WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0020s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_fast\" = 10 WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0019s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"application_settings\" SET \"gitaly_timeout_fast\" = 10 WHERE \"application_settings\".\"id\" >= 5")
-> 0.0015s
-- change_column_null(:application_settings, :gitaly_timeout_fast, false)
-> 0.0016s
== 20171101130535 AddGitalyTimeoutPropertiesToApplicationSettings: migrated (0.1434s)
== 20171101134435 RemoveRefFetchedFromMergeRequests: migrating ================
-- remove_column(:merge_requests, :ref_fetched, :boolean)
-> 0.0011s
== 20171101134435 RemoveRefFetchedFromMergeRequests: migrated (0.0012s) =======
== 20171103000000 SetUploadsPathSizeForMysql: migrating =======================
-- change_column(:uploads, :path, :string, {:limit=>511})
-> 0.0287s
== 20171103000000 SetUploadsPathSizeForMysql: migrated (0.0288s) ==============
== 20171103140253 TrackUntrackedUploads: migrating ============================
== 20171103140253 TrackUntrackedUploads: migrated (0.0012s) ===================
== 20171106101200 CreateClustersKubernetesIngressApps: migrating ==============
-- create_table(:clusters_applications_ingress)
-> 0.0131s
== 20171106101200 CreateClustersKubernetesIngressApps: migrated (0.0132s) =====
== 20171106132212 IssuesConfidentialNotNull: migrating ========================
-- change_column_null(:issues, :confidential, false)
-> 0.0011s
== 20171106132212 IssuesConfidentialNotNull: migrated (0.0501s) ===============
== 20171106133143 RenameApplicationSettingsPasswordAuthenticationEnabledToPasswordAuthenticationEnabledForWeb: migrating
-- transaction_open?()
-> 0.0000s
-- columns(:application_settings)
-> 0.0118s
-- add_column(:application_settings, :password_authentication_enabled_for_web, :boolean, {:limit=>nil, :precision=>nil, :scale=>nil})
-> 0.0025s
-- quote_table_name(:application_settings)
-> 0.0001s
-- quote_column_name(:password_authentication_enabled)
-> 0.0000s
-- quote_column_name(:password_authentication_enabled_for_web)
-> 0.0000s
-- execute("CREATE OR REPLACE FUNCTION trigger_1aa3789b513d()\nRETURNS trigger AS\n$BODY$\nBEGIN\n NEW.\"password_authentication_enabled_for_web\" := NEW.\"password_authentication_enabled\";\n RETURN NEW;\nEND;\n$BODY$\nLANGUAGE 'plpgsql'\nVOLATILE\n")
-> 0.0092s
-- execute("CREATE TRIGGER trigger_1aa3789b513d\nBEFORE INSERT OR UPDATE\nON \"application_settings\"\nFOR EACH ROW\nEXECUTE PROCEDURE trigger_1aa3789b513d()\n")
-> 0.0031s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0011s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0008s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0011s
-- execute("UPDATE \"application_settings\" SET \"password_authentication_enabled_for_web\" = \"application_settings\".\"password_authentication_enabled\" WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0027s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"password_authentication_enabled_for_web\" = \"application_settings\".\"password_authentication_enabled\" WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0019s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"password_authentication_enabled_for_web\" = \"application_settings\".\"password_authentication_enabled\" WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0074s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0013s
-- execute("UPDATE \"application_settings\" SET \"password_authentication_enabled_for_web\" = \"application_settings\".\"password_authentication_enabled\" WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0021s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"application_settings\" SET \"password_authentication_enabled_for_web\" = \"application_settings\".\"password_authentication_enabled\" WHERE \"application_settings\".\"id\" >= 5")
-> 0.0021s
-- indexes(:application_settings)
-> 0.0017s
-- foreign_keys(:application_settings)
-> 0.0054s
== 20171106133143 RenameApplicationSettingsPasswordAuthenticationEnabledToPasswordAuthenticationEnabledForWeb: migrated (0.0689s)
== 20171106133144 CleanupApplicationSettingsPasswordAuthenticationEnabledRename: migrating
-- execute("DROP TRIGGER IF EXISTS trigger_1aa3789b513d ON application_settings")
-> 0.0109s
-- execute("DROP FUNCTION IF EXISTS trigger_1aa3789b513d()")
-> 0.0139s
-- remove_column(:application_settings, :password_authentication_enabled)
-> 0.0025s
== 20171106133144 CleanupApplicationSettingsPasswordAuthenticationEnabledRename: migrated (0.0286s)
== 20171106133911 AddPasswordAuthenticationEnabledForGitToApplicationSettings: migrating
-- add_column(:application_settings, :password_authentication_enabled_for_git, :boolean, {:default=>true, :null=>false})
-> 0.0189s
== 20171106133911 AddPasswordAuthenticationEnabledForGitToApplicationSettings: migrated (0.0191s)
== 20171106135924 IssuesMilestoneIdForeignKey: migrating ======================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- foreign_keys(:issues)
-> 0.0065s
-- execute("ALTER TABLE issues\nADD CONSTRAINT fk_96b1dd429c\nFOREIGN KEY (milestone_id)\nREFERENCES milestones (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0037s
-- execute("ALTER TABLE issues VALIDATE CONSTRAINT fk_96b1dd429c;")
-> 0.0030s
== 20171106135924 IssuesMilestoneIdForeignKey: migrated (0.0469s) =============
== 20171106150657 IssuesUpdatedByIdForeignKey: migrating ======================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- index_exists?(:issues, :updated_by_id, {:where=>"updated_by_id IS NOT NULL", :algorithm=>:concurrently})
-> 0.0134s
-- add_index(:issues, :updated_by_id, {:where=>"updated_by_id IS NOT NULL", :algorithm=>:concurrently})
-> 0.0097s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- foreign_keys(:issues)
-> 0.0161s
-- execute("ALTER TABLE issues\nADD CONSTRAINT fk_ffed080f01\nFOREIGN KEY (updated_by_id)\nREFERENCES users (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0031s
-- execute("ALTER TABLE issues VALIDATE CONSTRAINT fk_ffed080f01;")
-> 0.0027s
== 20171106150657 IssuesUpdatedByIdForeignKey: migrated (0.0507s) =============
== 20171106151218 IssuesMovedToIdForeignKey: migrating ========================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- foreign_keys(:issues)
-> 0.0062s
-- execute("ALTER TABLE issues\nADD CONSTRAINT fk_a194299be1\nFOREIGN KEY (moved_to_id)\nREFERENCES issues (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0039s
-- execute("ALTER TABLE issues VALIDATE CONSTRAINT fk_a194299be1;")
-> 0.0023s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- index_exists?(:issues, :moved_to_id, {:where=>"moved_to_id IS NOT NULL", :algorithm=>:concurrently})
-> 0.0120s
-- add_index(:issues, :moved_to_id, {:where=>"moved_to_id IS NOT NULL", :algorithm=>:concurrently})
-> 0.0096s
== 20171106151218 IssuesMovedToIdForeignKey: migrated (0.0389s) ===============
== 20171106154015 RemoveIssuesBranchName: migrating ===========================
-- remove_column(:issues, :branch_name, :string)
-> 0.0009s
== 20171106154015 RemoveIssuesBranchName: migrated (0.0010s) ==================
== 20171106155656 TurnIssuesDueDateIndexToPartialIndex: migrating =============
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- index_exists?(:issues, [:project_id, :due_date, :id, :state], {:where=>"due_date IS NOT NULL", :name=>"idx_issues_on_project_id_and_due_date_and_id_and_state_partial", :algorithm=>:concurrently})
-> 0.0128s
-- add_index(:issues, [:project_id, :due_date, :id, :state], {:where=>"due_date IS NOT NULL", :name=>"idx_issues_on_project_id_and_due_date_and_id_and_state_partial", :algorithm=>:concurrently})
-> 0.0128s
-- transaction_open?()
-> 0.0000s
-- select_one("SELECT current_setting('server_version_num') AS v")
-> 0.0011s
-- execute("SET statement_timeout TO 0")
-> 0.0007s
-- index_exists?(:issues, nil, {:name=>"index_issues_on_project_id_and_due_date_and_id_and_state", :algorithm=>:concurrently})
-> 0.0132s
== 20171106155656 TurnIssuesDueDateIndexToPartialIndex: migrated (0.0422s) ====
== 20171106171453 AddTimezoneToIssuesClosedAt: migrating ======================
-- transaction_open?()
-> 0.0000s
-- columns(:issues)
-> 0.0020s
-- add_column(:issues, "closed_at_for_type_change", :datetime_with_timezone, {:limit=>nil, :precision=>nil, :scale=>nil})
-> 0.0020s
-- quote_table_name(:issues)
-> 0.0001s
-- quote_column_name(:closed_at)
-> 0.0000s
-- quote_column_name("closed_at_for_type_change")
-> 0.0000s
-- execute("CREATE OR REPLACE FUNCTION trigger_08acb26c5ecf()\nRETURNS trigger AS\n$BODY$\nBEGIN\n NEW.\"closed_at_for_type_change\" := NEW.\"closed_at\";\n RETURN NEW;\nEND;\n$BODY$\nLANGUAGE 'plpgsql'\nVOLATILE\n")
-> 0.0308s
-- execute("CREATE TRIGGER trigger_08acb26c5ecf\nBEFORE INSERT OR UPDATE\nON \"issues\"\nFOR EACH ROW\nEXECUTE PROCEDURE trigger_08acb26c5ecf()\n")
-> 0.0020s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"issues\"")
-> 0.0073s
-- indexes(:issues)
-> 0.0138s
-- foreign_keys(:issues)
-> 0.0061s
== 20171106171453 AddTimezoneToIssuesClosedAt: migrated (0.0666s) =============
== 20171106180641 CleanupAddTimezoneToIssuesClosedAt: migrating ===============
-- transaction()
-- execute("DROP TRIGGER IF EXISTS trigger_08acb26c5ecf ON issues")
-> 0.0009s
-- execute("DROP FUNCTION IF EXISTS trigger_08acb26c5ecf()")
-> 0.0007s
-- remove_column(:issues, :closed_at)
-> 0.0008s
-- rename_column(:issues, "closed_at_for_type_change", :closed_at)
-> 0.0144s
-> 0.0218s
== 20171106180641 CleanupAddTimezoneToIssuesClosedAt: migrated (0.0220s) ======
== 20171114104051 RemoveEmptyForkNetworks: migrating ==========================
-- Deleting empty ForkNetworks in batches
== 20171114104051 RemoveEmptyForkNetworks: migrated (0.0163s) =================
== 20171114150259 MergeRequestsAuthorIdForeignKey: migrating ==================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- foreign_keys(:merge_requests)
-> 0.0059s
-- execute("ALTER TABLE merge_requests\nADD CONSTRAINT fk_e719a85f8a\nFOREIGN KEY (author_id)\nREFERENCES users (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0035s
-- execute("ALTER TABLE merge_requests VALIDATE CONSTRAINT fk_e719a85f8a;")
-> 0.0039s
== 20171114150259 MergeRequestsAuthorIdForeignKey: migrated (0.1339s) =========
== 20171114160005 MergeRequestsAssigneeIdForeignKey: migrating ================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- foreign_keys(:merge_requests)
-> 0.0059s
-- execute("ALTER TABLE merge_requests\nADD CONSTRAINT fk_6149611a04\nFOREIGN KEY (assignee_id)\nREFERENCES users (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0034s
-- execute("ALTER TABLE merge_requests VALIDATE CONSTRAINT fk_6149611a04;")
-> 0.0092s
== 20171114160005 MergeRequestsAssigneeIdForeignKey: migrated (0.0238s) =======
== 20171114160904 MergeRequestsUpdatedByIdForeignKey: migrating ===============
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- index_exists?(:merge_requests, :updated_by_id, {:where=>"updated_by_id IS NOT NULL", :algorithm=>:concurrently})
-> 0.0168s
-- add_index(:merge_requests, :updated_by_id, {:where=>"updated_by_id IS NOT NULL", :algorithm=>:concurrently})
-> 0.0079s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0009s
-- foreign_keys(:merge_requests)
-> 0.0062s
-- execute("ALTER TABLE merge_requests\nADD CONSTRAINT fk_641731faff\nFOREIGN KEY (updated_by_id)\nREFERENCES users (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0029s
-- execute("ALTER TABLE merge_requests VALIDATE CONSTRAINT fk_641731faff;")
-> 0.0027s
== 20171114160904 MergeRequestsUpdatedByIdForeignKey: migrated (0.0431s) ======
== 20171114161720 MergeRequestsMergeUserIdForeignKey: migrating ===============
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- index_exists?(:merge_requests, :merge_user_id, {:where=>"merge_user_id IS NOT NULL", :algorithm=>:concurrently})
-> 0.0151s
-- add_index(:merge_requests, :merge_user_id, {:where=>"merge_user_id IS NOT NULL", :algorithm=>:concurrently})
-> 0.0079s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- foreign_keys(:merge_requests)
-> 0.0064s
-- execute("ALTER TABLE merge_requests\nADD CONSTRAINT fk_ad525e1f87\nFOREIGN KEY (merge_user_id)\nREFERENCES users (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0036s
-- execute("ALTER TABLE merge_requests VALIDATE CONSTRAINT fk_ad525e1f87;")
-> 0.0039s
== 20171114161720 MergeRequestsMergeUserIdForeignKey: migrated (0.0437s) ======
== 20171114161914 MergeRequestsSourceProjectIdForeignKey: migrating ===========
-- change_column_null(:merge_requests, :source_project_id, true)
-> 0.0025s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- foreign_keys(:merge_requests)
-> 0.0071s
-- execute("ALTER TABLE merge_requests\nADD CONSTRAINT fk_3308fe130c\nFOREIGN KEY (source_project_id)\nREFERENCES projects (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0023s
-- execute("ALTER TABLE merge_requests VALIDATE CONSTRAINT fk_3308fe130c;")
-> 0.0027s
== 20171114161914 MergeRequestsSourceProjectIdForeignKey: migrated (0.0205s) ==
== 20171114162227 MergeRequestsMilestoneIdForeignKey: migrating ===============
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- foreign_keys(:merge_requests)
-> 0.0099s
-- execute("ALTER TABLE merge_requests\nADD CONSTRAINT fk_6a5165a692\nFOREIGN KEY (milestone_id)\nREFERENCES milestones (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0041s
-- execute("ALTER TABLE merge_requests VALIDATE CONSTRAINT fk_6a5165a692;")
-> 0.0117s
== 20171114162227 MergeRequestsMilestoneIdForeignKey: migrated (0.0306s) ======
== 20171115164540 PopulateMergeRequestsLatestMergeRequestDiffIdTakeTwo: migrating
== 20171115164540 PopulateMergeRequestsLatestMergeRequestDiffIdTakeTwo: migrated (0.0067s)
== 20171116135628 AddEnvironmentScopeToClusters: migrating ====================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- transaction()
-- add_column(:clusters, :environment_scope, :string, {:default=>nil})
-> 0.0010s
-- change_column_default(:clusters, :environment_scope, "*")
-> 0.0026s
-> 0.0055s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"clusters\"")
-> 0.0013s
-- change_column_null(:clusters, :environment_scope, false)
-> 0.0027s
== 20171116135628 AddEnvironmentScopeToClusters: migrated (0.0109s) ===========
== 20171121135738 CleanUpFromMergeRequestDiffsAndCommits: migrating ===========
== 20171121135738 CleanUpFromMergeRequestDiffsAndCommits: migrated (0.0061s) ==
== 20171121144800 CiPipelinesIndexOnProjectIdRefStatusId: migrating ===========
-- index_exists?(:ci_pipelines, [:project_id, :ref, :status, :id])
-> 0.0082s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- index_exists?(:ci_pipelines, [:project_id, :ref, :status, :id], {:algorithm=>:concurrently})
-> 0.0075s
-- add_index(:ci_pipelines, [:project_id, :ref, :status, :id], {:algorithm=>:concurrently})
-> 0.0117s
-- index_exists?(:ci_pipelines, [:project_id, :ref, :status])
-> 0.0098s
-- transaction_open?()
-> 0.0000s
-- select_one("SELECT current_setting('server_version_num') AS v")
-> 0.0007s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- index_exists?(:ci_pipelines, [:project_id, :ref, :status], {:algorithm=>:concurrently})
-> 0.0095s
-- remove_index(:ci_pipelines, {:algorithm=>:concurrently, :column=>[:project_id, :ref, :status]})
-> 0.0057s
== 20171121144800 CiPipelinesIndexOnProjectIdRefStatusId: migrated (0.0553s) ==
== 20171121160421 RemoveMergeRequestDiffStCommitsAndStDiffs: migrating ========
-- remove_column(:merge_request_diffs, :st_commits, :text)
-> 0.0009s
-- remove_column(:merge_request_diffs, :st_diffs, :text)
-> 0.0011s
== 20171121160421 RemoveMergeRequestDiffStCommitsAndStDiffs: migrated (0.0022s)
== 20171122131600 AddNewProjectGuidelinesToAppearances: migrating =============
-- change_table(:appearances)
-> 0.0022s
== 20171122131600 AddNewProjectGuidelinesToAppearances: migrated (0.0026s) ====
== 20171123094802 AddCircuitbreakerCheckIntervalToApplicationSettings: migrating
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- transaction()
-- add_column(:application_settings, :circuitbreaker_check_interval, :integer, {:default=>nil})
-> 0.0015s
-- change_column_default(:application_settings, :circuitbreaker_check_interval, 1)
-> 0.0151s
-> 0.0196s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"application_settings\"")
-> 0.0012s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" ORDER BY \"application_settings\".\"id\" ASC LIMIT 1")
-> 0.0013s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 1 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"circuitbreaker_check_interval\" = 1 WHERE \"application_settings\".\"id\" >= 1 AND \"application_settings\".\"id\" < 2")
-> 0.0028s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 2 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"circuitbreaker_check_interval\" = 1 WHERE \"application_settings\".\"id\" >= 2 AND \"application_settings\".\"id\" < 3")
-> 0.0020s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 3 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0008s
-- execute("UPDATE \"application_settings\" SET \"circuitbreaker_check_interval\" = 1 WHERE \"application_settings\".\"id\" >= 3 AND \"application_settings\".\"id\" < 4")
-> 0.0021s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 4 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0010s
-- execute("UPDATE \"application_settings\" SET \"circuitbreaker_check_interval\" = 1 WHERE \"application_settings\".\"id\" >= 4 AND \"application_settings\".\"id\" < 5")
-> 0.0124s
-- exec_query("SELECT \"application_settings\".\"id\" FROM \"application_settings\" WHERE \"application_settings\".\"id\" >= 5 ORDER BY \"application_settings\".\"id\" ASC LIMIT 1 OFFSET 1")
-> 0.0009s
-- execute("UPDATE \"application_settings\" SET \"circuitbreaker_check_interval\" = 1 WHERE \"application_settings\".\"id\" >= 5")
-> 0.0055s
-- change_column_null(:application_settings, :circuitbreaker_check_interval, false)
-> 0.0047s
== 20171123094802 AddCircuitbreakerCheckIntervalToApplicationSettings: migrated (0.0619s)
== 20171123101020 UpdateCircuitbreakerDefaults: migrating =====================
-- change_column_default(:application_settings, :circuitbreaker_failure_count_threshold, 3)
-> 0.0151s
-- change_column_default(:application_settings, :circuitbreaker_storage_timeout, 15)
-> 0.0172s
== 20171123101020 UpdateCircuitbreakerDefaults: migrated (0.0384s) ============
== 20171123101046 RemoveOldCircuitbreakerConfig: migrating ====================
-- remove_column(:application_settings, :circuitbreaker_backoff_threshold)
-> 0.0014s
-- remove_column(:application_settings, :circuitbreaker_failure_wait_time)
-> 0.0011s
== 20171123101046 RemoveOldCircuitbreakerConfig: migrated (0.0026s) ===========
== 20171124095655 AddIndexOnMergeRequestDiffsMergeRequestIdAndId: migrating ===
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- index_exists?(:merge_request_diffs, [:merge_request_id, :id], {:algorithm=>:concurrently})
-> 0.0032s
-- add_index(:merge_request_diffs, [:merge_request_id, :id], {:algorithm=>:concurrently})
-> 0.0100s
== 20171124095655 AddIndexOnMergeRequestDiffsMergeRequestIdAndId: migrated (0.0142s)
== 20171124100152 RemoveIndexOnMergeRequestDiffsMergeRequestDiffId: migrating =
-- index_exists?(:merge_request_diffs, :merge_request_id)
-> 0.0043s
-- transaction_open?()
-> 0.0000s
-- select_one("SELECT current_setting('server_version_num') AS v")
-> 0.0007s
-- execute("SET statement_timeout TO 0")
-> 0.0012s
-- index_exists?(:merge_request_diffs, :merge_request_id, {:algorithm=>:concurrently})
-> 0.0032s
-- remove_index(:merge_request_diffs, {:algorithm=>:concurrently, :column=>:merge_request_id})
-> 0.0054s
== 20171124100152 RemoveIndexOnMergeRequestDiffsMergeRequestDiffId: migrated (0.0160s)
== 20171124104327 MigrateKubernetesServiceToNewClustersArchitectures: migrating
== 20171124104327 MigrateKubernetesServiceToNewClustersArchitectures: migrated (0.0536s)
== 20171124125042 AddDefaultValuesToMergeRequestStates: migrating =============
-- change_column_default(:merge_requests, :state, :opened)
-> 0.0035s
-- change_column_default(:merge_requests, :merge_status, :unchecked)
-> 0.0033s
== 20171124125042 AddDefaultValuesToMergeRequestStates: migrated (0.0070s) ====
== 20171124125748 PopulateMissingMergeRequestStatuses: migrating ==============
-- Populating missing merge_requests.state values
-- Populating missing merge_requests.merge_status values. This will take a few minutes...
== 20171124125748 PopulateMissingMergeRequestStatuses: migrated (0.0049s) =====
== 20171124132536 MakeMergeRequestStatusesNotNull: migrating ==================
-- change_column_null(:merge_requests, :state, false)
-> 0.0009s
-- change_column_null(:merge_requests, :merge_status, false)
-> 0.0008s
== 20171124132536 MakeMergeRequestStatusesNotNull: migrated (0.0019s) =========
== 20171124150326 RescheduleForkNetworkCreation: migrating ====================
-- Fork networks will be populated in 20171205190711 - RescheduleForkNetworkCreationCaller
== 20171124150326 RescheduleForkNetworkCreation: migrated (0.0000s) ===========
== 20171127151038 AddEventsRelatedColumnsToMergeRequestMetrics: migrating =====
-- change_table(:merge_request_metrics)
-> 0.0051s
-- add_column(:merge_request_metrics, :latest_closed_at, :datetime_with_timezone)
-> 0.0016s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- foreign_keys(:merge_request_metrics)
-> 0.0067s
-- execute("ALTER TABLE merge_request_metrics\nADD CONSTRAINT fk_7f28d925f3\nFOREIGN KEY (merged_by_id)\nREFERENCES users (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0071s
-- execute("ALTER TABLE merge_request_metrics VALIDATE CONSTRAINT fk_7f28d925f3;")
-> 0.0714s
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- foreign_keys(:merge_request_metrics)
-> 0.0058s
-- execute("ALTER TABLE merge_request_metrics\nADD CONSTRAINT fk_ae440388cc\nFOREIGN KEY (latest_closed_by_id)\nREFERENCES users (id)\nON DELETE SET NULL\nNOT VALID;\n")
-> 0.0034s
-- execute("ALTER TABLE merge_request_metrics VALIDATE CONSTRAINT fk_ae440388cc;")
-> 0.0025s
== 20171127151038 AddEventsRelatedColumnsToMergeRequestMetrics: migrated (0.1060s)
== 20171128214150 SchedulePopulateMergeRequestMetricsWithEventsData: migrating
-- Scheduling `PopulateMergeRequestMetricsWithEventsData` jobs
== 20171128214150 SchedulePopulateMergeRequestMetricsWithEventsData: migrated (0.0033s)
== 20171204204233 AddPermanentToRedirectRoute: migrating ======================
-- add_column(:redirect_routes, :permanent, :boolean)
-> 0.0063s
== 20171204204233 AddPermanentToRedirectRoute: migrated (0.0064s) =============
== 20171205190711 RescheduleForkNetworkCreationCaller: migrating ==============
-- Populating the `fork_networks` based on existing `forked_project_links`
== 20171205190711 RescheduleForkNetworkCreationCaller: migrated (0.0176s) =====
== 20171206221519 AddPermanentIndexToRedirectRoute: migrating =================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0011s
-- index_exists?(:redirect_routes, :permanent, {:algorithm=>:concurrently})
-> 0.0067s
-- add_index(:redirect_routes, :permanent, {:algorithm=>:concurrently})
-> 0.0107s
== 20171206221519 AddPermanentIndexToRedirectRoute: migrated (0.0189s) ========
== 20171207150300 RemoveProjectLabelsGroupIdCopy: migrating ===================
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"labels\" WHERE \"labels\".\"type\" = 'ProjectLabel' AND \"labels\".\"group_id\" IS NOT NULL")
-> 0.0371s
== 20171207150300 RemoveProjectLabelsGroupIdCopy: migrated (0.0404s) ==========
== 20171207150343 RemoveSoftRemovedObjects: migrating =========================
-- execute("SET statement_timeout TO 0")
-> 0.0007s
-- index_exists?("issues", [:deleted_at, :id], {:name=>"index_on_issues_tmp"})
-> 0.0167s
-- Creating temporary index index_on_issues_tmp
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- index_exists?("issues", [:deleted_at, :id], {:name=>"index_on_issues_tmp", :where=>"deleted_at IS NOT NULL", :algorithm=>:concurrently})
-> 0.0190s
-- add_index("issues", [:deleted_at, :id], {:name=>"index_on_issues_tmp", :where=>"deleted_at IS NOT NULL", :algorithm=>:concurrently})
-> 0.0076s
-> 0.0274s
-- index_exists?("merge_requests", [:deleted_at, :id], {:name=>"index_on_merge_requests_tmp"})
-> 0.0176s
-- Creating temporary index index_on_merge_requests_tmp
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- index_exists?("merge_requests", [:deleted_at, :id], {:name=>"index_on_merge_requests_tmp", :where=>"deleted_at IS NOT NULL", :algorithm=>:concurrently})
-> 0.0192s
-- add_index("merge_requests", [:deleted_at, :id], {:name=>"index_on_merge_requests_tmp", :where=>"deleted_at IS NOT NULL", :algorithm=>:concurrently})
-> 0.0096s
-> 0.0297s
-- index_exists?("ci_pipeline_schedules", [:deleted_at, :id], {:name=>"index_on_ci_pipeline_schedules_tmp"})
-> 0.0036s
-- Creating temporary index index_on_ci_pipeline_schedules_tmp
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- index_exists?("ci_pipeline_schedules", [:deleted_at, :id], {:name=>"index_on_ci_pipeline_schedules_tmp", :where=>"deleted_at IS NOT NULL", :algorithm=>:concurrently})
-> 0.0084s
-- add_index("ci_pipeline_schedules", [:deleted_at, :id], {:name=>"index_on_ci_pipeline_schedules_tmp", :where=>"deleted_at IS NOT NULL", :algorithm=>:concurrently})
-> 0.0094s
-> 0.0187s
-- index_exists?("ci_triggers", [:deleted_at, :id], {:name=>"index_on_ci_triggers_tmp"})
-> 0.0043s
-- Creating temporary index index_on_ci_triggers_tmp
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- index_exists?("ci_triggers", [:deleted_at, :id], {:name=>"index_on_ci_triggers_tmp", :where=>"deleted_at IS NOT NULL", :algorithm=>:concurrently})rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:
PG::NotNullViolation: ERROR: column "projects_limit" contains null values
: ALTER TABLE "users" ALTER "projects_limit" SET NOT NULL
/opt/gitlab/embedded/service/gitlab-rails/db/migrate/20171229225929_change_user_project_limit_not_null_and_remove_default.rb:30:in `up'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:50:in `block (3 levels) in <top (required)>'
/opt/gitlab/embedded/bin/bundle:23:in `load'
/opt/gitlab/embedded/bin/bundle:23:in `<main>'
Caused by:
ActiveRecord::StatementInvalid: PG::NotNullViolation: ERROR: column "projects_limit" contains null values
: ALTER TABLE "users" ALTER "projects_limit" SET NOT NULL
/opt/gitlab/embedded/service/gitlab-rails/db/migrate/20171229225929_change_user_project_limit_not_null_and_remove_default.rb:30:in `up'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:50:in `block (3 levels) in <top (required)>'
/opt/gitlab/embedded/bin/bundle:23:in `load'
/opt/gitlab/embedded/bin/bundle:23:in `<main>'
Caused by:
PG::NotNullViolation: ERROR: column "projects_limit" contains null values
/opt/gitlab/embedded/service/gitlab-rails/db/migrate/20171229225929_change_user_project_limit_not_null_and_remove_default.rb:30:in `up'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:50:in `block (3 levels) in <top (required)>'
/opt/gitlab/embedded/bin/bundle:23:in `load'
/opt/gitlab/embedded/bin/bundle:23:in `<main>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
-> 0.0062s
-- add_index("ci_triggers", [:deleted_at, :id], {:name=>"index_on_ci_triggers_tmp", :where=>"deleted_at IS NOT NULL", :algorithm=>:concurrently})
-> 0.0075s
-> 0.0157s
-- Removing soft removed rows from issues
-> 0.0034s
-- Removing soft removed rows from merge_requests
-> 0.0031s
-- Removing soft removed rows from ci_pipeline_schedules
-> 0.0101s
-- Removing soft removed rows from ci_triggers
-> 0.0086s
-- index_exists?("issues", [:deleted_at, :id], {:name=>"index_on_issues_tmp"})
-> 0.0175s
-- Removing temporary index index_on_issues_tmp
-- transaction_open?()
-> 0.0000s
-- select_one("SELECT current_setting('server_version_num') AS v")
-> 0.0008s
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- indexes("issues")
-> 0.0173s
-- remove_index("issues", {:algorithm=>:concurrently, :name=>"index_on_issues_tmp"})
-> 0.0058s
-> 0.0248s
-- index_exists?("merge_requests", [:deleted_at, :id], {:name=>"index_on_merge_requests_tmp"})
-> 0.0214s
-- Removing temporary index index_on_merge_requests_tmp
-- transaction_open?()
-> 0.0000s
-- select_one("SELECT current_setting('server_version_num') AS v")
-> 0.0006s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- indexes("merge_requests")
-> 0.0194s
-- remove_index("merge_requests", {:algorithm=>:concurrently, :name=>"index_on_merge_requests_tmp"})
-> 0.0055s
-> 0.0264s
-- index_exists?("ci_pipeline_schedules", [:deleted_at, :id], {:name=>"index_on_ci_pipeline_schedules_tmp"})
-> 0.0052s
-- Removing temporary index index_on_ci_pipeline_schedules_tmp
-- transaction_open?()
-> 0.0000s
-- select_one("SELECT current_setting('server_version_num') AS v")
-> 0.0007s
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- indexes("ci_pipeline_schedules")
-> 0.0051s
-- remove_index("ci_pipeline_schedules", {:algorithm=>:concurrently, :name=>"index_on_ci_pipeline_schedules_tmp"})
-> 0.0052s
-> 0.0120s
-- index_exists?("ci_triggers", [:deleted_at, :id], {:name=>"index_on_ci_triggers_tmp"})
-> 0.0045s
-- Removing temporary index index_on_ci_triggers_tmp
-- transaction_open?()
-> 0.0000s
-- select_one("SELECT current_setting('server_version_num') AS v")
-> 0.0009s
-- execute("SET statement_timeout TO 0")
-> 0.0037s
-- indexes("ci_triggers")
-> 0.0037s
-- remove_index("ci_triggers", {:algorithm=>:concurrently, :name=>"index_on_ci_triggers_tmp"})
-> 0.0050s
-> 0.0138s
== 20171207150343 RemoveSoftRemovedObjects: migrated (0.3435s) ================
== 20171207150344 RemoveDeletedAtColumns: migrating ===========================
-- column_exists?(:issues, :deleted_at)
-> 0.0022s
-- remove_column(:issues, :deleted_at)
-> 0.0030s
-- column_exists?(:merge_requests, :deleted_at)
-> 0.0029s
-- remove_column(:merge_requests, :deleted_at)
-> 0.0138s
-- column_exists?(:namespaces, :deleted_at)
-> 0.0025s
-- remove_column(:namespaces, :deleted_at)
-> 0.0036s
-- column_exists?(:ci_pipeline_schedules, :deleted_at)
-> 0.0021s
-- remove_column(:ci_pipeline_schedules, :deleted_at)
-> 0.0022s
-- column_exists?(:ci_triggers, :deleted_at)
-> 0.0018s
-- remove_column(:ci_triggers, :deleted_at)
-> 0.0019s
== 20171207150344 RemoveDeletedAtColumns: migrated (0.0368s) ==================
== 20171207185153 AddMergeRequestStateIndex: migrating ========================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- index_exists?(:merge_requests, [:source_project_id, :source_branch], {:where=>"state = 'opened'", :name=>"index_merge_requests_on_source_project_and_branch_state_opened", :algorithm=>:concurrently})
-> 0.0131s
-- add_index(:merge_requests, [:source_project_id, :source_branch], {:where=>"state = 'opened'", :name=>"index_merge_requests_on_source_project_and_branch_state_opened", :algorithm=>:concurrently})
-> 0.0078s
== 20171207185153 AddMergeRequestStateIndex: migrated (0.0217s) ===============
== 20171211145425 AddCanPushToDeployKeysProjects: migrating ===================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0007s
-- transaction()
-- add_column(:deploy_keys_projects, :can_push, :boolean, {:default=>nil})
-> 0.0009s
-- change_column_default(:deploy_keys_projects, :can_push, false)
-> 0.0022s
-> 0.0055s
-- transaction_open?()
-> 0.0000s
-- exec_query("SELECT COUNT(*) AS count FROM \"deploy_keys_projects\"")
-> 0.0028s
-- change_column_null(:deploy_keys_projects, :can_push, false)
-> 0.0014s
== 20171211145425 AddCanPushToDeployKeysProjects: migrated (0.0111s) ==========
== 20171212203433 CreateClustersApplicationsPrometheus: migrating =============
-- create_table(:clusters_applications_prometheus)
-> 0.0115s
== 20171212203433 CreateClustersApplicationsPrometheus: migrated (0.0116s) ====
== 20171213160445 MigrateGithubImporterAdvanceStageSidekiqQueue: migrating ====
== 20171213160445 MigrateGithubImporterAdvanceStageSidekiqQueue: migrated (0.0005s)
== 20171214144320 AddStoreColumnToUploads: migrating ==========================
-- add_column(:uploads, :store, :integer)
-> 0.0008s
== 20171214144320 AddStoreColumnToUploads: migrated (0.0012s) =================
== 20171215113714 PopulateCanPushFromDeployKeysProjects: migrating ============
== 20171215113714 PopulateCanPushFromDeployKeysProjects: migrated (0.0045s) ===
== 20171215121205 PostPopulateCanPushFromDeployKeysProjects: migrating ========
== 20171215121205 PostPopulateCanPushFromDeployKeysProjects: migrated (0.0017s)
== 20171215121259 RemoveCanPushFromKeys: migrating ============================
-- remove_column(:keys, :can_push)
-> 0.0044s
== 20171215121259 RemoveCanPushFromKeys: migrated (0.0045s) ===================
== 20171216111734 CleanUpForMembers: migrating ================================
== 20171216111734 CleanUpForMembers: migrated (0.0414s) =======================
== 20171216112339 AddForeignKeyForMembers: migrating ==========================
-- transaction_open?()
-> 0.0000s
-- execute("SET statement_timeout TO 0")
-> 0.0003s
-- foreign_keys(:members)
-> 0.0058s
-- execute("ALTER TABLE members\nADD CONSTRAINT fk_2e88fb7ce9\nFOREIGN KEY (user_id)\nREFERENCES users (id)\nON DELETE CASCADE\nNOT VALID;\n")
-> 0.0029s
-- execute("ALTER TABLE members VALIDATE CONSTRAINT fk_2e88fb7ce9;")
-> 0.0025s
== 20171216112339 AddForeignKeyForMembers: migrated (0.0122s) =================
== 20171219121201 NormalizeExternUidFromIdentities: migrating =================
== 20171219121201 NormalizeExternUidFromIdentities: migrated (0.0161s) ========
== 20171220191323 AddIndexOnNamespacesLowerName: migrating ====================
-- execute("SET statement_timeout TO 0")
-> 0.0006s
-- execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS index_on_namespaces_lower_name ON namespaces (lower(name));")
-> 0.0041s
== 20171220191323 AddIndexOnNamespacesLowerName: migrated (0.0057s) ===========
== 20171221140220 ScheduleIssuesClosedAtTypeChange: migrating =================
-- columns("issues")
-> 0.0020s
== 20171221140220 ScheduleIssuesClosedAtTypeChange: migrated (0.0021s) ========
== 20171222115326 AddConfidentialNoteEventsToWebHooks: migrating ==============
-- add_column(:web_hooks, :confidential_note_events, :boolean)
-> 0.0036s
== 20171222115326 AddConfidentialNoteEventsToWebHooks: migrated (0.0039s) =====
== 20171222183504 AddJobsCacheIndexToProject: migrating =======================
-- add_column(:projects, :jobs_cache_index, :integer)
-> 0.0011s
== 20171222183504 AddJobsCacheIndexToProject: migrated (0.0012s) ==============
== 20171229225929 ChangeUserProjectLimitNotNullAndRemoveDefault: migrating ====
-- change_column_null(:users, :projects_limit, false)
STDERR:
---- End output of "bash" "/tmp/chef-script20180504-12021-1gw9z1f" ----
Ran "bash" "/tmp/chef-script20180504-12021-1gw9z1f" returned 1
Running handlers complete
Chef Client failed. 29 resources updated in 01 minutes 20 seconds
Checking for an omnibus managed postgresql: OK
Checking for a newer version of PostgreSQL to install
No new version of PostgreSQL installed, nothing to upgrade to
Ensuring PostgreSQL is updated: OK
Restarting previously running GitLab services
ok: run: gitaly: (pid 12733) 0s
ok: run: gitlab-monitor: (pid 12744) 1s
ok: run: gitlab-workhorse: (pid 12748) 0s
ok: run: logrotate: (pid 12767) 1s
ok: run: nginx: (pid 12773) 0s
ok: run: node-exporter: (pid 12967) 0s
timeout: down: postgres-exporter: 1s, normally up, want up
ok: run: postgresql: (pid 12006) 141s
ok: run: prometheus: (pid 13289) 1s
ok: run: redis: (pid 12566) 116s
ok: run: redis-exporter: (pid 13296) 0s
ok: run: sidekiq: (pid 13309) 1s
ok: run: unicorn: (pid 13324) 0s
_______ __ __ __
/ ____(_) /_/ / ____ _/ /_
/ / __/ / __/ / / __ `/ __ \
/ /_/ / / /_/ /___/ /_/ / /_/ /
\____/_/\__/_____/\__,_/_.___/
Upgrade complete! If your GitLab server is misbehaving try running
sudo gitlab-ctl restart
before anything else.
If you need to roll back to the previous version you can use the database
backup made during the upgrade (scroll up for the filename).
xclocal@gitlab-1:~$
What is the expected correct behavior?
an update with no issues...
Relevant logs
Relevant logs
(Paste any relevant logs.) (Live log output can be found with `sudo gitlab-ctl tail`.) (Log files live in `/var/log/gitlab` by default.)
Details of package version
Provide the package version installation details
10.0.2-ce.0
Environment details
- Operating System:
Ubuntu 16.04.4 LTS GNU/Linux 4.4.0-122-generic x86_64
- Installation Target, remove incorrect values:
- VM:
Hyper-V 2012r2
- VM:
- Installation Type, remove incorrect values:
- Upgrade from version
10.0.2-ce.0
- Upgrade from version
- Is there any other software running on the machine:
No
- Is this a single or multiple node installation?
Single
- Resources
- CPU:
4 vCPU
- Memory total:
4GB
- CPU:
Configuration details
Provide the relevant sections of `/etc/gitlab/gitlab.rb`
external_url 'https://gitlab.internal.com' nginx['listen_port'] = 80 nginx['listen_https'] = false nginx['proxy_set_headers'] = { "X-Forwarded-Proto" => "https", "X-Forwarded-Ssl" => "on" } gitlab_rails['ldap_enabled'] = true gitlab_rails['ldap_servers'] = YAML.load <<-'EOS' # remember to close this block with 'EOS' below main: # 'main' is the GitLab 'provider ID' of this LDAP server label: 'LDAP' host: '10.201.253.10' port: 389 uid: 'sAMAccountName' method: 'plain' # "tls" or "ssl" or "plain" bind_dn: 'CN=LDAP-Lookup,OU=service accounts,DC=internaldomain,DC=com' password: 'SuperSekritPassword' active_directory: true allow_username_or_email_login: true block_auto_created_users: false base: 'DC=internaldomain,DC=com' user_filter: '' attributes: username: ['uid', 'userid', 'sAMAccountName'] email: ['mail', 'email', 'userPrincipalName'] name: 'cn' first_name: 'givenName' last_name: 'sn' EOS nginx['custom_gitlab_server_config'] = "location ^~ /.well-known { root /var/www/letsencrypt; }"
Output of checks
(from working 10.0.2) `sudo gitlab-rake gitlab:env:info`
xclocal@gitlab-1:~$ sudo gitlab-rake gitlab:env:info [sudo] password for xclocal:System information System: Ubuntu 16.04 Current User: git Using RVM: no Ruby Version: 2.3.5p376 Gem Version: 2.6.13 Bundler Version:1.13.7 Rake Version: 12.0.0 Redis Version: 3.2.5 Git Version: 2.13.5 Sidekiq Version:5.0.4 Go Version: unknown
GitLab information Version: 10.0.2 Revision: 06a5a33 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql URL: https://gitlab.internaldomain.com HTTP Clone URL: https://gitlab.internaldomain.com/some-group/some-project.git SSH Clone URL: git@gitlab.internaldomain.com:some-group/some-project.git Using LDAP: yes Using Omniauth: no
GitLab Shell Version: 5.9.0 Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks Git: /opt/gitlab/embedded/bin/git
(from working 10.0.2) `sudo gitlab-rake gitlab:check SANITIZE=true`
xclocal@gitlab-1:~$ sudo gitlab-rake gitlab:check SANITIZE=true Checking GitLab Shell ...GitLab Shell version >= 5.9.0 ? ... OK (5.9.0) Repo base directory exists? default... yes Repo storage directories are symlinks? default... no Repo paths owned by git:root, or git:git? default... yes Repo paths access is drwxrws---? default... yes hooks directories in repos are links: ... 3/3 ... ok 3/4 ... ok 4/7 ... ok 5/8 ... ok 2/12 ... ok 2/13 ... repository is empty 5/14 ... repository is empty 5/17 ... ok 5/18 ... ok 6/19 ... ok 6/20 ... ok 2/22 ... ok Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Check GitLab API access: OK Redis available via internal API: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Reply by email is disabled in config/gitlab.yml Checking LDAP ...
Server: ldapmain LDAP authentication... Success LDAP users with access to your GitLab server (only showing the first 100 results) Checking LDAP ... Finished
Checking GitLab ...
Git configured correctly? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... skipped (no tmp uploads folder yet) Init script exists? ... skipped (omnibus-gitlab has no init script) Init script up-to-date? ... skipped (omnibus-gitlab has no init script) Projects have namespace: ... 3/3 ... yes 3/4 ... yes 4/7 ... yes 5/8 ... yes 2/12 ... yes 2/13 ... yes 5/14 ... yes 5/17 ... yes 5/18 ... yes 6/19 ... yes 6/20 ... yes 2/22 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.3.3 ? ... yes (2.3.5) Git version >= 2.7.3 ? ... yes (2.13.5) Git user has default SSH configuration? ... no Try fixing it: mkdir ~/gitlab-check-backup-1525428387 sudo mv /var/opt/gitlab/.ssh/authorized_keys.lock ~/gitlab-check-backup-1525428387 For more information see: doc/ssh/README.md in section "SSH on the GitLab server" Please fix the error above and rerun the checks. Active users: ... 2
Checking GitLab ... Finished
xclocal@gitlab-1:~$