Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ specific language governing permissions and limitations
under the License.
-->

**2026-11-17 Arturo Bernal (abernal AT apache DOT org)**

* _3.0.1-git-10_

* Fix for [JSPWIKI-1374](https://issues.apache.org/jira/browse/JSPWIKI-1374): the PostgreSQL script that creates the user database tables runs on PostgreSQL

**2026-11-14 Multiple authors**

* _3.0.1-git-09
Expand Down
2 changes: 1 addition & 1 deletion jspwiki-api/src/main/java/org/apache/wiki/api/Release.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public final class Release {
* <p>
* If the build identifier is empty, it is not added.
*/
public static final String BUILD = "9";
public static final String BUILD = "10";

/**
* This is the generic version string you should use when printing out the version. It is of
Expand Down
20 changes: 12 additions & 8 deletions jspwiki-war/src/main/config/db/postgresql.ddl
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ drop table groups;
drop table group_members;
drop user jspwiki;

-- the e-mail of a user is looked up with the case the user typed, as varchar_ignorecase does on HSQL
create collation if not exists case_insensitive (provider = icu, locale = 'und-u-ks-level2', deterministic = false);

create table users (
uid varchar(100),
email varchar_ignorecase(100),
email varchar(100) collate case_insensitive,
full_name varchar(100),
login_name varchar(100) not null primary key,
password varchar(255),
Expand All @@ -29,7 +32,8 @@ create table users (
modified timestamp,
lock_expiry timestamp,
password_changed timestamp,
attributes longvarchar,
attributes text,
oldhashes text
);

create table roles (
Expand All @@ -52,7 +56,7 @@ create table group_members (
primary key (name,member)
);

create user jspwiki with encrypted password 'password' nocreatedb nocreateuser;
create user jspwiki with encrypted password 'password' nosuperuser nocreatedb nocreaterole;

grant select, insert, update, delete on users to jspwiki;
grant select, insert, update, delete on roles to jspwiki;
Expand Down Expand Up @@ -101,8 +105,8 @@ insert into group_members (
'Administrator'
);

#drop table users;
#drop table roles;
#drop table groups;
#drop table group_members;
#drop user jspwiki;
--drop table users;
--drop table roles;
--drop table groups;
--drop table group_members;
--drop user jspwiki;
Loading