Browse Source

add table for sites

andre 8 months ago
parent
commit
198b9e81a0
1 changed files with 4 additions and 4 deletions
  1. 4 4
      siteBuilder.php

+ 4 - 4
siteBuilder.php

@@ -656,20 +656,20 @@ function siteBuilderCreateTables() {
 			echo "Unable to create sitePro_dom: {$e->getMessage()}";
 			echo "Unable to create sitePro_dom: {$e->getMessage()}";
 		}
 		}
 	}
 	}
-	if (!Capsule::schema()->hasTable('sitePro_sub')) {
+	if (!Capsule::schema()->hasTable('sitePro_site')) {
 		try {
 		try {
 			Capsule::schema()->create(
 			Capsule::schema()->create(
-				'sitePro_sub',
+				'sitePro_site',
 				function ($table) {
 				function ($table) {
 					/** @var \Illuminate\Database\Schema\Blueprint $table */
 					/** @var \Illuminate\Database\Schema\Blueprint $table */
 					$table->increments('id');
 					$table->increments('id');
 					$table->integer('domid');
 					$table->integer('domid');
-					$table->string('subdomain');
+					$table->string('name');
 					$table->boolean('enabled');
 					$table->boolean('enabled');
 				}
 				}
 			);
 			);
 		} catch (\Exception $e) {
 		} catch (\Exception $e) {
-			echo "Unable to create sitePro_sub: {$e->getMessage()}";
+			echo "Unable to create sitePro_site: {$e->getMessage()}";
 		}
 		}
 	}
 	}
 }
 }