|
|
@@ -78,6 +78,39 @@ function siteBuilder_Testconnection($params) {
|
|
|
);
|
|
|
}
|
|
|
|
|
|
+function siteBuilder_AdminServicesTabFieldsSave($params) {
|
|
|
+ // Create a new table.
|
|
|
+ try {
|
|
|
+ Capsule::schema()->create(
|
|
|
+ 'sitePro_acc',
|
|
|
+ function ($table) {
|
|
|
+ /** @var \Illuminate\Database\Schema\Blueprint $table */
|
|
|
+ $table->increments('id');
|
|
|
+ $table->string('account');
|
|
|
+ $table->integer('pid');
|
|
|
+ $table->boolean('enabled');
|
|
|
+ }
|
|
|
+ );
|
|
|
+ } catch (\Exception $e) {
|
|
|
+ echo "Unable to create sitePro_acc: {$e->getMessage()}";
|
|
|
+ }
|
|
|
+ try {
|
|
|
+ Capsule::schema()->create(
|
|
|
+ 'sitePro_dom',
|
|
|
+ function ($table) {
|
|
|
+ /** @var \Illuminate\Database\Schema\Blueprint $table */
|
|
|
+ $table->increments('id');
|
|
|
+ $table->integer('relid');
|
|
|
+ $table->string('domain');
|
|
|
+ $table->boolean('enabled');
|
|
|
+ }
|
|
|
+ );
|
|
|
+ } catch (\Exception $e) {
|
|
|
+ echo "Unable to create sitePro_dom: {$e->getMessage()}";
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* Provision a new account of a siteBuilder server.
|
|
|
*
|