From 9cbd03ce179207ebb23cbcb86fe9ed05d3a5a98b Mon Sep 17 00:00:00 2001 From: "holger.trampe" Date: Fri, 4 Jun 2021 17:02:20 +0200 Subject: [PATCH] =?UTF-8?q?Agenturdatensatz=20abge=C3=A4ndert=20usw.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Version000001Date20210521125400.php | 21 ++++++++----------- 1 file changed, 9 insertions(+), 12 deletions(-) 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 ]);