chore: migrate to new dump rule

This commit is contained in:
sealday 2024-03-21 19:50:45 +08:00
parent 7695f2130e
commit 59d2af69c3
5 changed files with 15 additions and 5 deletions

View File

@ -1,7 +1,9 @@
import { defineCollection } from '@nocobase/database'; import { defineCollection } from '@nocobase/database';
export default defineCollection({ export default defineCollection({
duplicator: 'optional', dumpRules: {
group: 'required',
},
name: 'home_page_presentations_attachments', name: 'home_page_presentations_attachments',
title: '首页展示图关联', title: '首页展示图关联',
fields: [ fields: [

View File

@ -1,7 +1,9 @@
import { defineCollection } from '@nocobase/database'; import { defineCollection } from '@nocobase/database';
export default defineCollection({ export default defineCollection({
duplicator: 'optional', dumpRules: {
group: 'required',
},
name: 'home_page_presentations', name: 'home_page_presentations',
title: '首页展示图配置', title: '首页展示图配置',
hidden: true, hidden: true,

View File

@ -1,7 +1,9 @@
import { defineCollection } from '@nocobase/database'; import { defineCollection } from '@nocobase/database';
export default defineCollection({ export default defineCollection({
duplicator: 'optional', dumpRules: {
group: 'required',
},
name: 'linkManage', name: 'linkManage',
title: '链接管理', title: '链接管理',
fields: [ fields: [

View File

@ -1,7 +1,9 @@
import { defineCollection } from '@nocobase/database'; import { defineCollection } from '@nocobase/database';
// 跟随core插件消息通知表 // 跟随core插件消息通知表
export default defineCollection({ export default defineCollection({
duplicator: 'optional', dumpRules: {
group: 'required',
},
name: 'system_message', name: 'system_message',
title: '消息通知', title: '消息通知',
createdBy: true, createdBy: true,

View File

@ -1,7 +1,9 @@
import { defineCollection } from '@nocobase/database'; import { defineCollection } from '@nocobase/database';
export default defineCollection({ export default defineCollection({
duplicator: 'optional', dumpRules: {
group: 'required',
},
name: 'tokenConfiguration', name: 'tokenConfiguration',
title: '开放平台 Token 管理', title: '开放平台 Token 管理',
fields: [ fields: [