fix: do not drop all tables
This commit is contained in:
		
							parent
							
								
									c5f639338f
								
							
						
					
					
						commit
						7e59e275e0
					
				@ -3,8 +3,6 @@ import CollectionManagerPlugin from '..';
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
export async function createApp() {
 | 
					export async function createApp() {
 | 
				
			||||||
  const app = mockServer();
 | 
					  const app = mockServer();
 | 
				
			||||||
  const queryInterface = app.db.sequelize.getQueryInterface();
 | 
					 | 
				
			||||||
  await queryInterface.dropAllTables();
 | 
					 | 
				
			||||||
  app.plugin(CollectionManagerPlugin);
 | 
					  app.plugin(CollectionManagerPlugin);
 | 
				
			||||||
  await app.load();
 | 
					  await app.load();
 | 
				
			||||||
  return app;
 | 
					  return app;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user