-
Notifications
You must be signed in to change notification settings - Fork 28
/
changelog.xml
102 lines (94 loc) · 3.83 KB
/
changelog.xml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.4.xsd">
<changeSet author="admin" id="1539122071">
<sql>
CREATE TABLE ArtifactGroup (
name varchar(255) NOT NULL,
commonName varchar(255) DEFAULT NULL,
description varchar(255) DEFAULT NULL,
PRIMARY KEY (name)
);
CREATE TABLE ArtifactProduct (
name varchar(255) NOT NULL,
commonName varchar(255) DEFAULT NULL,
description varchar(255) DEFAULT NULL,
group_name varchar(255) DEFAULT NULL,
PRIMARY KEY (name),
FOREIGN KEY (group_name) REFERENCES ArtifactGroup(name)
);
CREATE TABLE ArtifactVersion (
name varchar(255) NOT NULL,
createdAt timestamp DEFAULT NULL,
artifact_name varchar(255) DEFAULT NULL,
PRIMARY KEY (name),
FOREIGN KEY (artifact_name) REFERENCES ArtifactProduct(name)
);
CREATE TABLE AsyncQuery (
id varchar(36) not null,
createdOn timestamp,
principalName varchar(255),
query varchar(255),
queryType integer,
requestId varchar(36),
status varchar(255),
updatedOn timestamp,
contentLength integer,
responseBody text,
completedOn timestamp,
httpStatus integer,
recordCount integer,
primary key (id)
);
CREATE TABLE TableExport (
id varchar(36) not null,
createdOn timestamp,
principalName varchar(255),
query varchar(255),
queryType integer,
requestId varchar(36),
resultType varchar(255),
status varchar(255),
updatedOn timestamp,
contentLength integer,
responseBody text,
completedOn timestamp,
httpStatus integer,
recordCount integer,
message text,
url varchar(255),
primary key (id)
);
CREATE TABLE Downloads (
group_id varchar(255) NOT NULL,
product_id varchar(255) NOT NULL,
date timestamp NOT NULL,
downloads integer NOT NULL,
FOREIGN KEY (group_id) REFERENCES ArtifactGroup(name),
FOREIGN KEY (product_id) REFERENCES ArtifactProduct(name)
);
</sql>
</changeSet>
<changeSet author="admin" id="1539122270">
<sql>
INSERT INTO ArtifactGroup (name, commonName, description) VALUES
('com.example.repository','Example Repository','The code for this project'),
('com.yahoo.elide','Elide','The magical library powering this project');
INSERT INTO ArtifactProduct (name, commonName, description, group_name) VALUES
('elide-core','Core','The guts of Elide','com.yahoo.elide'),
('elide-datastore-hibernate5','Hibernate5 Datastore','A datastore that uses Hibernate 5 to communicate with the database','com.yahoo.elide'),
('elide-standalone','Standalone','A pre-configured, standalone Elide webservice','com.yahoo.elide');
INSERT INTO ArtifactVersion (name, artifact_name) VALUES
('1.0.0','elide-standalone'),
('2.0.0','elide-core'),
('3.0.0','elide-core'),
('4.0.0','elide-core'),
('5.0.0','elide-core'),
('6.0.0','elide-core'),
('7.0.0','elide-core');
INSERT INTO Downloads (group_id, product_id, date, downloads) VALUES
('com.example.repository','elide-core','2020-01-01', 10),
('com.example.repository','elide-core','2020-01-02', 11),
('com.example.repository','elide-core','2020-01-03', 14);
</sql>
</changeSet>
</databaseChangeLog>