Added foreign key
This commit is contained in:
		
					parent
					
						
							
								d3abf5eff9
							
						
					
				
			
			
				commit
				
					
						93cd85595c
					
				
			
		
					 4 changed files with 6 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -722,7 +722,7 @@ return [
 | 
			
		|||
			"network" => ["type" => "char(4)", "not null" => "1", "default" => "", "comment" => "Network from where the item comes from"],
 | 
			
		||||
			"owner-id" => ["type" => "int unsigned", "not null" => "1", "default" => "0", "relation" => ["contact" => "id"], "comment" => "Link to the contact table with uid=0 of the owner of this item"],
 | 
			
		||||
			"author-id" => ["type" => "int unsigned", "not null" => "1", "default" => "0", "relation" => ["contact" => "id"], "comment" => "Link to the contact table with uid=0 of the author of this item"],
 | 
			
		||||
			"causer-id" => ["type" => "int unsigned", "not null" => "1", "default" => "0", "relation" => ["contact" => "id"], "comment" => "Link to the contact table with uid=0 of the contact that caused the item creation"],
 | 
			
		||||
			"causer-id" => ["type" => "int unsigned", "not null" => "1", "default" => "0", "foreign" => ["contact" => "id", "on delete" => "restrict"], "comment" => "Link to the contact table with uid=0 of the contact that caused the item creation"],
 | 
			
		||||
			"icid" => ["type" => "int unsigned", "relation" => ["item-content" => "id"], "comment" => "Id of the item-content table entry that contains the whole item content"],
 | 
			
		||||
			"iaid" => ["type" => "int unsigned", "relation" => ["item-activity" => "id"], "comment" => "Id of the item-activity table entry that contains the activity data"],
 | 
			
		||||
			"vid" => ["type" => "smallint unsigned", "relation" => ["verb" => "id"], "comment" => "Id of the verb table entry that contains the activity verbs"],
 | 
			
		||||
| 
						 | 
				
			
			@ -814,6 +814,7 @@ return [
 | 
			
		|||
			"uri-id" => ["uri-id"],
 | 
			
		||||
			"parent-uri-id" => ["parent-uri-id"],
 | 
			
		||||
			"thr-parent-id" => ["thr-parent-id"],
 | 
			
		||||
			"causer-id" => ["causer-id"],
 | 
			
		||||
		]
 | 
			
		||||
	],
 | 
			
		||||
	"item-activity" => [
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue