twenty-server 0.5.6 → 0.5.8
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: e3de5088ddccb20ecdabf3fb225c997773206e5d795e68a7bf57f2f787faba14
|
4
|
+
data.tar.gz: 574ff4a56adcd608bb950c4e572b63737dc8823c1f1055909a6ac02aee4d5c85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76d9d40d0184140c79d643b20dc0d17c55929c298e17622896ba18f0bcbcbd804c277d7018019025720d68877b0abe7f84ccea7f09d1ae8df93879775a6d2768
|
7
|
+
data.tar.gz: a271cf45789f44a934fc1e3e2e932d153b78a6667ce6f73ca0e949b78a0a5c2214061e92f327c7f32fe60bf7fd23ce14a4d5dbdbab64336212f23e70df1c6f9e
|
@@ -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
|
data/lib/twenty/server/rack.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twenty-server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- '0x1eef'
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04
|
11
|
+
date: 2024-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sequel
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 0.2.2
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 0.2.2
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: test-unit
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -134,7 +134,8 @@ files:
|
|
134
134
|
homepage: https://github.com/0x1eef/twenty#readme
|
135
135
|
licenses:
|
136
136
|
- 0BSD
|
137
|
-
metadata:
|
137
|
+
metadata:
|
138
|
+
source_code_uri: https://github.com/0x1eef/twenty#readme
|
138
139
|
post_install_message:
|
139
140
|
rdoc_options: []
|
140
141
|
require_paths:
|