mirror of
				https://github.com/grocy/grocy.git
				synced 2025-10-31 02:36:54 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			326 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			326 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
| ALTER TABLE habits_log
 | |
| ADD done_by_user_id INTEGER;
 | |
| 
 | |
| DROP TABLE api_keys;
 | |
| 
 | |
| CREATE TABLE api_keys (
 | |
| 	id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,
 | |
| 	api_key TEXT NOT NULL UNIQUE,
 | |
| 	user_id INTEGER NOT NULL,
 | |
| 	expires DATETIME,
 | |
| 	last_used DATETIME,
 | |
| 	row_created_timestamp DATETIME DEFAULT (datetime('now', 'localtime'))
 | |
| );
 |