Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Add project activity seed data
天舟877a78c869aa
diff --git a/store/seed/test/10140__activity.sql b/store/seed/test/10140__activity.sqlindex b32044086f..a6a643c312 100644--- a/store/seed/test/10140__activity.sql+++ b/store/seed/test/10140__activity.sql@@ -973,4 +973,232 @@ VALUES'ERROR','table "tbl2" already exists','{"taskId":11015,"oldStatus":"RUNNING","newStatus":"FAILED","issueName":"Create a new table ''tbl2'' using multi-stage SQL review workflow","taskName":"Update testdb_staging"}'+ );++-- Project activity for 3001+INSERT INTO+ activity (+ creator_id,+ created_ts,+ updater_id,+ updated_ts,+ container_id,+ `type`,+ `level`,+ COMMENT,+ payload+ )+VALUES+ (+ 102,+ 1624879944,+ 102,+ 1624879944,+ 3001,+ 'bb.project.member.role.update',+ 'INFO',+ 'Changed Demo Owner ([email protected]) from OWNER to DEVELOPER.',+ ''+ );++-- Project activity for 3002+INSERT INTO+ activity (+ creator_id,+ created_ts,+ updater_id,+ updated_ts,+ container_id,+ `type`,+ `level`,+ COMMENT,+ payload+ )+VALUES+ (+ 101,+ 1624879944,+ 101,+ 1624879944,+ 3002,+ 'bb.project.member.create',+ 'INFO',+ 'Granted Jerry DBA to [email protected] (DEVELOPER).',+ ''+ );++INSERT INTO+ activity (+ creator_id,+ created_ts,+ updater_id,+ updated_ts,+ container_id,+ `type`,+ `level`,+ COMMENT,+ payload+ )+VALUES+ (+ 1,+ 1624879944,+ 1,+ 1624879944,+ 3002,+ 'bb.project.repository.push',+ 'INFO',+ 'Created issue "Create product table using multi-stage VCS workflow".',+ '{"pushEvent":{"vcsType":"GITLAB_SELF_HOST","baseDir":"bytebase","ref":"refs/heads/master","repoId":"14","repoUrl":"http://gitlab.bytebase.com/bytebase-demo/shop","repoFullPath":"bytebase-demo/shop","authorName":"tianzhou","fileCommit":{"id":"c80352facbaefcde0c1c82340381be3286e5438d","title":"Create product table","message":"Create product table","createdTs": 1630940811,"url":"https://gitlab.bytebase.com/bytebase-demo/shop/-/commit/c80352facbaefcde0c1c82340381be3286e5438d","authorName":"tianzhou","added":"bytebase/shop__v1__baseline__add_initial_schema.sql"}},"issueId":13002,"issueName":"Create product table using multi-stage VCS workflow"}'+ );++-- Project activity for 3003+INSERT INTO+ activity (+ creator_id,+ created_ts,+ updater_id,+ updated_ts,+ container_id,+ `type`,+ `level`,+ COMMENT,+ payload+ )+VALUES+ (+ 101,+ 1624879944,+ 101,+ 1624879944,+ 3003,+ 'bb.project.member.create',+ 'INFO',+ 'Granted Tom Dev to [email protected] (DEVELOPER).',+ ''+ );++INSERT INTO+ activity (+ creator_id,+ created_ts,+ updater_id,+ updated_ts,+ container_id,+ `type`,+ `level`,+ COMMENT,+ payload+ )+VALUES+ (+ 1,+ 1624879944,+ 1,+ 1624879944,+ 3003,+ 'bb.project.repository.push',+ 'INFO',+ 'Created issue "Add created_at column to user,post,comment table for dev environment".',+ '{"pushEvent":{"vcsType":"GITLAB_SELF_HOST","baseDir":"bytebase","ref":"refs/heads/master","repoId":"13","repoUrl":"http://gitlab.bytebase.com/bytebase-demo/blog","repoFullPath":"bytebase-demo/blog","authorName":"tianzhou","fileCommit":{"id":"8ff6482998059a861e1faa14658c65244577b54e","title":"Add created_at column to user,post,comment table for dev environment","message":"Add created_at column to user,post,comment table for dev environment","createdTs":1630943211,"url":"https://gitlab.bytebase.com/bytebase-demo/blog/-/commit/8ff6482998059a861e1faa14658c65244577b54e","authorName":"tianzhou","added":"bytebase/dev/blog__202106280100__migrate__add_created_at_column.sql"}},"issueId":13008,"issueName":"Add created_at column to user,post,comment table for dev environment"}'+ );++INSERT INTO+ activity (+ creator_id,+ created_ts,+ updater_id,+ updated_ts,+ container_id,+ `type`,+ `level`,+ COMMENT,+ payload+ )+VALUES+ (+ 1,+ 1624879944,+ 1,+ 1624879944,+ 3003,+ 'bb.project.repository.push',+ 'INFO',+ 'Created issue "Create user, post, comment table for dev environment".',+ '{"pushEvent":{"vcsType":"GITLAB_SELF_HOST","baseDir":"bytebase","ref":"refs/heads/master","repoId":"13","repoUrl":"http://gitlab.bytebase.com/bytebase-demo/blog","repoFullPath":"bytebase-demo/blog","authorName":"tianzhou","fileCommit":{"id":"8f578d53e821c46421d69fd0aabd29921190a6c0","title":"Create user, post, comment table for dev environment","message":"Create user, post, comment table for dev environment","createdTs": 1630941711,"url":"https://gitlab.bytebase.com/bytebase-demo/blog/-/commit/8f578d53e821c46421d69fd0aabd29921190a6c0","authorName":"tianzhou","added":"bytebase/dev/blog__202106280000__baseline__add_initial_schema.sql"}},"issueId":13004,"issueName":"Create user, post, comment table for dev environment"}'+ );++INSERT INTO+ activity (+ creator_id,+ created_ts,+ updater_id,+ updated_ts,+ container_id,+ `type`,+ `level`,+ COMMENT,+ payload+ )+VALUES+ (+ 1,+ 1624879944,+ 1,+ 1624879944,+ 3003,+ 'bb.project.repository.push',+ 'INFO',+ 'Created issue "Create user, post, comment table for integration environment".',+ '{"pushEvent":{"vcsType":"GITLAB_SELF_HOST","baseDir":"bytebase","ref":"refs/heads/master","repoId":"13","repoUrl":"http://gitlab.bytebase.com/bytebase-demo/blog","repoFullPath":"bytebase-demo/blog","authorName":"tianzhou","fileCommit":{"id":"0765950c28c50dd07217aa0a133e8239e64f0ea1","title":"Create user, post, comment table for integration environment","message":"Create user, post, comment table for integration environment","createdTs": 1630941711,"url":"https://gitlab.bytebase.com/bytebase-demo/blog/-/commit/0765950c28c50dd07217aa0a133e8239e64f0ea1","authorName":"tianzhou","added":"bytebase/integration/blog__202106280000__baseline__add_initial_schema.sql"}},"issueId":13005,"issueName":"Create user, post, comment table for integration environment"}'+ );++INSERT INTO+ activity (+ creator_id,+ created_ts,+ updater_id,+ updated_ts,+ container_id,+ `type`,+ `level`,+ COMMENT,+ payload+ )+VALUES+ (+ 1,+ 1624879944,+ 1,+ 1624879944,+ 3003,+ 'bb.project.repository.push',+ 'INFO',+ 'Created issue "Create user, post, comment table for staging environment".',+ '{"pushEvent":{"vcsType":"GITLAB_SELF_HOST","baseDir":"bytebase","ref":"refs/heads/master","repoId":"13","repoUrl":"http://gitlab.bytebase.com/bytebase-demo/blog","repoFullPath":"bytebase-demo/blog","authorName":"tianzhou","fileCommit":{"id":"149f18b8d94805be4b92e256ef1dc9f4a27d5157","title":"Create user, post, comment table for staging environment","message":"Create user, post, comment table for staging environment","createdTs": 1630941711,"url":"https://gitlab.bytebase.com/bytebase-demo/blog/-/commit/149f18b8d94805be4b92e256ef1dc9f4a27d5157","authorName":"tianzhou","added":"bytebase/staging/blog__202106280000__baseline__add_initial_schema.sql"}},"issueId":13006,"issueName":"Create user, post, comment table for staging environment"}'+ );++INSERT INTO+ activity (+ creator_id,+ created_ts,+ updater_id,+ updated_ts,+ container_id,+ `type`,+ `level`,+ COMMENT,+ payload+ )+VALUES+ (+ 1,+ 1624879944,+ 1,+ 1624879944,+ 3003,+ 'bb.project.repository.push',+ 'INFO',+ 'Created issue "Create user, post, comment table for prod environment".',+ '{"pushEvent":{"vcsType":"GITLAB_SELF_HOST","baseDir":"bytebase","ref":"refs/heads/master","repoId":"13","repoUrl":"http://gitlab.bytebase.com/bytebase-demo/blog","repoFullPath":"bytebase-demo/blog","authorName":"tianzhou","fileCommit":{"id":"ec17d38d6581015feb49b341cc3da56cb0e354fb","title":"Create user, post, comment table for prod environment","message":"Create user, post, comment table for prod environment","createdTs": 1630941711,"url":"https://gitlab.bytebase.com/bytebase-demo/blog/-/commit/ec17d38d6581015feb49b341cc3da56cb0e354fb","authorName":"tianzhou","added":"bytebase/prod/blog__202106280000__baseline__add_initial_schema.sql"}},"issueId":13006,"issueName":"Create user, post, comment table for prod environment"}');\ No newline at end of file