diff --git a/lib/Migration/Version000001Date20210521125400.php b/lib/Migration/Version000001Date20210521125400.php index fc0bf65..f826848 100644 --- a/lib/Migration/Version000001Date20210521125400.php +++ b/lib/Migration/Version000001Date20210521125400.php @@ -27,7 +27,7 @@ 'notnull' => true, ]); $table->addColumn('name', 'string', [ - 'notnull' => true, + 'notnull' => false, 'length' => 200 ]); @@ -61,24 +61,21 @@ 'length' => 200 ]); - $table->setPrimaryKey(['id']); - } - - if (!$schema->hasTable('agency_user')) { - $table = $schema->createTable('agency_user'); - - $table->addColumn('id', 'integer', [ - 'autoincrement' => true, + $table->addColumn('agencygid', 'string', [ 'notnull' => true, + 'default' => '', + 'length' => 200 ]); - $table->addColumn('agency', 'integer', [ + $table->addColumn('agencydirid', 'string', [ 'notnull' => true, - 'length' => 64 + 'default' => '', + 'length' => 200 ]); - $table->addColumn('user', 'string', [ + $table->addColumn('standarddirid', 'string', [ 'notnull' => true, + 'default' => '', 'length' => 200 ]);