-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apple silicon fixes for MR 5 Python 3 (#23)
* Fixed CPU Arch check * Fix for missing data on Big Sur+ * Fix broken widget * Update power_battery_condition_widget.php * Update for Apple Silicon Fixes battery manufacture date
- Loading branch information
Showing
8 changed files
with
112 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Capsule\Manager as Capsule; | ||
|
||
class PowerAppleSilicon extends Migration | ||
{ | ||
private $tableName = 'power'; | ||
|
||
public function up() | ||
{ | ||
$capsule = new Capsule(); | ||
|
||
$capsule::schema()->table($this->tableName, function (Blueprint $table) { | ||
$table->string('adapter_description')->nullable(); | ||
$table->string('max_charge_current')->nullable(); | ||
$table->string('max_discharge_current')->nullable(); | ||
$table->string('max_pack_voltage')->nullable(); | ||
$table->string('min_pack_voltage')->nullable(); | ||
$table->string('max_temperature')->nullable(); | ||
$table->string('min_temperature')->nullable(); | ||
}); | ||
} | ||
|
||
public function down() | ||
{ | ||
$capsule = new Capsule(); | ||
|
||
$capsule::schema()->table($this->tableName, function (Blueprint $table) { | ||
$table->dropColumn('adapter_description'); | ||
$table->dropColumn('max_charge_current'); | ||
$table->dropColumn('max_discharge_current'); | ||
$table->dropColumn('max_pack_voltage'); | ||
$table->dropColumn('min_pack_voltage'); | ||
$table->dropColumn('max_temperature'); | ||
$table->dropColumn('min_temperature'); | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters