Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/lang/en-us/rule/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ export default {
'Non-text,blob, JSON, TIMESTAMP fields must have default values',
DDLCheckFloatDouble: 'Force the float/double type to be of type Decimal',
DDLEnableAutoincrementInit: 'The increment column to start with 1',
DDLEnableForeignKey: 'Whether foreign keys are allowed in table creation',
DDLEnablePrimaryKey: 'Check if a primary key is required',
DDLPrimaryKeyMust: 'Force the primary key name to be ID',
DDLEnableAutoIncrement: 'Forces primary keys to increment columns',
DDLEnableAutoincrementUnsigned:
Expand Down
1 change: 1 addition & 0 deletions src/lang/zh-cn/rule/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default {
DDLAllowPRINotInt: '允许主键类型为非int/bigint',
DDLEnableNullIndexName: '允许索引名为空',
DDLMultiToCommit: '允许单个工单提交多条DDL语句',
DDLEnableForeignKey: '是否允许在创建表时使用外键',
DDLEnablePrimaryKey: '是否检查必须拥有主键',

DDLAllowMultiAlter: '允许单个工单执行多条ALTER语句',
Expand Down
6 changes: 6 additions & 0 deletions src/views/manager/rules/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ const rule: Rule[] = [
type: 'DDL',
tp: 0,
},
{
name: 'DDLEnableForeignKey',
desc: t('DDLEnableForeignKey'),
type: 'DDL',
tp: 0,
},
{
name: 'DDLEnablePrimaryKey',
desc: t('DDLEnablePrimaryKey'),
Expand Down