twenty-server 0.5.6 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 518f28481141e12a84703a0fa0a750b5e92d2247bea0754dea1d076d11497a98
|
4
|
+
data.tar.gz: 1ddad859f371b9fa4834d63c76094fda9df2c82cd79b7178ec1fd77727da9fbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e6742c540ef553ed74e94d702f0fbbd96fc9bdbbbaea46ceb1a2a6479dbb5f437bdee068d714f69135794f3f6e010cbd7ac8c0f9ed738ccddd939595afda6bc
|
7
|
+
data.tar.gz: ec68753808ae22aa70eddb189a40567eb03b3379dc98cc19e02a635f3bf22a9543ed53a0b8b6cab3de828254b41a2dab8e44773461c799b571ae3a178f9b9bb4
|
@@ -1,7 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
Sequel.migration do
|
4
|
+
column_exists = ->(table, column) do
|
5
|
+
schema = Twenty.connection.schema(table)
|
6
|
+
schema.find { |(key,_)| key == column }
|
7
|
+
end
|
8
|
+
|
4
9
|
up do
|
10
|
+
next if column_exists.call(:projects, :color)
|
5
11
|
default = Twenty::Mixin::Colorable.random_color
|
6
12
|
add_column :projects, :color, :string, null: false, default:
|
7
13
|
end
|