Merge branch 'standalone_develop' into pm_project_develop

This commit is contained in:
2024-03-06 08:56:37 +08:00
93 changed files with 1914 additions and 383 deletions

View 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

View File

@@ -0,0 +1,5 @@
class AddIndexUuidToAttachments < ActiveRecord::Migration[5.2]
def change
add_index :attachments, :uuid
end
end

View File

@@ -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

View File

@@ -0,0 +1,5 @@
class AddClosedIssuesToDailyProjectStatistics < ActiveRecord::Migration[5.2]
def change
add_column :daily_project_statistics, :closed_issues, :integer, default: 0
end
end