Merge branch 'standalone_develop' into pm_project_develop

This commit is contained in:
2024-05-13 09:24:27 +08:00
84 changed files with 2306 additions and 17 deletions

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View File

@@ -0,0 +1,5 @@
class AddEnableToSyncRepositoryBranch < ActiveRecord::Migration[5.2]
def change
add_column :sync_repository_branches, :enable, :boolean, default: true
end
end

View File

@@ -0,0 +1,5 @@
class AddExternalTokenToSyncRepository < ActiveRecord::Migration[5.2]
def change
add_column :sync_repositories, :external_token, :string
end
end

View File

@@ -0,0 +1,5 @@
class AddWebhookGidToSyncRepository < ActiveRecord::Migration[5.2]
def change
add_column :sync_repositories, :webhook_gid, :integer
end
end