Skip to content

Add has_shimo to project_settings table

Reference MR: !35485 (merged)

Blocked MR: !74140 (merged)

What does this MR do?

This change adds a new boolean column to project_settings to allow caching the status of the new Shimo integration as has_shimo.

The new has_shimo property is unable to be added to projects, like the other has_{x} columns, as we are not allowed to migrate new columns to projects due to its width.

Migrations

migrate

== 20211110100050 AddHasShimoToProjectSettings: migrating =====================
-- add_column(:project_settings, :has_shimo, :boolean, {:default=>false, :null=>false})
   -> 0.0124s
== 20211110100050 AddHasShimoToProjectSettings: migrated (0.0125s) ============

rollback

== 20211110100050 AddHasShimoToProjectSettings: reverting =====================
-- remove_column(:project_settings, :has_shimo, :boolean, {:default=>false, :null=>false})
   -> 0.0063s
== 20211110100050 AddHasShimoToProjectSettings: reverted (0.0115s) ============
bundle exec rails db:migrate:down VERSION=20211110100050
Edited by Baodong

Merge request reports

Loading