-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy pathBuildReport.sql
More file actions
60 lines (56 loc) · 1.6 KB
/
Copy pathBuildReport.sql
File metadata and controls
60 lines (56 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
CREATE TABLE IF NOT EXISTS build_reports(
id INTEGER,
build_type TEXT,
build_result TEXT,
platform_name TEXT,
subtarget INTEGER,
start_time TEXT,
end_time TEXT,
total_time_seconds INTEGER,
total_size INTEGER,
build_guid TEXT,
total_errors INTEGER,
total_warnings INTEGER,
options INTEGER,
asset_bundle_options INTEGER,
output_path TEXT,
crc INTEGER,
-- Fields added in Unity 6.6; left NULL when analyzing reports from older versions.
build_name TEXT,
build_content_options INTEGER,
build_session_guid TEXT,
build_manifest_hash TEXT,
build_profile_path TEXT,
build_profile_guid TEXT,
data_path TEXT,
PRIMARY KEY (id)
);
CREATE TABLE IF NOT EXISTS build_report_files(
build_report_id INTEGER NOT NULL,
file_index INTEGER NOT NULL,
path TEXT NOT NULL,
role TEXT NOT NULL,
size INTEGER NOT NULL,
PRIMARY KEY (build_report_id, file_index),
FOREIGN KEY (build_report_id) REFERENCES build_reports(id)
);
CREATE TABLE IF NOT EXISTS build_report_archive_contents(
build_report_id INTEGER NOT NULL,
archive TEXT NOT NULL,
archive_content TEXT NOT NULL,
PRIMARY KEY (build_report_id, archive_content),
FOREIGN KEY (build_report_id) REFERENCES build_reports(id)
);
CREATE VIEW build_report_files_view AS
SELECT
o.serialized_file,
br.id AS build_report_id,
br.build_type,
br.platform_name,
brf.file_index,
brf.path,
brf.role,
brf.size
FROM build_report_files brf
INNER JOIN build_reports br ON brf.build_report_id = br.id
INNER JOIN object_view o ON br.id = o.id;