Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
openasist4android_core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
19
Issues
19
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
OpenASiST
openasist4android_core
Commits
4c65582e
Commit
4c65582e
authored
May 19, 2019
by
Fabius
Committed by
Toni Beier
May 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Datenbank Upgrade um Absturzt bei Update zu vermeiden
#25
parent
be160a33
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
src/main/java/de/bps/asist/context/ASiSTConstants.java
src/main/java/de/bps/asist/context/ASiSTConstants.java
+1
-1
src/main/java/de/bps/asist/core/manager/database/DatabaseHelper.java
...va/de/bps/asist/core/manager/database/DatabaseHelper.java
+4
-0
No files found.
src/main/java/de/bps/asist/context/ASiSTConstants.java
View file @
4c65582e
...
...
@@ -17,7 +17,7 @@ public class ASiSTConstants {
public
static
final
int
NOTIFICATION_ID_UPDATE
=
6951
;
public
static
final
String
DB_NAME
=
"ASiST.db"
;
public
static
final
int
DB_VERSION
=
8
;
// DB_Version 4 ab myTU Version
public
static
final
int
DB_VERSION
=
9
;
// DB_Version 4 ab myTU Version
public
static
final
String
FEEDBACK_LECTURER_MODE
=
"feedback.lecturer.mode"
;
...
...
src/main/java/de/bps/asist/core/manager/database/DatabaseHelper.java
View file @
4c65582e
...
...
@@ -83,6 +83,10 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper {
// nothing to do
}
}
else
if
(
oldVersion
!=
newVersion
&&
newVersion
==
9
)
{
database
.
execSQL
(
"ALTER TABLE 'course' ADD COLUMN type INTEGER NOT NULL DEFAULT (0);"
);
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment