Skip to content

Commit

Permalink
Merge pull request #2 from nextcloud/feature/all-database
Browse files Browse the repository at this point in the history
Support all databases
  • Loading branch information
ChristophWurst committed May 31, 2021
2 parents a363c46 + 73b50d0 commit 065a068
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
matrix:
php-versions: [7.3, 7.4]
nextcloud-versions: ['master']
db: ['mysql']
db: ['mysql', 'sqlite', 'pgsql']
include:
- php: 8.0
nextcloud-version: master
Expand Down
5 changes: 2 additions & 3 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<name>Calendar Resource Management</name>
<summary>Management for calendar resources and rooms</summary>
<description><![CDATA[Management for calendar resources and rooms]]></description>
<version>0.1.0-alpha1</version>
<version>0.1.0-alpha2</version>
<licence>agpl</licence>
<author mail="anna.larch@nextcloud.com" >Anna Larch</author>
<author mail="anna.larch@nextcloud.com">Anna Larch</author>
<namespace>CalendarResourceManagement</namespace>
<types>
<prevent_group_restriction/>
Expand All @@ -16,7 +16,6 @@
<category>organization</category>
<bugs>https://github.com/nextcloud/calendar_resource_management</bugs>
<dependencies>
<database>mysql</database>
<nextcloud min-version="21" max-version="22"/>
</dependencies>
<commands>
Expand Down
4 changes: 2 additions & 2 deletions lib/Migration/Version1000Date20200805220319.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
$table->setPrimaryKey(['id']);
$table->addIndex(['story_id'], 'calresources_rooms_sid');
$table->addUniqueIndex(['uid'], 'calresources_rooms_uid');
$table->addUniqueIndex(['email'], 'calresources_resources_eml');
$table->addUniqueIndex(['email'], 'calresources_rooms_eml');
}

/**
Expand Down Expand Up @@ -311,7 +311,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
$table->setPrimaryKey(['id']);
$table->addIndex(['building_id'], 'calresources_vehicles_bid');
$table->addUniqueIndex(['uid'], 'calresources_vehicles_uid');
$table->addUniqueIndex(['email'], 'calresources_resources_eml');
$table->addUniqueIndex(['email'], 'calresources_vehicles_eml');
}

$buildings = $schema->getTable('calresources_buildings');
Expand Down

0 comments on commit 065a068

Please sign in to comment.