Browse Source

create tables

andre 9 months ago
parent
commit
c3266951b4
1 changed files with 0 additions and 8 deletions
  1. 0 8
      siteBuilder.php

+ 0 - 8
siteBuilder.php

@@ -1168,7 +1168,6 @@ function getSiteBuilderApiURL($params) {
 
 function siteBuilderCreateTables() {
 	// Create a new table.
-	try {
 		Capsule::schema()->create(
 			'sitePro_acc',
 			function ($table) {
@@ -1179,10 +1178,6 @@ function siteBuilderCreateTables() {
 				$table->boolean('enabled');
 			}
 		);
-	} catch (\Exception $e) {
-		echo "Unable to create sitePro_acc: {$e->getMessage()}";
-	}
-	try {
 		Capsule::schema()->create(
 			'sitePro_dom',
 			function ($table) {
@@ -1193,7 +1188,4 @@ function siteBuilderCreateTables() {
 				$table->boolean('enabled');
 			}
 		);
-	} catch (\Exception $e) {
-		echo "Unable to create sitePro_dom: {$e->getMessage()}";
-	}
 }