fix: use PRAGMA user_version to track migrations
fix: minor fixes
This commit is contained in:
		
							parent
							
								
									521e82b7b5
								
							
						
					
					
						commit
						3117427f1f
					
				
					 6 changed files with 15 additions and 36 deletions
				
			
		| 
						 | 
				
			
			@ -11,7 +11,7 @@ database_init();
 | 
			
		|||
void
 | 
			
		||||
database_free();
 | 
			
		||||
 | 
			
		||||
int
 | 
			
		||||
void
 | 
			
		||||
database_migrate();
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,5 +1,5 @@
 | 
			
		|||
#ifndef CORE_LOGGER_H
 | 
			
		||||
#define CORE_LOGGER_H
 | 
			
		||||
#ifndef EMGAUWA_LOGGER_H
 | 
			
		||||
#define EMGAUWA_LOGGER_H
 | 
			
		||||
 | 
			
		||||
#include <stdio.h>
 | 
			
		||||
#include <time.h>
 | 
			
		||||
| 
						 | 
				
			
			@ -19,4 +19,4 @@ logger_log(int level, const char *filename, int line, const char *func, const ch
 | 
			
		|||
#define LOGGER_CRIT(...)    logger_log(LOG_CRIT   , __FILE__, __LINE__, __func__, ##__VA_ARGS__)
 | 
			
		||||
#define LOGGER_EMERG(...)   logger_log(LOG_EMERG  , __FILE__, __LINE__, __func__, ##__VA_ARGS__)
 | 
			
		||||
 | 
			
		||||
#endif //CORE_LOGGER_H
 | 
			
		||||
#endif //EMGAUWA_LOGGER_H
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue