mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-21 20:25:45 +08:00
reposyncer同步仓库接口
This commit is contained in:
15
db/migrate/20220721034359_create_ob_repository_syncs.rb
Normal file
15
db/migrate/20220721034359_create_ob_repository_syncs.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
class CreateObRepositorySyncs < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :ob_repository_syncs do |t|
|
||||
t.references :project
|
||||
t.references :user
|
||||
t.string :name
|
||||
t.string :github_address
|
||||
t.string :gitee_address
|
||||
t.string :github_token
|
||||
t.string :gitee_token
|
||||
t.integer :sync_id
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
14
db/migrate/20220721034618_create_ob_repository_sync_jobs.rb
Normal file
14
db/migrate/20220721034618_create_ob_repository_sync_jobs.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
class CreateObRepositorySyncJobs < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :ob_repository_sync_jobs do |t|
|
||||
t.references :ob_repository_sync
|
||||
t.string :github_branch
|
||||
t.string :gitee_branch
|
||||
t.string :gitlink_branch
|
||||
t.string :job_type
|
||||
t.string :base
|
||||
t.integer :job_id
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user