12 lines
		
	
	
		
			217 B
		
	
	
	
		
			PL/PgSQL
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			217 B
		
	
	
	
		
			PL/PgSQL
		
	
	
	
	
	
| BEGIN;
 | |
| 
 | |
| CREATE TABLE "netmap_positions" (
 | |
|   "id" serial PRIMARY KEY,
 | |
|   "device_groups" text[] NOT NULL,
 | |
|   "vlan" integer NOT NULL DEFAULT 0,
 | |
|   "positions" text NOT NULL,
 | |
|   UNIQUE ("device_groups", "vlan")
 | |
| );
 | |
| 
 | |
| COMMIT;
 |