update patch

This commit is contained in:
Keith Woodlock
2012-11-23 17:37:23 +00:00
parent 10c343373c
commit c36370ae83
2 changed files with 5 additions and 7 deletions
@@ -1,8 +1,8 @@
ALTER TABLE m_permission
ALTER TABLE `m_permission`
DROP COLUMN `default_name` ,
DROP COLUMN `default_description` ,
ADD COLUMN `is_maker_checker` TINYINT(1) NULL DEFAULT AFTER `action_name` ;
ADD COLUMN `is_maker_checker` TINYINT(1) NOT NULL AFTER `action_name` ;
update m_permission
set is_maker_checker = false;
@@ -24,12 +24,11 @@ public class Permission extends AbstractPersistable<Long> {
@SuppressWarnings("unused")
@Column(name = "action_name", nullable = true, length = 100)
private final String actionName;
@SuppressWarnings("unused")
@Column(name = "is_maker_checker", nullable = false)
private Boolean isMakerChecker;
private Boolean isMakerChecker;
protected Permission() {
this.grouping = null;
this.code = null;
@@ -44,5 +43,4 @@ public class Permission extends AbstractPersistable<Long> {
public String code() {
return this.code;
}
}