fix: add migrationRules

This commit is contained in:
chenos 2025-04-08 09:27:00 +08:00
parent af3d5b56fd
commit 99c6ecb398
2 changed files with 11 additions and 0 deletions

View File

@ -1,8 +1,18 @@
/**
* This file is part of the NocoBase (R) project.
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
* Authors: NocoBase Team.
*
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
* For more information, please refer to: https://www.nocobase.com/agreement.
*/
import { defineCollection } from '@nocobase/database';
export default defineCollection({
dumpRules: 'required',
name: 'blockTemplateLinks',
migrationRules: ['overwrite', 'schema-only'],
fields: [
{
type: 'string',

View File

@ -13,6 +13,7 @@ export default defineCollection({
dumpRules: 'required',
name: 'blockTemplates',
autoGenId: false,
migrationRules: ['overwrite', 'schema-only'],
fields: [
{
type: 'uid',