twenty-server 0.5.5 → 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: '09a7504d2ef036f0463b573bd999ec4df8fa5e32a48bd40e7e91e947e5f1a25d'
4
- data.tar.gz: 6a0e602227119bf35e1857525994e0b019061bc234a0913fc6c9a58dabfbf1da
3
+ metadata.gz: 518f28481141e12a84703a0fa0a750b5e92d2247bea0754dea1d076d11497a98
4
+ data.tar.gz: 1ddad859f371b9fa4834d63c76094fda9df2c82cd79b7178ec1fd77727da9fbe
5
5
  SHA512:
6
- metadata.gz: 06e09450ff1212091122d480fcb77c3f6d2c319eed0b998986d541f1c5df730cd67b7a98b861336c6dc195e6e46c1d1f452ec09dc39813a177ab80834831b84b
7
- data.tar.gz: a3adb49e1dd8132ceebfb0d78638d175a0d0a72fab31d12de7445633328e0a8921b68265d7a8c6bffbb3bc3e51d829db7b062a38ae1c4b17a68e585a3610f0b5
6
+ metadata.gz: 8e6742c540ef553ed74e94d702f0fbbd96fc9bdbbbaea46ceb1a2a6479dbb5f437bdee068d714f69135794f3f6e010cbd7ac8c0f9ed738ccddd939595afda6bc
7
+ data.tar.gz: ec68753808ae22aa70eddb189a40567eb03b3379dc98cc19e02a635f3bf22a9543ed53a0b8b6cab3de828254b41a2dab8e44773461c799b571ae3a178f9b9bb4
@@ -2,6 +2,7 @@
2
2
 
3
3
  Sequel.migration do
4
4
  up do
5
+ next if table_exists?(:projects)
5
6
  create_table(:projects) do
6
7
  primary_key :id
7
8
  String :name, null: false
@@ -2,6 +2,7 @@
2
2
 
3
3
  Sequel.migration do
4
4
  up do
5
+ next if table_exists?(:tasks)
5
6
  create_table(:tasks) do |t|
6
7
  primary_key :id
7
8
  String :title, null: false
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twenty-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - '0x1eef'