Skip to content

Commit 361e65a

Browse files
committed
PG: Add modern_password field
Not added to schema though.
1 parent 5fbfeb6 commit 361e65a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Database/PostgreSQL/pg-build-schema.psql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ CREATE TABLE company (
5050
can_change_password SMALLINT,
5151
login VARCHAR(50),
5252
password VARCHAR(255),
53+
modern_password VARCHAR(255), -- this will be written by newer versions
5354
pop3_account VARCHAR(50),
5455

5556
name VARCHAR(50),
@@ -1432,7 +1433,7 @@ INSERT INTO table_version (table_name, table_version)
14321433
VALUES ('staff', 41);
14331434

14341435
INSERT INTO table_version (table_name, table_version)
1435-
VALUES ('company', 55);
1436+
VALUES ('company', 56);
14361437
INSERT INTO table_version (table_name, table_version)
14371438
VALUES ('company_info', 42);
14381439
INSERT INTO table_version (table_name, table_version)

Database/PostgreSQL/pg-update-1.0to5.4.psql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ ALTER TABLE company ADD COLUMN birthname VARCHAR(255) NULL;
3232
ALTER TABLE company ADD COLUMN family_status VARCHAR(255) NULL;
3333
ALTER TABLE company ADD COLUMN citizenship VARCHAR(255) NULL; -- CSV?!
3434
ALTER TABLE company ADD COLUMN dayofdeath TIMESTAMP WITH TIME ZONE NULL;
35+
ALTER TABLE company ADD COLUMN modern_password VARCHAR(255) NULL;
3536

3637
-- district of a city (eg Magdeburg "Nord")
3738
ALTER TABLE address ADD COLUMN district VARCHAR(255) NULL;
@@ -482,7 +483,7 @@ ALTER TABLE document ADD COLUMN text_content_object_version INT NULL;
482483
-- 56+ - things changed in 2025
483484
UPDATE table_version SET table_version = 55 WHERE table_name = '_model';
484485
UPDATE table_version SET table_version = 56 WHERE table_name = 'address';
485-
UPDATE table_version SET table_version = 55 WHERE table_name = 'company';
486+
UPDATE table_version SET table_version = 56 WHERE table_name = 'company';
486487
UPDATE table_version SET table_version = 56 WHERE table_name = 'company_value';
487488
UPDATE table_version SET table_version = 56
488489
WHERE table_name = 'company_category';

0 commit comments

Comments
 (0)