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: dea1ad302d6a0d97724553541aa9fc2b01f8a4a48faa9e30983f51827b9407ba
4
- data.tar.gz: 8bec34fcf0498dcc2fedaa95dd6d857d400cc6728dd5d891edfc68155ce0a094
3
+ metadata.gz: 518f28481141e12a84703a0fa0a750b5e92d2247bea0754dea1d076d11497a98
4
+ data.tar.gz: 1ddad859f371b9fa4834d63c76094fda9df2c82cd79b7178ec1fd77727da9fbe
5
5
  SHA512:
6
- metadata.gz: 20de5cea99568ce83847aaf13ee125298d58fa76640c4986298da9eb794f86feaf07fc71aef5d1cc51406c49ceb357d159ef124c5261cebf3f897eef7130287c
7
- data.tar.gz: 8d621a10caa0e5074a570b80574f2efb8bc4337126e0915a6dbd24c2e0f16b30a2dfdf1af01ae7c8c962b9e9a8a516f754d53bc06cd9a86c9d66b2bd77005960
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.6
4
+ version: 0.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - '0x1eef'