Skip to content

Commit 2a5389c

Browse files
committed
Merge remote-tracking branch 'origin/main' into fix/issue-65-index-name-too-long
2 parents b944e63 + 3af0b01 commit 2a5389c

File tree

6 files changed

+97
-35
lines changed

6 files changed

+97
-35
lines changed

CHANGELOG.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
1212
<!-- changelog-linker -->
1313
## [Unreleased]
1414

15+
## 1.0.1 - 2026-04-03
16+
17+
💝 **SUPPORT PROFILE FIELDS** — If this project helps your team, please support ongoing maintenance via GitHub Sponsors: https://github.com/sponsors/LibreSign
18+
19+
**STAR THE REPOSITORY** — Stars help the project gain visibility and justify continued investment: https://github.com/LibreCodeCoop/profile_fields
20+
21+
🏢 **ENTERPRISE SUPPORT** — Need custom development, support, or sponsored features? Contact us: contact@librecode.coop
22+
23+
### Fixed
24+
- Fixed installation and reinstallation failures caused by the `profile_fields_definitions.active` boolean column being created as `NOT NULL`, and added an upgrade migration for existing instances [#61](https://github.com/LibreCodeCoop/profile_fields/pull/61)
25+
1526
## 1.0.0 - 2026-03-30
1627

1728
💝 **SUPPORT PROFILE FIELDS** — Built from scratch and released for free. If it saves your team time, please consider sponsoring: https://github.com/sponsors/LibreSign
@@ -29,4 +40,5 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
2940
- `occ` commands for data export, import, clear, and developer reset [#5](https://github.com/LibreCodeCoop/profile_fields/pull/5)
3041
- Transifex integration for community translations [#34](https://github.com/LibreCodeCoop/profile_fields/pull/34)
3142

32-
[Unreleased]: https://github.com/LibreCodeCoop/profile_fields/compare/v1.0.0...HEAD
43+
[Unreleased]: https://github.com/LibreCodeCoop/profile_fields/compare/v1.0.1...HEAD
44+
[1.0.1]: https://github.com/LibreCodeCoop/profile_fields/compare/v1.0.0...v1.0.1

appinfo/info.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Developed with ❤️ by [LibreCode](https://librecode.coop). Ongoing maintenanc
2323
2424
* [Sponsor LibreSign on GitHub (monthly recurring support is especially welcome): ![Donate using GitHub Sponsor](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/LibreSign)
2525
]]></description>
26-
<version>1.0.0</version>
26+
<version>1.0.1</version>
2727
<licence>agpl</licence>
2828
<author mail="contact@librecode.coop" homepage="https://librecode.coop">LibreCode</author>
2929
<namespace>ProfileFields</namespace>

lib/Migration/Version1000Date20260309120000.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
5454
'unsigned' => true,
5555
]);
5656
$table->addColumn('active', Types::BOOLEAN, [
57+
'notnull' => false,
5758
'default' => true,
5859
]);
5960
$table->addColumn('options', Types::TEXT, [
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?php
2+
3+
/**
4+
* SPDX-FileCopyrightText: 2026 LibreCode coop and LibreCode contributors
5+
* SPDX-License-Identifier: AGPL-3.0-or-later
6+
*/
7+
8+
declare(strict_types=1);
9+
10+
namespace OCA\ProfileFields\Migration;
11+
12+
use Closure;
13+
use OCP\DB\ISchemaWrapper;
14+
use OCP\Migration\IOutput;
15+
use OCP\Migration\SimpleMigrationStep;
16+
17+
class Version1001Date20260404010000 extends SimpleMigrationStep {
18+
/**
19+
* @param IOutput $output
20+
* @param Closure(): ISchemaWrapper $schemaClosure
21+
* @param array $options
22+
*/
23+
#[\Override]
24+
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper {
25+
/** @var ISchemaWrapper $schema */
26+
$schema = $schemaClosure();
27+
28+
if (!$schema->hasTable('profile_fields_definitions')) {
29+
return null;
30+
}
31+
32+
$table = $schema->getTable('profile_fields_definitions');
33+
if (!$table->hasColumn('active')) {
34+
return null;
35+
}
36+
37+
$activeColumn = $table->getColumn('active');
38+
if (!$activeColumn->getNotnull()) {
39+
return null;
40+
}
41+
42+
$table->changeColumn('active', [
43+
'notnull' => false,
44+
'default' => true,
45+
]);
46+
47+
return $schema;
48+
}
49+
}

package-lock.json

Lines changed: 32 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "profile_fields",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Profile fields",
55
"license": "AGPL-3.0-or-later",
66
"private": true,

0 commit comments

Comments
 (0)