فهرست منبع

Fix table creation for XMPP and WebRTC (#43)

* Fix table creation

* fix DB def

* Update app_config.php
Cristian Sandu 8 سال پیش
والد
کامیت
885e177199
2فایلهای تغییر یافته به همراه7 افزوده شده و 4 حذف شده
  1. 4 2
      webrtc/app_config.php
  2. 3 2
      xmpp/app_config.php

+ 4 - 2
webrtc/app_config.php

@@ -20,7 +20,8 @@
 	//schema details
 		$y = 0; //table array index
 		$z = 0; //field array index
-		$apps[$x]['db'][$y]['table'] = 'v_webrtc';
+		$apps[$x]['db'][$y]['table']['name'] = 'v_webrtc';
+		$apps[$x]['db'][$y]['table']['parent'] = "";
 		$apps[$x]['db'][$y]['fields'][$z]['name'] = 'domain_uuid';
 		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
 		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
@@ -50,7 +51,8 @@
 
 		$y = 1; //table array index
 		$z = 0; //field array index
-		$apps[$x]['db'][$y]['table'] = 'v_webrtc';
+		$apps[$x]['db'][$y]['table']['name'] = 'v_webrtc';
+		$apps[$x]['db'][$y]['table']['parent'] = "";
 		$apps[$x]['db'][$y]['fields'][$z]['name'] = 'domain_uuid';
 		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
 		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';

+ 3 - 2
xmpp/app_config.php

@@ -55,7 +55,8 @@
 	//schema details
 		$y = 0; //table array index
 		$z = 0; //field array index
-		$apps[$x]['db'][$y]['table'] = "v_xmpp";
+		$apps[$x]['db'][$y]['table']['name'] = "v_xmpp";
+		$apps[$x]['db'][$y]['table']['parent'] = "";
 		$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "id";
 		$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "xmpp_profile_id";
 		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "serial";
@@ -162,4 +163,4 @@
 		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
 		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
 
-?>
+?>