Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: use cannot (#2963)
Danny Xu4e4482719249
diff --git a/docs/design/sql-review-source-code-tour.snb.md b/docs/design/sql-review-source-code-tour.snb.mdindex 0e7ef5fe9b..dd8524416f 100644--- a/docs/design/sql-review-source-code-tour.snb.md+++ b/docs/design/sql-review-source-code-tour.snb.md@@ -71,7 +71,7 @@ https://sourcegraph.com/github.com/bytebase/bytebase@72e8995/-/blob/plugin/advis## The Catalog-The catalog is the schema information for a database. For some rules, we need some information from the catalog. e.g. if we have a SQL `ALTER TABLE t RENAME INDEX uk to uk_name;` and want to check the columns in this index, we can not get this information from this SQL statement. So we need a catalog to retrieve the column info.+The catalog is the schema information for a database. For some rules, we need some information from the catalog. e.g. if we have a SQL `ALTER TABLE t RENAME INDEX uk to uk_name;` and want to check the columns in this index, we cannot get this information from this SQL statement. So we need a catalog to retrieve the column info.## How to Implement a SQL Advisordiff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex 5af04819ca..09298e37e3 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -270,7 +270,7 @@"warn": "Warning","error": "Error"},- "earliest-allowed-time-no-modify": "You can not modify this field because you are not the issue assignee or it's not pending to run.",+ "earliest-allowed-time-no-modify": "You cannot modify this field because you are not the issue assignee or it's not pending to run.","type": {"bb-task-database-schema-update-ghost-sync": "Sync data","bb-task-database-schema-update-ghost-cutover": "Switch tables",@@ -367,9 +367,9 @@"tooltip": {"upgrade": "Upgrade to enable role management","not-allow-edit": "Only Owner can change the role",- "not-allow-remove": "Can not remove the last Owner",+ "not-allow-remove": "Cannot remove the last Owner","project-role-provider-gitlab": "Mapped from the {rawRole} role in the corresponding GitLab project.",- "cannot-change-role-of-systembot": "Can not change the role of system bot"+ "cannot-change-role-of-systembot": "Cannot change the role of system bot"},"toggle-role-provider": {"title": "Are you sure?"@@ -1268,7 +1268,7 @@"notify-multiple-statements": "Multiple SQL statements detected. SQL Editor only executes the first statement. You can select another statement and execute it individually.","goto-alter-schema-hint": "Please select a database connection from the top of the editor","notify-invalid-sql-statement": "Invalid SQL statement.",- "can-not-execute-query": "Can not execute query when loading data.",+ "can-not-execute-query": "Cannot execute query when loading data.","rows": "row | rows","no-history-found": "No history found","no-sheet-found": "No sheet found",diff --git a/frontend/src/plugins/sql-lsp/server/complete/index.ts b/frontend/src/plugins/sql-lsp/server/complete/index.tsindex a35eb36e01..a398accb84 100644--- a/frontend/src/plugins/sql-lsp/server/complete/index.ts+++ b/frontend/src/plugins/sql-lsp/server/complete/index.ts@@ -80,7 +80,7 @@ export const complete = (provideColumnAutoCompletion(`public.${maybeTableName}`);}// "{schema_name}." (postgresql) - will implement next time- // - alias (can not recognize yet)+ // - alias (cannot recognize yet)}if (tokenListBeforeDot.length === 2) {diff --git a/frontend/src/store/modules/sheet.ts b/frontend/src/store/modules/sheet.tsindex 9fd0f10aa5..04b439aca8 100644--- a/frontend/src/store/modules/sheet.ts+++ b/frontend/src/store/modules/sheet.ts@@ -90,7 +90,7 @@ export const useSheetStore = defineStore("sheet", {},/*** Check the sheet whether is read-only.- * 1. If the sheet is not created yet, it can not be edited.+ * 1. If the sheet is not created yet, it cannot be edited.* 2. If the sheet is created by the current user, it can be edited.* 3. If the sheet is created by other user, will be checked the visibility of the sheet.* a) If the sheet's visibility is private or public, it can be edited only if the current user is the creator of the sheet.diff --git a/plugin/advisor/catalog/finder.go b/plugin/advisor/catalog/finder.goindex cdc8522393..60f22bfa50 100644--- a/plugin/advisor/catalog/finder.go+++ b/plugin/advisor/catalog/finder.go@@ -6,7 +6,7 @@ import "github.com/bytebase/bytebase/plugin/advisor/db"type FinderContext struct {// CheckIntegrity defines the policy for integrity checking.// There are two cases that will cause database to have an empty catalog:- // 1. we can not fetch the catalog, such as GitHub App/Actions.+ // 1. we cannot fetch the catalog, such as GitHub App/Actions.// 2. the databse is indeed empty.// We need different logic to deal with these two cases separately.// If DROP TABLE t and t not exists:diff --git a/plugin/advisor/catalog/walk_through.go b/plugin/advisor/catalog/walk_through.goindex 5819f45abd..c035171c30 100644--- a/plugin/advisor/catalog/walk_through.go+++ b/plugin/advisor/catalog/walk_through.go@@ -566,7 +566,7 @@ func (t *TableState) changeIndexVisibility(ctx *FinderContext, indexName string,func (t *TableState) renameIndex(ctx *FinderContext, oldName string, newName string) *WalkThroughError {// For MySQL, the primary key has a special name 'PRIMARY'.- // And the other indexes can not use the name which case-insensitive equals 'PRIMARY'.+ // And the other indexes cannot use the name which case-insensitive equals 'PRIMARY'.if strings.ToUpper(oldName) == PrimaryKeyName || strings.ToUpper(newName) == PrimaryKeyName {incorrectName := oldNameif strings.ToUpper(oldName) != PrimaryKeyName {@@ -807,7 +807,7 @@ func (t *TableState) completeTableDropColumn(columnName string) *WalkThroughErroreturn NewColumnNotExistsError(t.name, columnName)}- // Can not drop all columns in a table using ALTER TABLE DROP COLUMN.+ // Cannot drop all columns in a table using ALTER TABLE DROP COLUMN.if len(t.columnSet) == 1 {return &WalkThroughError{Type: ErrorTypeDropAllColumns,diff --git a/plugin/advisor/code.go b/plugin/advisor/code.goindex 5113409929..92b86f2e37 100644--- a/plugin/advisor/code.go+++ b/plugin/advisor/code.go@@ -47,7 +47,7 @@ const (// 401 ~ 499 column error code.NoRequiredColumn Code = 401- ColumnCanNotNull Code = 402+ ColumnCannotNull Code = 402ChangeColumnType Code = 403NotNullColumnWithNullDefault Code = 404ColumnNotExists Code = 405diff --git a/plugin/advisor/generator/main.go b/plugin/advisor/generator/main.goindex 6fd082fc00..a5174af49f 100644--- a/plugin/advisor/generator/main.go+++ b/plugin/advisor/generator/main.go@@ -36,7 +36,7 @@ var (var fileNameTokenList, advisorNameTokenList []stringfile, err := os.Open(typeFile)if err != nil {- fmt.Printf("can not open %q: %s\n", typeFile, err.Error())+ fmt.Printf("cannot open %q: %s\n", typeFile, err.Error())return}defer file.Close()diff --git a/plugin/advisor/mysql/advisor_column_no_null.go b/plugin/advisor/mysql/advisor_column_no_null.goindex 0975b00592..fa6f957265 100644--- a/plugin/advisor/mysql/advisor_column_no_null.go+++ b/plugin/advisor/mysql/advisor_column_no_null.go@@ -78,9 +78,9 @@ func (checker columnNoNullChecker) generateAdvice() []advisor.Advice {if col != nil && col.Nullable() {checker.adviceList = append(checker.adviceList, advisor.Advice{Status: checker.level,- Code: advisor.ColumnCanNotNull,+ Code: advisor.ColumnCannotNull,Title: checker.title,- Content: fmt.Sprintf("`%s`.`%s` can not have NULL value", column.tableName, column.columnName),+ Content: fmt.Sprintf("`%s`.`%s` cannot have NULL value", column.tableName, column.columnName),Line: column.line,})}diff --git a/plugin/advisor/mysql/advisor_column_no_null_test.go b/plugin/advisor/mysql/advisor_column_no_null_test.goindex bbbc984ba7..4ad1995794 100644--- a/plugin/advisor/mysql/advisor_column_no_null_test.go+++ b/plugin/advisor/mysql/advisor_column_no_null_test.go@@ -15,16 +15,16 @@ func TestColumnNoNull(t *testing.T) {Want: []advisor.Advice{{Status: advisor.Warn,- Code: advisor.ColumnCanNotNull,+ Code: advisor.ColumnCannotNull,Title: "column.no-null",- Content: "`book`.`id` can not have NULL value",+ Content: "`book`.`id` cannot have NULL value",Line: 2,},{Status: advisor.Warn,- Code: advisor.ColumnCanNotNull,+ Code: advisor.ColumnCannotNull,Title: "column.no-null",- Content: "`book`.`name` can not have NULL value",+ Content: "`book`.`name` cannot have NULL value",Line: 3,},},@@ -34,9 +34,9 @@ func TestColumnNoNull(t *testing.T) {Want: []advisor.Advice{{Status: advisor.Warn,- Code: advisor.ColumnCanNotNull,+ Code: advisor.ColumnCannotNull,Title: "column.no-null",- Content: "`book`.`name` can not have NULL value",+ Content: "`book`.`name` cannot have NULL value",Line: 1,},},@@ -46,9 +46,9 @@ func TestColumnNoNull(t *testing.T) {Want: []advisor.Advice{{Status: advisor.Warn,- Code: advisor.ColumnCanNotNull,+ Code: advisor.ColumnCannotNull,Title: "column.no-null",- Content: "`book`.`name` can not have NULL value",+ Content: "`book`.`name` cannot have NULL value",Line: 1,},},@@ -72,9 +72,9 @@ func TestColumnNoNull(t *testing.T) {Want: []advisor.Advice{{Status: advisor.Warn,- Code: advisor.ColumnCanNotNull,+ Code: advisor.ColumnCannotNull,Title: "column.no-null",- Content: "`book`.`id` can not have NULL value",+ Content: "`book`.`id` cannot have NULL value",Line: 3,},},@@ -101,9 +101,9 @@ func TestColumnNoNull(t *testing.T) {Want: []advisor.Advice{{Status: advisor.Warn,- Code: advisor.ColumnCanNotNull,+ Code: advisor.ColumnCannotNull,Title: "column.no-null",- Content: "`book`.`name` can not have NULL value",+ Content: "`book`.`name` cannot have NULL value",Line: 3,},},diff --git a/plugin/advisor/pg/advisor_column_no_null.go b/plugin/advisor/pg/advisor_column_no_null.goindex 722cdb82a5..fb86d9f964 100644--- a/plugin/advisor/pg/advisor_column_no_null.go+++ b/plugin/advisor/pg/advisor_column_no_null.go@@ -77,9 +77,9 @@ func (checker *columnNoNullChecker) generateAdviceList() []advisor.Advice {for _, column := range columnList {checker.adviceList = append(checker.adviceList, advisor.Advice{Status: checker.level,- Code: advisor.ColumnCanNotNull,+ Code: advisor.ColumnCannotNull,Title: checker.title,- Content: fmt.Sprintf(`Column "%s" in %s can not have NULL value`, column.column, column.normalizeTableName()),+ Content: fmt.Sprintf(`Column "%s" in %s cannot have NULL value`, column.column, column.normalizeTableName()),Line: checker.nullableColumns[column],})}diff --git a/plugin/advisor/pg/advisor_column_no_null_test.go b/plugin/advisor/pg/advisor_column_no_null_test.goindex f6b45d8f5d..b5e5eca7b4 100644--- a/plugin/advisor/pg/advisor_column_no_null_test.go+++ b/plugin/advisor/pg/advisor_column_no_null_test.go@@ -17,16 +17,16 @@ func TestColumnNoNULL(t *testing.T) {Want: []advisor.Advice{{Status: advisor.Warn,- Code: advisor.ColumnCanNotNull,+ Code: advisor.ColumnCannotNull,Title: "column.no-null",- Content: `Column "id" in "public"."book" can not have NULL value`,+ Content: `Column "id" in "public"."book" cannot have NULL value`,Line: 3,},{Status: advisor.Warn,- Code: advisor.ColumnCanNotNull,+ Code: advisor.ColumnCannotNull,Title: "column.no-null",- Content: `Column "name" in "public"."book" can not have NULL value`,+ Content: `Column "name" in "public"."book" cannot have NULL value`,Line: 4,},},@@ -36,9 +36,9 @@ func TestColumnNoNULL(t *testing.T) {Want: []advisor.Advice{{Status: advisor.Warn,- Code: advisor.ColumnCanNotNull,+ Code: advisor.ColumnCannotNull,Title: "column.no-null",- Content: `Column "name" in "public"."book" can not have NULL value`,+ Content: `Column "name" in "public"."book" cannot have NULL value`,Line: 1,},},@@ -48,9 +48,9 @@ func TestColumnNoNULL(t *testing.T) {Want: []advisor.Advice{{Status: advisor.Warn,- Code: advisor.ColumnCanNotNull,+ Code: advisor.ColumnCannotNull,Title: "column.no-null",- Content: `Column "name" in "public"."book" can not have NULL value`,+ Content: `Column "name" in "public"."book" cannot have NULL value`,Line: 1,},},@@ -60,9 +60,9 @@ func TestColumnNoNULL(t *testing.T) {Want: []advisor.Advice{{Status: advisor.Warn,- Code: advisor.ColumnCanNotNull,+ Code: advisor.ColumnCannotNull,Title: "column.no-null",- Content: `Column "name" in "public"."book" can not have NULL value`,+ Content: `Column "name" in "public"."book" cannot have NULL value`,Line: 1,},},@@ -83,9 +83,9 @@ func TestColumnNoNULL(t *testing.T) {Want: []advisor.Advice{{Status: advisor.Warn,- Code: advisor.ColumnCanNotNull,+ Code: advisor.ColumnCannotNull,Title: "column.no-null",- Content: `Column "id" in "public"."book" can not have NULL value`,+ Content: `Column "id" in "public"."book" cannot have NULL value`,Line: 1,},},@@ -117,9 +117,9 @@ func TestColumnNoNULL(t *testing.T) {Want: []advisor.Advice{{Status: advisor.Warn,- Code: advisor.ColumnCanNotNull,+ Code: advisor.ColumnCannotNull,Title: "column.no-null",- Content: `Column "id" in "public"."book" can not have NULL value`,+ Content: `Column "id" in "public"."book" cannot have NULL value`,Line: 1,},},diff --git a/plugin/parser/ast/unconverted_data_type.go b/plugin/parser/ast/unconverted_data_type.goindex 1e3f023687..f5685b9046 100644--- a/plugin/parser/ast/unconverted_data_type.go+++ b/plugin/parser/ast/unconverted_data_type.go@@ -2,7 +2,7 @@ package ast// UnconvertedDataType is the struct for unconverted data type.// TODO(rebelice): remove it.-// We define this because we can not convert all data types now.+// We define this because we cannot convert all data types now.type UnconvertedDataType struct {dataTypediff --git a/plugin/parser/ast/unconverted_expression_def.go b/plugin/parser/ast/unconverted_expression_def.goindex c7027a5e72..1f5b4a326e 100644--- a/plugin/parser/ast/unconverted_expression_def.go+++ b/plugin/parser/ast/unconverted_expression_def.go@@ -2,7 +2,7 @@ package ast// UnconvertedExpressionDef is the struct for unconveted expression definition.// TODO(rebelice): remove it.-// We define this because we can not convert all expression types now.+// We define this because we cannot convert all expression types now.type UnconvertedExpressionDef struct {expression}diff --git a/plugin/parser/ast/unconverted_stmt.go b/plugin/parser/ast/unconverted_stmt.goindex 4d6039c860..690b27af02 100644--- a/plugin/parser/ast/unconverted_stmt.go+++ b/plugin/parser/ast/unconverted_stmt.go@@ -2,7 +2,7 @@ package ast// UnconvertedStmt is the struct for unconverted statement definition.// TODO(rebelice): remove it.-// We define this because we can not convert all statement types now.+// We define this because we cannot convert all statement types now.type UnconvertedStmt struct {node}diff --git a/plugin/parser/tokenizer.go b/plugin/parser/tokenizer.goindex 7e6c2353bf..d0aa660428 100644--- a/plugin/parser/tokenizer.go+++ b/plugin/parser/tokenizer.go@@ -657,7 +657,7 @@ func (t *tokenizer) scanComment() error {// scanTo scans to delimiter. Use KMP algorithm.func (t *tokenizer) scanTo(delimiter []rune) error {if len(delimiter) == 0 {- return errors.Errorf("scanTo failed: delimiter can not be nil")+ return errors.Errorf("scanTo failed: delimiter cannot be nil")}// KMP algorithm.diff --git a/server/project.go b/server/project.goindex af91cf9bfc..b9a588df22 100644--- a/server/project.go+++ b/server/project.go@@ -37,7 +37,7 @@ func (s *Server) registerProjectRoutes(g *echo.Group) {return echo.NewHTTPError(http.StatusBadRequest, "Malformed create project request").SetInternal(err)}if projectCreate.Key == "" {- return echo.NewHTTPError(http.StatusBadRequest, "Project key can not be empty")+ return echo.NewHTTPError(http.StatusBadRequest, "Project key cannot be empty")}if projectCreate.TenantMode == api.TenantModeTenant && !s.feature(api.FeatureMultiTenancy) {return echo.NewHTTPError(http.StatusForbidden, api.FeatureMultiTenancy.AccessErrorMessage())@@ -169,7 +169,7 @@ func (s *Server) registerProjectRoutes(g *echo.Group) {}if v := projectPatch.Key; v != nil && *v == "" {- return echo.NewHTTPError(http.StatusBadRequest, "Project key can not be empty")+ return echo.NewHTTPError(http.StatusBadRequest, "Project key cannot be empty")}if v := projectPatch.LGTMCheckSetting; v != nil {if !s.feature(api.FeatureLGTM) {diff --git a/server/task.go b/server/task.goindex 142c338ce2..a0acc17f49 100644--- a/server/task.go+++ b/server/task.go@@ -47,7 +47,7 @@ func (s *Server) canUpdateTaskStatement(ctx context.Context, task *api.Task) *ec// 2. a Failed task which can be retried// 3. a Pending task which can't be scheduled because of failed task checks, task dependency or earliest allowed timeif task.Status != api.TaskPendingApproval && task.Status != api.TaskFailed && task.Status != api.TaskPending {- return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("can not update task in %q state", task.Status))+ return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("cannot update task in %q state", task.Status))}if task.Status == api.TaskPending {ok, err := s.TaskScheduler.canSchedule(ctx, task)@@ -55,7 +55,7 @@ func (s *Server) canUpdateTaskStatement(ctx context.Context, task *api.Task) *ecreturn echo.NewHTTPError(http.StatusInternalServerError, "failed to check whether the task can be scheduled").SetInternal(err)}if ok {- return echo.NewHTTPError(http.StatusBadRequest, "can not update the PENDING task because it can be running at any time")+ return echo.NewHTTPError(http.StatusBadRequest, "cannot update the PENDING task because it can be running at any time")}}return nildiff --git a/server/webhook_test.go b/server/webhook_test.goindex 408ffcac5d..1a88ad4fc5 100644--- a/server/webhook_test.go+++ b/server/webhook_test.go@@ -91,9 +91,9 @@ var mockSQLAdviceMap = map[string][]advisor.Advice{},{Status: advisor.Warn,- Code: advisor.ColumnCanNotNull,+ Code: advisor.ColumnCannotNull,Title: "column.no-null",- Content: `Column "id" in "public"."book" can not have NULL value`,+ Content: `Column "id" in "public"."book" cannot have NULL value`,Line: 1,},{@@ -135,7 +135,7 @@ func TestVCSSQLReview_ConvertSQLAdviceToGitLabCIResult(t *testing.T) {<testsuite name="file1.sql"><testcase name="column.no-null" classname="file1.sql" file="file1.sql#L1"><failure>-Error: Column "id" in "public"."book" can not have NULL value+Error: Column "id" in "public"."book" cannot have NULL valueYou can check the docs at https://www.bytebase.com/docs/reference/error-code/advisor#402</failure></testcase>@@ -169,8 +169,7 @@ You can check the docs at https://www.bytebase.com/docs/reference/error-code/advfunc TestVCSSQLReview_ConvertSQLAdiceToGitHubActionResult(t *testing.T) {expect := []string{- "::warning file=file1.sql,line=1,col=1,endColumn=2,title=column.no-null (402)::Column \"id\" in \"public\".\"book\" can not have NULL value%0ADoc: https://www.bytebase.com/docs/reference/error-code/advisor#402",- "::error file=file1.sql,line=2,col=1,endColumn=2,title=naming.index.idx (303)::Index in table \"tech_book\" mismatches the naming convention, expect \"^$|^idx_tech_book_id_name$\" but found \"tech_book_id_name\"%0ADoc: https://www.bytebase.com/docs/reference/error-code/advisor#303",+ "::warning file=file1.sql,line=1,col=1,endColumn=2,title=column.no-null (402)::Column \"id\" in \"public\".\"book\" cannot have NULL value%0ADoc: https://www.bytebase.com/docs/reference/error-code/advisor#402", "::error file=file1.sql,line=2,col=1,endColumn=2,title=naming.index.idx (303)::Index in table \"tech_book\" mismatches the naming convention, expect \"^$|^idx_tech_book_id_name$\" but found \"tech_book_id_name\"%0ADoc: https://www.bytebase.com/docs/reference/error-code/advisor#303","::warning file=file2.sql,line=1,col=1,endColumn=2,title=naming.table (301)::\"techBook\" mismatches table naming convention, naming format should be \"^[a-z]+(_[a-z]+)*$\"%0ADoc: https://www.bytebase.com/docs/reference/error-code/advisor#301","::error file=file2.sql,line=4,col=1,endColumn=2,title=naming.index.uk (304)::Unique key in table \"tech_book\" mismatches the naming convention, expect \"^$|^uk_tech_book_id_name$\" but found \"tech_book_id_name\"%0ADoc: https://www.bytebase.com/docs/reference/error-code/advisor#304",}diff --git a/tests/sql_review_test.go b/tests/sql_review_test.goindex c9af3c5d1f..979ca55f9b 100644--- a/tests/sql_review_test.go+++ b/tests/sql_review_test.go@@ -146,23 +146,23 @@ func TestSQLReviewForPostgreSQL(t *testing.T) {{Status: api.TaskCheckStatusWarn,Namespace: api.AdvisorNamespace,- Code: advisor.ColumnCanNotNull.Int(),+ Code: advisor.ColumnCannotNull.Int(),Title: "column.no-null",- Content: `Column "id" in "public"."userTable" can not have NULL value`,+ Content: `Column "id" in "public"."userTable" cannot have NULL value`,},{Status: api.TaskCheckStatusWarn,Namespace: api.AdvisorNamespace,- Code: advisor.ColumnCanNotNull.Int(),+ Code: advisor.ColumnCannotNull.Int(),Title: "column.no-null",- Content: `Column "name" in "public"."userTable" can not have NULL value`,+ Content: `Column "name" in "public"."userTable" cannot have NULL value`,},{Status: api.TaskCheckStatusWarn,Namespace: api.AdvisorNamespace,- Code: advisor.ColumnCanNotNull.Int(),+ Code: advisor.ColumnCannotNull.Int(),Title: "column.no-null",- Content: `Column "roomId" in "public"."userTable" can not have NULL value`,+ Content: `Column "roomId" in "public"."userTable" cannot have NULL value`,},},},@@ -491,23 +491,23 @@ func TestSQLReviewForMySQL(t *testing.T) {{Status: api.TaskCheckStatusWarn,Namespace: api.AdvisorNamespace,- Code: advisor.ColumnCanNotNull.Int(),+ Code: advisor.ColumnCannotNull.Int(),Title: "column.no-null",- Content: "`userTable`.`id` can not have NULL value",+ Content: "`userTable`.`id` cannot have NULL value",},{Status: api.TaskCheckStatusWarn,Namespace: api.AdvisorNamespace,- Code: advisor.ColumnCanNotNull.Int(),+ Code: advisor.ColumnCannotNull.Int(),Title: "column.no-null",- Content: "`userTable`.`name` can not have NULL value",+ Content: "`userTable`.`name` cannot have NULL value",},{Status: api.TaskCheckStatusWarn,Namespace: api.AdvisorNamespace,- Code: advisor.ColumnCanNotNull.Int(),+ Code: advisor.ColumnCannotNull.Int(),Title: "column.no-null",- Content: "`userTable`.`roomId` can not have NULL value",+ Content: "`userTable`.`roomId` cannot have NULL value",},},},