fix(database): remove dropAllTables
This commit is contained in:
		
							parent
							
								
									405ff75c1b
								
							
						
					
					
						commit
						6bf416d5c4
					
				@ -1,7 +1,7 @@
 | 
				
			|||||||
import { mockDatabase } from '../index';
 | 
					import { Collection } from '@nocobase/database';
 | 
				
			||||||
import { BelongsToManyRepository } from '../../relation-repository/belongs-to-many-repository';
 | 
					 | 
				
			||||||
import Database from '../../database';
 | 
					import Database from '../../database';
 | 
				
			||||||
import { Collection, HasManyRepository } from '@nocobase/database';
 | 
					import { BelongsToManyRepository } from '../../relation-repository/belongs-to-many-repository';
 | 
				
			||||||
 | 
					import { mockDatabase } from '../index';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
describe('belongs to many with target key', function () {
 | 
					describe('belongs to many with target key', function () {
 | 
				
			||||||
  let db: Database;
 | 
					  let db: Database;
 | 
				
			||||||
@ -158,7 +158,6 @@ describe('belongs to many', () => {
 | 
				
			|||||||
      ],
 | 
					      ],
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    await db.sequelize.getQueryInterface().dropAllTables();
 | 
					 | 
				
			||||||
    await db.sync({ force: true });
 | 
					    await db.sync({ force: true });
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user