mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	always drop test-schema first
This commit is contained in:
		
							parent
							
								
									518891a969
								
							
						
					
					
						commit
						71a25f54a6
					
				| @ -17,7 +17,7 @@ delete process.env.DATABASE_URL; | ||||
| 
 | ||||
| const db = require('../../../lib/db/db-pool').createDb(options.databaseUri); | ||||
| 
 | ||||
| const createApp = db.raw(`CREATE SCHEMA IF NOT EXISTS ${options.databaseSchema}`) | ||||
| const createApp = db.raw(`DROP SCHEMA ${options.databaseSchema} CASCADE; CREATE SCHEMA ${options.databaseSchema}`) | ||||
|     .then(() => migrator(options.databaseUri, options.databaseSchema)) | ||||
|     .then(() => { | ||||
|         const stores = createStores(options); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user