Skip to content

Commit

Permalink
Added [NOREF] NC24 Support. Closing #106 #100 #92 #80 #101
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Stocker committed Jan 4, 2024
1 parent 5eb2f2f commit 4764814
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# SensorLogger

### 0.1.4nc UNRELEASED
* Added [NOREF] NC24 Support. Closing #106 #100 #92 #80 #101
* Fixed [NOREF] Migration on dropping non exisiting sensorlogger_devices_unique_idx
* [NOREF] Cleanup
* Fixed #101 DB Queries. Make use of queryBuilder.
* Fixed #103 Migration Version000010Date20190206183552. Drop index before setting new. Thanx @stefan123t for the hint
Expand Down
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<screenshot>https://www.html5live.at/wp-content/uploads/2019/05/sensorlogger-nc16-widget-sidebar.png</screenshot>
<screenshot>https://www.html5live.at/wp-content/uploads/2019/05/sensorlogger-nc16-device-edit.png</screenshot>
<dependencies>
<nextcloud min-version="15" max-version="23"/>
<nextcloud min-version="15" max-version="24"/>
<database min-version="5.7">mysql</database>
<php min-version="7.0" max-version="8.0"/>
</dependencies>
Expand Down
4 changes: 3 additions & 1 deletion lib/Migration/Version000010Date20190206183552.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt

if ($schema->hasTable("sensorlogger_devices")) {
$table = $schema->getTable("sensorlogger_devices");
$table->dropIndex('sensorlogger_devices_unique_idx');
if ($table->hasIndex('sensorlogger_devices_unique_idx')) {
$table->dropIndex('sensorlogger_devices_unique_idx');
}
$table->addUniqueIndex(['user_id','uuid'],'sensorlogger_devices_unique_idx');
return $schema;
}
Expand Down

0 comments on commit 4764814

Please sign in to comment.