DB migration for test case
This commit is contained in:
		
							parent
							
								
									1522f2826d
								
							
						
					
					
						commit
						5cd86a42bf
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -9,7 +9,7 @@ class Database: | ||||||
|     db_dal = DAL() |     db_dal = DAL() | ||||||
| 
 | 
 | ||||||
|     def configure(self, db_uri): |     def configure(self, db_uri): | ||||||
|         self.db_dal = DAL(db_uri, migrate=False) |         self.db_dal = DAL(db_uri, migrate=db_uri.startswith("sqlite:memory")) | ||||||
|         self.db_dal.define_table( |         self.db_dal.define_table( | ||||||
|             "comment", |             "comment", | ||||||
|             Field("url"), |             Field("url"), | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Yax
						Yax