Skip to content

Commit 2b3e3ef

Browse files
authored
Merge pull request #237 from intelops/migrationbugfix
added sql statements for all tables
2 parents d4a4d31 + 8ae014a commit 2b3e3ef

File tree

42 files changed

+253
-292
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+253
-292
lines changed

sql/20230912051648_clickhouse.down.sql

Lines changed: 0 additions & 20 deletions
This file was deleted.

sql/20230912051648_clickhouse.up.sql

Lines changed: 0 additions & 272 deletions
This file was deleted.

sql/20230915101223_events.down.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DROP TABLE IF EXISTS events;

sql/20230915101223_events.up.sql

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
CREATE TABLE IF NOT EXISTS events (
2+
ClusterName String,
3+
Id String,
4+
EventTime DateTime('UTC'),
5+
OpType String,
6+
Name String,
7+
Namespace String,
8+
Kind String,
9+
Message String,
10+
Reason String,
11+
Host String,
12+
Event String,
13+
FirstTime String,
14+
LastTime String
15+
) engine=File(TabSeparated);
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DROP TABLE IF EXISTS rakkess;

sql/20230915101317_rakkess.up.sql

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CREATE TABLE IF NOT EXISTS rakkess (
2+
ClusterName String,
3+
Name String,
4+
Create String,
5+
Delete String,
6+
List String,
7+
Update String,
8+
EventTime DateTime('UTC')
9+
) engine=File(TabSeparated);
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DROP TABLE IF EXISTS DeprecatedAPIs;
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CREATE TABLE IF NOT EXISTS DeprecatedAPIs (
2+
ClusterName String,
3+
ObjectName String,
4+
Description String,
5+
Kind String,
6+
Deprecated UInt8,
7+
Scope String,
8+
EventTime DateTime('UTC')
9+
) engine=File(TabSeparated);
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DROP TABLE IF EXISTS DeletedAPIs;
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
CREATE TABLE IF NOT EXISTS DeletedAPIs (
2+
ClusterName String,
3+
ObjectName String,
4+
Group String,
5+
Kind String,
6+
Version String,
7+
Name String,
8+
Deleted UInt8,
9+
Scope String,
10+
EventTime DateTime('UTC')
11+
) engine=File(TabSeparated);

0 commit comments

Comments
 (0)