Index repo_history by URL
This commit is contained in:
		
							parent
							
								
									ef60898514
								
							
						
					
					
						commit
						429d3d5b30
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -87,6 +87,7 @@ def initdb(): | ||||||
|     c.execute('''CREATE TABLE repos (url TEXT PRIMARY KEY, active INT)''') |     c.execute('''CREATE TABLE repos (url TEXT PRIMARY KEY, active INT)''') | ||||||
|     c.execute('''CREATE INDEX active_key ON repos (active)''') |     c.execute('''CREATE INDEX active_key ON repos (active)''') | ||||||
|     c.execute('''CREATE TABLE repo_history (entry INTEGER PRIMARY KEY ASC AUTOINCREMENT, url TEXT, count INTEGER, head_commit TEXT)''') |     c.execute('''CREATE TABLE repo_history (entry INTEGER PRIMARY KEY ASC AUTOINCREMENT, url TEXT, count INTEGER, head_commit TEXT)''') | ||||||
|  |     c.execute('''CREATE INDEX url_key ON repo_history (url)''') | ||||||
|     c.execute('''CREATE TABLE config (git_commit TEXT, project_title TEXT)''') |     c.execute('''CREATE TABLE config (git_commit TEXT, project_title TEXT)''') | ||||||
|     c.execute('''INSERT INTO config VALUES ('', '')''') |     c.execute('''INSERT INTO config VALUES ('', '')''') | ||||||
|     conn.commit() |     conn.commit() | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue