Summary: See D3912 for discussion. InnoDB may reuse autoincrement IDs after restart; provide a way to avoid it. Test Plan: Unit tests. Scheduled and executed tasks through `drydock lease --type host` and `phd debug taskmaster`. Reviewers: vrana, btrahan Reviewed By: vrana CC: aran Differential Revision: https://secure.phabricator.com/D3914
		
			
				
	
	
		
			10 lines
		
	
	
		
			379 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			379 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
CREATE TABLE `{$NAMESPACE}_harbormaster`.`lisk_counter` (
 | 
						|
  counterName VARCHAR(64) COLLATE utf8_bin PRIMARY KEY,
 | 
						|
  counterValue BIGINT UNSIGNED NOT NULL
 | 
						|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 | 
						|
 | 
						|
CREATE TABLE `{$NAMESPACE}_worker`.`lisk_counter` (
 | 
						|
  counterName VARCHAR(64) COLLATE utf8_bin PRIMARY KEY,
 | 
						|
  counterValue BIGINT UNSIGNED NOT NULL
 | 
						|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 |