mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 05:29:26 +08:00
* fix(plugin-file-manager): fix migration and add test cases * fix(plugin-file-manager): fix test case fails for mysql * fix(plugin-file-manager): fix test cases * fix(plugin-file-manager): change migration name
This commit is contained in:
parent
aa8b98d615
commit
80633ce079
@ -115,7 +115,7 @@ export class FileCollectionTemplate extends CollectionTemplate {
|
||||
// 用于预览
|
||||
{
|
||||
interface: 'url',
|
||||
type: 'string',
|
||||
type: 'text',
|
||||
name: 'preview',
|
||||
field: 'url', // 直接引用 url 字段
|
||||
deletable: false,
|
||||
|
@ -8,7 +8,7 @@
|
||||
*/
|
||||
|
||||
import { MockServer, createMockServer } from '@nocobase/test';
|
||||
import Migration from '../../migrations/20250225112112-increase-url-length';
|
||||
import Migration from '../../migrations/20250225225034-increase-url-length';
|
||||
import PluginCollectionManagerServer from '../../server';
|
||||
|
||||
describe('file-manager > migrations', () => {
|
@ -52,7 +52,7 @@ export default class extends Migration {
|
||||
await FieldRepo.update({
|
||||
filter: {
|
||||
collectionName: collection.name,
|
||||
name: ['url', 'path'],
|
||||
name: ['url', 'path', 'preview'],
|
||||
},
|
||||
values: {
|
||||
type: 'text',
|
Loading…
x
Reference in New Issue
Block a user