-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from xuzhu-591/main
bump appVersion to v2.6.0
- Loading branch information
Showing
3 changed files
with
109 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -607,6 +607,57 @@ create index idx_event_id | |
create index idx_webhook_id_status | ||
on tb_webhook_log (webhook_id, status); | ||
|
||
CREATE TABLE if not exists `tb_check` | ||
( | ||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, | ||
`resource_type` varchar(64) NOT NULL DEFAULT '' COMMENT 'resource type', | ||
`resource_id` bigint(20) unsigned NOT NULL COMMENT 'resource id', | ||
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
`updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | ||
`deleted_ts` bigint(20) DEFAULT '0' COMMENT 'deleted timestamp, 0 means not deleted', | ||
`created_by` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT 'creator', | ||
`updated_by` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT 'updater', | ||
PRIMARY KEY (`id`), | ||
UNIQUE KEY `uk_resource_deleted` (`resource_type`, `resource_id`, `deleted_ts`) | ||
) ENGINE = InnoDB | ||
AUTO_INCREMENT = 1 | ||
DEFAULT CHARSET = utf8mb4; | ||
|
||
CREATE TABLE if not exists `tb_checkrun` | ||
( | ||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, | ||
`name` varchar(256) NOT NULL DEFAULT '' COMMENT 'the name of check run', | ||
`status` varchar(64) NOT NULL DEFAULT '' COMMENT 'the status of check run', | ||
`pipeline_run_id` bigint(20) unsigned NOT NULL COMMENT 'pipeline run id', | ||
`check_id` bigint(20) unsigned NOT NULL COMMENT 'check id', | ||
`message` varchar(256) NOT NULL DEFAULT '', | ||
`detail_url` varchar(256) NOT NULL DEFAULT '' COMMENT 'the detail url of check run', | ||
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
`updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | ||
`deleted_ts` bigint(20) DEFAULT '0' COMMENT 'deleted timestamp, 0 means not deleted', | ||
`created_by` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT 'creator', | ||
`updated_by` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT 'updater', | ||
PRIMARY KEY (`id`), | ||
UNIQUE KEY `uk_pipeline_run_id_check_id_deleted` (`pipeline_run_id`, `check_id`, `deleted_ts`) | ||
) ENGINE = InnoDB | ||
AUTO_INCREMENT = 1 | ||
DEFAULT CHARSET = utf8mb4; | ||
|
||
CREATE TABLE if not exists `tb_pr_msg` | ||
( | ||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, | ||
`pipeline_run_id` bigint(20) unsigned NOT NULL COMMENT 'pipeline run id', | ||
`content` text NOT NULL COMMENT 'content of message', | ||
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
`updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | ||
`created_by` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT 'creator', | ||
`updated_by` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT 'updater', | ||
`deleted_ts` bigint(20) DEFAULT '0' COMMENT 'deleted timestamp, 0 means not deleted', | ||
PRIMARY KEY (`id`) | ||
) ENGINE = InnoDB | ||
AUTO_INCREMENT = 1 | ||
DEFAULT CHARSET = utf8mb4; | ||
|
||
-- init data | ||
insert into tb_user (name, full_name, email, oidc_id, oidc_type, admin, banned, password) | ||
values ('admin', 'admin', '[email protected]', 0, 0, 1, 0, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters