hasTable('guests_users')) { $table = $schema->createTable('guests_users'); $table->addColumn('uid', 'string', [ 'notnull' => true, 'length' => 64, 'default' => '', ]); $table->addColumn('uid_lower', 'string', [ 'notnull' => true, 'length' => 64, 'default' => '', ]); $table->addColumn('displayname', 'string', [ 'notnull' => false, 'length' => 64, ]); $table->addColumn('password', 'string', [ 'notnull' => true, 'length' => 255, 'default' => '', ]); $table->setPrimaryKey(['uid']); $table->addIndex(['uid_lower'], 'guests_user_uid_lower'); } return $schema; } }