From 97caf41b2b2a755525f40de36f7390ee845e4ce9 Mon Sep 17 00:00:00 2001 From: Klaus Richarz Date: Sun, 21 Jul 2024 11:04:10 +0200 Subject: [PATCH] #387 add change set for user role table --- .../db/changelog/db.changelog-master.yaml | 65 ++++++++++++++++++- 1 file changed, 64 insertions(+), 1 deletion(-) diff --git a/src/main/resources/db/changelog/db.changelog-master.yaml b/src/main/resources/db/changelog/db.changelog-master.yaml index cc441ad7b..d9a25b64c 100644 --- a/src/main/resources/db/changelog/db.changelog-master.yaml +++ b/src/main/resources/db/changelog/db.changelog-master.yaml @@ -902,6 +902,69 @@ databaseChangeLog: name: deleted type: bit(1) defaultValue: 0 - + - changeSet: + id: 25 + author: kr + comment: Add table for user roles + preConditions: + - onFail: MARK_RAN + - not: + - tableExists: + tableName: user_role + changes: + - createTable: + tableName: user_role + columns: + - column: + name: id + type: bigint + autoIncrement: true + constraints: + primaryKey: true + - column: + name: created + type: datetime + - column: + name: createdby + type: varchar(255) + - column: + name: lastupdate + type: datetime + - column: + name: lastupdatedby + type: varchar(255) + - column: + name: updatecounter + type: int + - column: + name: role + type: varchar(255) + constraints: + nullable: false + - column: + name: object_type + type: varchar(255) + constraints: + nullable: false + - column: + name: user_id + type: varchar(255) + constraints: + nullable: false + - column: + name: object_id + type: varchar(255) + constraints: + nullable: true + - column: + name: valid_from + type: date + constraints: + nullable: true + - column: + name: valid_until + type: date + constraints: + nullable: true # - include: # file: db/changelog/includes/addAllEmployees.sql \ No newline at end of file