mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
Merge branch 'standalone_develop' into pm_project_develop
This commit is contained in:
10
db/migrate/20240408010101_create_action_node_types.rb
Normal file
10
db/migrate/20240408010101_create_action_node_types.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class CreateActionNodeTypes < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :action_node_types do |t|
|
||||
t.string :name
|
||||
t.string :description
|
||||
t.integer :sort_no, default: 0
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
18
db/migrate/20240408010102_create_action_nodes.rb
Normal file
18
db/migrate/20240408010102_create_action_nodes.rb
Normal file
@@ -0,0 +1,18 @@
|
||||
class CreateActionNodes < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :action_nodes do |t|
|
||||
t.string :name
|
||||
t.string :full_name
|
||||
t.string :description
|
||||
t.string :icon
|
||||
t.references :action_node_types
|
||||
t.boolean :is_local, default: false
|
||||
t.string :local_url
|
||||
t.text :yaml
|
||||
t.integer :sort_no, default: 0
|
||||
t.integer :use_count, default: 0
|
||||
t.references :user
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
17
db/migrate/20240408010213_create_action_node_selects.rb
Normal file
17
db/migrate/20240408010213_create_action_node_selects.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
class CreateActionNodeSelects < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :action_node_selects do |t|
|
||||
t.references :action_nodes
|
||||
t.string :name
|
||||
t.string :val
|
||||
t.string :val_ext
|
||||
t.string :description
|
||||
t.string :download_url
|
||||
t.integer :sort_no, default: 0
|
||||
t.integer :use_count, default: 0
|
||||
t.references :user
|
||||
t.timestamps
|
||||
t.index :name, length: 191
|
||||
end
|
||||
end
|
||||
end
|
||||
14
db/migrate/20240408010227_create_action_node_inputs.rb
Normal file
14
db/migrate/20240408010227_create_action_node_inputs.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
class CreateActionNodeInputs < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :action_node_inputs do |t|
|
||||
t.references :action_nodes
|
||||
t.string :name
|
||||
t.string :input_type
|
||||
t.string :description
|
||||
t.boolean :is_required, default: false
|
||||
t.string :sort_no, default: 0
|
||||
t.references :user
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
13
db/migrate/20240408010233_create_action_templates.rb
Normal file
13
db/migrate/20240408010233_create_action_templates.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
class CreateActionTemplates < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :action_templates do |t|
|
||||
t.string :name
|
||||
t.string :description
|
||||
t.string :img
|
||||
t.string :sort_no, default: 0
|
||||
t.text :json
|
||||
t.text :yaml
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
14
db/migrate/20240415014011_create_sync_repositories.rb
Normal file
14
db/migrate/20240415014011_create_sync_repositories.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
class CreateSyncRepositories < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :sync_repositories do |t|
|
||||
t.references :project
|
||||
t.string :type
|
||||
t.string :repo_name
|
||||
t.string :external_repo_address
|
||||
t.integer :sync_granularity
|
||||
t.integer :sync_direction, comment: "1表示从gitlink到外部2表示从外部到gitlink"
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
14
db/migrate/20240415015216_create_sync_repository_branches.rb
Normal file
14
db/migrate/20240415015216_create_sync_repository_branches.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
class CreateSyncRepositoryBranches < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :sync_repository_branches do |t|
|
||||
t.references :sync_repository
|
||||
t.string :gitlink_branch_name, comment: 'gitlink分支'
|
||||
t.string :external_branch_name, comment: '外部仓库分支'
|
||||
t.datetime :sync_time
|
||||
t.integer :sync_status, default: 0
|
||||
t.integer :reposync_branch_id
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class AddEnableToSyncRepositoryBranch < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :sync_repository_branches, :enable, :boolean, default: true
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class AddExternalTokenToSyncRepository < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :sync_repositories, :external_token, :string
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class AddWebhookGidToSyncRepository < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :sync_repositories, :webhook_gid, :integer
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user