diff --git a/db/migrations/20200413150836_app_to_company.php b/db/migrations/20200413150836_app_to_company.php index 01b3522..2a9ced1 100644 --- a/db/migrations/20200413150836_app_to_company.php +++ b/db/migrations/20200413150836_app_to_company.php @@ -8,8 +8,8 @@ class AppToCompany extends AbstractMigration { */ public function change() { $table = $this->table('appcompany'); - $table->addColumn('app_id', 'integer', ['null' => false]) - ->addColumn('company_id', 'integer', ['null' => false]) + $table->addColumn('app_id', 'integer', ['null' => false, 'unsigned'=>false]) + ->addColumn('company_id', 'integer', ['null' => false, 'unsigned'=>false]) ->addColumn('interval','string',['length'=>1]) ->addIndex(['app_id', 'company_id']) ->addForeignKey('app_id', 'apps', ['id'], ['constraint' => 'a2p-app_must_exist']) diff --git a/db/migrations/20200520140331_config_registry.php b/db/migrations/20200520140331_config_registry.php index 491b9da..2421fa7 100644 --- a/db/migrations/20200520140331_config_registry.php +++ b/db/migrations/20200520140331_config_registry.php @@ -6,7 +6,7 @@ class ConfigRegistry extends AbstractMigration { public function change() { $customFields = $this->table('conffield'); - $customFields->addColumn('app_id', 'integer', ['null' => false]) + $customFields->addColumn('app_id', 'integer', ['null' => false, 'unsigned'=>false]) ->addColumn('keyname', 'string', ['length' => 64]) ->addColumn('type', 'string', ['length' => 32]) ->addColumn('description', 'string', ['length' => 1024]) @@ -16,8 +16,8 @@ public function change() { $customFields->create(); $configs = $this->table('configuration'); - $configs->addColumn('app_id', 'integer', ['null' => false]) - ->addColumn('company_id', 'integer', ['null' => false]) + $configs->addColumn('app_id', 'integer', ['null' => false, 'unsigned'=>false]) + ->addColumn('company_id', 'integer', ['null' => false, 'unsigned'=>false]) ->addColumn('key', 'string', ['length' => 64]) ->addColumn('value', 'string', ['length' => 1024]) ->addIndex(['app_id', 'company_id', 'key'], ['unique' => true]) diff --git a/db/migrations/20221123091933_company_env.php b/db/migrations/20221123091933_company_env.php index 793a7cd..1533b3b 100644 --- a/db/migrations/20221123091933_company_env.php +++ b/db/migrations/20221123091933_company_env.php @@ -1,10 +1,11 @@ table('companyenv'); $table->addColumn('keyword', 'string', array('null' => false)) ->addColumn('value', 'string', array('null' => false)) - ->addColumn('company_id', 'integer', ['null' => false]) - ->addIndex(['keyword', 'company_id'], ['unique' => true]) - ->addForeignKey('company_id', 'company', ['id'], ['constraint' => 'env-company_must_exist']); + ->addColumn('company_id', 'integer', ['null' => false, 'unsigned'=>false]) + ->addIndex(['keyword', 'company_id'], ['unique' => true]) + ->addForeignKey('company_id', 'company', ['id'], ['constraint' => 'env-company_must_exist']); $table->save(); - } } diff --git a/db/migrations/20221125095601_job.php b/db/migrations/20221125095601_job.php index 96acd35..29691b3 100644 --- a/db/migrations/20221125095601_job.php +++ b/db/migrations/20221125095601_job.php @@ -19,17 +19,13 @@ final class Job extends AbstractMigration { */ public function change() { $table = $this->table('job'); - $table->addColumn('app_id', 'integer', ['null' => false]) + $table->addColumn('app_id', 'integer', ['null' => false, 'unsigned' => false]) ->addColumn('begin', 'datetime', ['default' => 'CURRENT_TIMESTAMP']) ->addColumn('end', 'datetime', ['null' => true]) - ->addColumn('company_id', 'integer', ['null' => false]) + ->addColumn('company_id', 'integer', ['null' => false, 'unsigned'=>false]) ->addColumn('exitcode', 'integer', ['null' => true]) - ->addForeignKey('app_id', 'apps', ['id'], - ['constraint' => 'job-app_must_exist']) - ->addForeignKey('company_id', 'company', ['id'], - ['constraint' => 'job-company_must_exist']); + ->addForeignKey('app_id', 'apps', ['id'], ['constraint' => 'job-app_must_exist']) + ->addForeignKey('company_id', 'company', ['id'], ['constraint' => 'job-company_must_exist']); $table->save(); - } - } diff --git a/db/migrations/20231112224941_company_apps.php b/db/migrations/20231112224941_company_apps.php index 602c336..73623d6 100644 --- a/db/migrations/20231112224941_company_apps.php +++ b/db/migrations/20231112224941_company_apps.php @@ -21,8 +21,8 @@ public function change(): void { $table = $this->table('companyapp'); - $table->addColumn('app_id', 'integer', ['null' => false]) - ->addColumn('company_id', 'integer', ['null' => false]) + $table->addColumn('app_id', 'integer', ['null' => false, 'unsigned'=>false]) + ->addColumn('company_id', 'integer', ['null' => false, 'unsigned'=>false]) ->addIndex(['app_id', 'company_id'], ['unique' => true]) ->addForeignKey('app_id', 'apps', ['id'], ['constraint' => 'a2c-app_must_exist']) ->addForeignKey('company_id', 'company', ['id'], ['constraint' => 'a2c-company_must_exist']); diff --git a/db/migrations/20240107205916_action_config.php b/db/migrations/20240107205916_action_config.php index d2ae544..6f6d578 100644 --- a/db/migrations/20240107205916_action_config.php +++ b/db/migrations/20240107205916_action_config.php @@ -26,7 +26,7 @@ public function change(): void ->addColumn('keyname', 'string', ['comment' => 'Configuration Key name']) ->addColumn('value', 'string', ['comment' => 'Configuration Value']) ->addColumn('mode', 'string', ['null' => true, 'length' => 10, 'default' => null, 'comment' => 'success, fail or empty']) - ->addColumn('runtemplate_id', 'integer', ['null' => false]) + ->addColumn('runtemplate_id', 'integer', ['null' => false, 'unsigned'=>false]) ->addIndex(['module', 'keyname', 'mode', 'runtemplate_id'], ['unique' => true]) ->addForeignKey('runtemplate_id', 'runtemplate', ['id'], ['constraint' => 'runtemplate_must_exist']) ->create(); diff --git a/tests/multiflexi_probe.multiflexi.app.json b/tests/multiflexi_probe.multiflexi.app.json index cd868be..004bb23 100644 --- a/tests/multiflexi_probe.multiflexi.app.json +++ b/tests/multiflexi_probe.multiflexi.app.json @@ -10,7 +10,7 @@ "homepage": "https://github.com/VitexSoftware/MultiFlexi", "ociimage": "docker.io/vitexsoftware/multiflexi-probe", "uuid": "775ed801-2489-4981-bc14-d8a01cba1938", - "topics": "MultiFlexi,probe,task launcher,testing,tool,👁‍🗨", + "topics": "MultiFlexi,probe,task launcher,testing,tool", "version": "0.1.0", "environment": { "FILE_UPLOAD": {