mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 01:05:48 +01:00 
			
		
		
		
	Switch to smallint for position keys (x,y,z) in postgres backend
This commit is contained in:
		@@ -164,9 +164,9 @@ void MapDatabasePostgreSQL::createDatabase()
 | 
			
		||||
{
 | 
			
		||||
	createTableIfNotExists("blocks",
 | 
			
		||||
		"CREATE TABLE blocks ("
 | 
			
		||||
			"posX INT NOT NULL,"
 | 
			
		||||
			"posY INT NOT NULL,"
 | 
			
		||||
			"posZ INT NOT NULL,"
 | 
			
		||||
			"posX smallint NOT NULL,"
 | 
			
		||||
			"posY smallint NOT NULL,"
 | 
			
		||||
			"posZ smallint NOT NULL,"
 | 
			
		||||
			"data BYTEA,"
 | 
			
		||||
			"PRIMARY KEY (posX,posY,posZ)"
 | 
			
		||||
			");"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user