Skip to content

Commit

Permalink
Allow using regex longer than 150 chars (ezsystems#8)
Browse files Browse the repository at this point in the history
* Allow using regex longer than 150 chars

Useful for strong password validation like http://stackoverflow.com/a/6619072

* Allow using regex longer than 150 chars

Useful for strong password validation like http://stackoverflow.com/a/6619072

* Allow using regex longer than 150 chars

Useful for strong password validation like http://stackoverflow.com/a/6619072

* Allow using regex longer than 150 chars

Useful for strong password validation like http://stackoverflow.com/a/6619072

* Queries for updating existing installations
  • Loading branch information
tomahoax authored and andrerom committed Oct 3, 2018
1 parent f8535dd commit 7d75890
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sql/mysql/mbpaex.sql
@@ -1,6 +1,6 @@
CREATE TABLE ezx_mbpaex (
contentobject_id int(11) NOT NULL default '0',
passwordvalidationregexp varchar(150) NOT NULL default '',
passwordvalidationregexp varchar(255) NOT NULL default '',
passwordlifetime int(11) NOT NULL default '-1',
expirationnotification int(11) NOT NULL default '-1',
password_last_updated int(11) NOT NULL DEFAULT 0,
Expand Down
2 changes: 1 addition & 1 deletion sql/oracle/mbpaex.sql
@@ -1,6 +1,6 @@
CREATE TABLE ezx_mbpaex (
contentobject_id integer DEFAULT 0 NOT NULL,
passwordvalidationregexp varchar2(150) DEFAULT '',
passwordvalidationregexp varchar2(255) DEFAULT '',
passwordlifetime integer DEFAULT -1 NOT NULL,
expirationnotification integer DEFAULT -1 NOT NULL,
password_last_updated integer DEFAULT 0 NOT NULL,
Expand Down
2 changes: 1 addition & 1 deletion sql/oracle/schema.sql
Expand Up @@ -5,7 +5,7 @@ CREATE TABLE ezx_mbpaex (
expirationnotification_sent INTEGER DEFAULT 0 NOT NULL,
password_last_updated INTEGER DEFAULT 0 NOT NULL,
passwordlifetime INTEGER DEFAULT -1 NOT NULL,
passwordvalidationregexp VARCHAR2(150),
passwordvalidationregexp VARCHAR2(255),
updatechildren INTEGER DEFAULT 0 NOT NULL,
PRIMARY KEY ( contentobject_id )
);
Expand Down
2 changes: 1 addition & 1 deletion sql/postgresql/mbpaex.sql
@@ -1,6 +1,6 @@
CREATE TABLE ezx_mbpaex (
contentobject_id integer NOT NULL DEFAULT 0,
passwordvalidationregexp character varying(150) DEFAULT '' NOT NULL,
passwordvalidationregexp character varying(255) DEFAULT '' NOT NULL,
passwordlifetime integer DEFAULT -1 NOT NULL,
expirationnotification integer DEFAULT -1 NOT NULL,
password_last_updated integer DEFAULT 0 NOT NULL,
Expand Down
1 change: 1 addition & 0 deletions update/database/mysql/longer-regexp.sql
@@ -0,0 +1 @@
ALTER TABLE ezx_mbpaex CHANGE passwordvalidationregexp passwordvalidationregexp VARCHAR(255);
1 change: 1 addition & 0 deletions update/database/oracle/longer-regexp.sql
@@ -0,0 +1 @@
ALTER TABLE ezx_mbpaex (passwordvalidationregexp varchar2(255))
1 change: 1 addition & 0 deletions update/database/postgresql/longer-regexp.sql
@@ -0,0 +1 @@
ALTER TABLE ezx_mbpaex ALTER COLUMN passwordvalidationregexp TYPE varchar(255);

0 comments on commit 7d75890

Please sign in to comment.