Update database version after upgrade, fix 403 detection on sharing app

This commit is contained in:
jendib 2013-08-15 19:19:58 +02:00
parent 0aa9b44481
commit 84cb6c51dc
3 changed files with 5 additions and 3 deletions

View File

@ -1 +1,2 @@
insert into T_ROLE(ROL_ID_C, ROL_NAME_C, ROL_CREATEDATE_D) values('user', 'User', NOW()); insert into T_ROLE(ROL_ID_C, ROL_NAME_C, ROL_CREATEDATE_D) values('user', 'User', NOW());
update T_CONFIG set CFG_VALUE_C='3' where CFG_ID_C='DB_VERSION';

View File

@ -1 +1,2 @@
create cached table T_SHARE ( SHA_ID_C varchar(36) not null, SHA_NAME_C varchar(36), SHA_IDDOCUMENT_C varchar(36) not null, SHA_CREATEDATE_D datetime, SHA_DELETEDATE_D datetime, primary key (SHA_ID_C) ); create cached table T_SHARE ( SHA_ID_C varchar(36) not null, SHA_NAME_C varchar(36), SHA_IDDOCUMENT_C varchar(36) not null, SHA_CREATEDATE_D datetime, SHA_DELETEDATE_D datetime, primary key (SHA_ID_C) );
update T_CONFIG set CFG_VALUE_C='4' where CFG_ID_C='DB_VERSION';

View File

@ -9,7 +9,7 @@ App.controller('Share', function($scope, $state, $stateParams, Restangular) {
.then(function (data) { .then(function (data) {
$scope.document = data; $scope.document = data;
}, function (response) { }, function (response) {
if (response.data.status == 403) { if (response.status == 403) {
$state.transitionTo('403'); $state.transitionTo('403');
} }
}); });