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:
19
db/migrate/20231219020521_create_daily_project_statistics.rb
Normal file
19
db/migrate/20231219020521_create_daily_project_statistics.rb
Normal file
@@ -0,0 +1,19 @@
|
||||
class CreateDailyProjectStatistics < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :daily_project_statistics do |t|
|
||||
t.references :project
|
||||
t.date :date
|
||||
t.index :date
|
||||
t.integer :score, default: 0
|
||||
t.integer :visits, default: 0
|
||||
t.integer :watchers, default: 0
|
||||
t.integer :praises, default: 0
|
||||
t.integer :forks, default: 0
|
||||
t.integer :issues, default: 0
|
||||
t.integer :pullrequests, default: 0
|
||||
t.integer :commits, default: 0
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class AddIndexUuidToAttachments < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_index :attachments, :uuid
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,18 @@
|
||||
class CreateDailyPlatformStatistics < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :daily_platform_statistics do |t|
|
||||
t.date :date
|
||||
t.index :date, unique: true
|
||||
t.bigint :pv, default: 0
|
||||
t.bigint :visitor, default: 0
|
||||
t.bigint :ip, default: 0
|
||||
t.float :weekly_keep_rate, default: 0
|
||||
t.float :source_through, default: 0
|
||||
t.float :source_link, default: 0
|
||||
t.float :source_search, default: 0
|
||||
t.float :source_custom, default: 0
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class AddClosedIssuesToDailyProjectStatistics < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :daily_project_statistics, :closed_issues, :integer, default: 0
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user