hasTable('gpodder_subscriptions')) { $table = $schema->createTable('gpodder_subscriptions'); $table->addColumn('id', 'integer', [ 'autoincrement' => true, 'notnull' => true, ]); $table->addColumn('url', Types::STRING, [ 'notnull' => true, 'length' => 500 ]); $table->addColumn('subscribed', Types::BOOLEAN, [ 'notnull' => false, ]); $table->addColumn('updated', Types::DATETIME_MUTABLE, [ 'notnull' => true, ]); $table->addColumn('user_id', Types::STRING, [ 'notnull' => true, 'length' => 200, ]); $table->setPrimaryKey(['id']); $table->addUniqueIndex(['url', "user_id"], 'subscriptions_url_user'); } return $schema; } }