hasTable(TransferMapper::TABLE_NAME)) { return null; } $table = $schema->createTable(TransferMapper::TABLE_NAME); $table->addColumn('id', Types::BIGINT, [ 'autoincrement' => true, 'notnull' => true, 'length' => 20, 'unsigned' => true, ]); $table->addColumn('author', Types::STRING, [ 'notnull' => true, 'length' => 64, ]); $table->addColumn('source', Types::STRING, [ 'notnull' => true, 'length' => 64, ]); $table->addColumn('target', Types::STRING, [ 'notnull' => true, 'length' => 64, ]); $table->addColumn('status', Types::STRING, [ 'notnull' => true, ]); $table->setPrimaryKey(['id']); return $schema; } }