Skip to content

Commit

Permalink
Merge pull request #12 from WeBankFinTech/branch-0.6.0
Browse files Browse the repository at this point in the history
Fix bug of rename tables
  • Loading branch information
howeye authored Dec 11, 2019
2 parents b22645f + 17b0f83 commit 2449307
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class Role {
private String name;

@ManyToMany(cascade = {CascadeType.ALL}, fetch = FetchType.EAGER)
@JoinTable(name = "auth_role_permission",
@JoinTable(name = "qualitis_auth_role_permission",
joinColumns = {@JoinColumn(name="role_id", referencedColumnName = "id")},
inverseJoinColumns = {@JoinColumn(name = "permission_id", referencedColumnName = "id")})
private List<Permission> permissions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class User {
private String department;

@ManyToMany(cascade = {CascadeType.ALL}, fetch = FetchType.EAGER)
@JoinTable(name = "auth_user_role",
@JoinTable(name = "qualitis_auth_user_role",
joinColumns = {@JoinColumn(name="user_id", referencedColumnName = "id")},
inverseJoinColumns = {@JoinColumn(name = "role_id", referencedColumnName = "id")})
private Set<Role> roles;
Expand All @@ -63,7 +63,7 @@ public class User {
private List<UserSpecPermission> userSpecPermissions;

@ManyToMany(cascade = {CascadeType.ALL}, fetch = FetchType.EAGER)
@JoinTable(name = "auth_user_permission",
@JoinTable(name = "qualitis_auth_user_permission",
joinColumns = {@JoinColumn(name="user_id", referencedColumnName = "id")},
inverseJoinColumns = {@JoinColumn(name = "permission_id", referencedColumnName = "id")})
private Set<Permission> specPermissions;
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
#

group=com.webank.wedatasphere.qualitis
version=0.5.0
version=0.6.0
12 changes: 6 additions & 6 deletions web/app/src/main/resources/database/init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for auth_role_permission
-- ----------------------------
DROP TABLE IF EXISTS `auth_role_permission`;
CREATE TABLE `auth_role_permission` (
DROP TABLE IF EXISTS `qualitis_auth_role_permission`;
CREATE TABLE `qualitis_auth_role_permission` (
`role_id` bigint(20) NOT NULL,
`permission_id` bigint(20) NOT NULL,
KEY `FK5mgu2qwy6vgke5w8ds63it2ni` (`permission_id`),
Expand All @@ -17,8 +17,8 @@ CREATE TABLE `auth_role_permission` (
-- ----------------------------
-- Table structure for auth_user_permission
-- ----------------------------
DROP TABLE IF EXISTS `auth_user_permission`;
CREATE TABLE `auth_user_permission` (
DROP TABLE IF EXISTS `qualitis_auth_user_permission`;
CREATE TABLE `qualitis_auth_user_permission` (
`user_id` bigint(20) NOT NULL,
`permission_id` bigint(20) NOT NULL,
PRIMARY KEY (`user_id`,`permission_id`),
Expand All @@ -30,8 +30,8 @@ CREATE TABLE `auth_user_permission` (
-- ----------------------------
-- Table structure for auth_user_role
-- ----------------------------
DROP TABLE IF EXISTS `auth_user_role`;
CREATE TABLE `auth_user_role` (
DROP TABLE IF EXISTS `qualitis_auth_user_role`;
CREATE TABLE `qualitis_auth_user_role` (
`user_id` bigint(20) NOT NULL,
`role_id` bigint(20) NOT NULL,
PRIMARY KEY (`user_id`,`role_id`),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ALTER TABLE rule_datasource_mapping RENAME TO qualitis_rule_datasource_mapping;
ALTER TABLE rule_group RENAME TO qualitis_rule_group;
ALTER TABLE rule_variable RENAME TO qualitis_rule_variable;
ALTER TABLE template RENAME TO qualitis_template;
ALTER TABLE template_mid_TABLE_input_meta RENAME TO qualitis_template_mid_TABLE_input_meta;
ALTER TABLE template_mid_table_input_meta RENAME TO qualitis_template_mid_table_input_meta;
ALTER TABLE template_output_meta RENAME TO qualitis_template_output_meta;
ALTER TABLE template_regexp_expr RENAME TO qualitis_template_regexp_expr;
ALTER TABLE template_statistic_input_meta RENAME TO qualitis_template_statistic_input_meta;
Expand Down

0 comments on commit 2449307

Please sign in to comment.