mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	feat: migration for unique connections (#9076)
This commit is contained in:
		
							parent
							
								
									91cebc5afc
								
							
						
					
					
						commit
						5a1f1a00ba
					
				
							
								
								
									
										14
									
								
								src/migrations/20250109150818-unique-connections-table.js 
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								src/migrations/20250109150818-unique-connections-table.js 
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,14 @@
 | 
			
		||||
exports.up = function(db, cb) {
 | 
			
		||||
    db.runSql(`
 | 
			
		||||
    CREATE TABLE IF NOT EXISTS unique_connections
 | 
			
		||||
    (
 | 
			
		||||
        id VARCHAR(255) PRIMARY KEY NOT NULL,
 | 
			
		||||
        updated_at TIMESTAMP DEFAULT now(),
 | 
			
		||||
        hll BYTEA NOT NULL,
 | 
			
		||||
    );
 | 
			
		||||
`, cb)
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
exports.down = function(db, cb) {
 | 
			
		||||
    db.runSql(`DROP TABLE unique_connections;`, cb);
 | 
			
		||||
};
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user