mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-03-14 12:23:33 +00:00
This commit is contained in:
parent
a37a9cfe96
commit
b96a96155d
2 changed files with 5 additions and 5 deletions
|
|
@ -8,15 +8,15 @@ return new class extends Migration
|
||||||
{
|
{
|
||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::table("devices", function (Blueprint $table): void {
|
Schema::table('devices', function (Blueprint $table): void {
|
||||||
$table->boolean("maximum_compatibility")->default(false);
|
$table->boolean('maximum_compatibility')->default(false);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public function down(): void
|
public function down(): void
|
||||||
{
|
{
|
||||||
Schema::table("devices", function (Blueprint $table): void {
|
Schema::table('devices', function (Blueprint $table): void {
|
||||||
$table->dropColumn("maximum_compatibility");
|
$table->dropColumn('maximum_compatibility');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -100,7 +100,7 @@ test('display endpoint includes maximum_compatibility value when true for device
|
||||||
$device = Device::factory()->create([
|
$device = Device::factory()->create([
|
||||||
'mac_address' => '00:11:22:33:44:55',
|
'mac_address' => '00:11:22:33:44:55',
|
||||||
'api_key' => 'test-api-key',
|
'api_key' => 'test-api-key',
|
||||||
'maximum_compatibility' => true
|
'maximum_compatibility' => true,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$response = $this->withHeaders([
|
$response = $this->withHeaders([
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue