Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abook_check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_android
abook_check
Commits
e164e4a6
Commit
e164e4a6
authored
Jan 26, 2021
by
Kim Jinsung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.2.360リリース問題対応(プッシュメッセージテーブルにカラム追加)
parent
c5801581
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/DBConnector.java
+1
-1
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/DatabaseVersions.java
+3
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/TPushMessage.java
+6
-1
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/DBConnector.java
View file @
e164e4a6
...
...
@@ -19,7 +19,7 @@ import jp.agentec.abook.abv.bl.common.db.SQLiteDatabase;
public
class
DBConnector
{
private
static
volatile
DBConnector
dbConnector
=
null
;
public
static
final
String
DatabaseName
=
"ABVJE"
;
public
static
final
int
DatabaseVersion
=
DatabaseVersions
.
Ver1_2_36
0
;
public
static
final
int
DatabaseVersion
=
DatabaseVersions
.
Ver1_2_36
2
;
protected
SQLiteDatabase
db
=
null
;
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/DatabaseVersions.java
View file @
e164e4a6
...
...
@@ -8,5 +8,8 @@ public class DatabaseVersions {
public
static
final
int
Ver1_2_3
=
22
;
//連続作業機能追加
public
static
final
int
Ver1_2_360
=
23
;
//チャット機能追加(1.2.360障害対応。)
public
static
final
int
Ver1_2_362
=
24
;
}
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/TPushMessage.java
View file @
e164e4a6
...
...
@@ -40,7 +40,12 @@ public class TPushMessage extends SQLiteTableScript {
@Override
public
List
<
String
>
getUpgradeScript
(
int
oldVersion
,
int
newVersion
)
{
return
null
;
List
<
String
>
ddl
=
new
ArrayList
<
String
>();
if
(
oldVersion
<
DatabaseVersions
.
Ver1_2_362
)
{
ddl
.
add
(
"ALTER TABLE t_push_message ADD COLUMN room_id BIGINT "
);
ddl
.
add
(
"ALTER TABLE t_push_message ADD COLUMN room_name VARCHAR(128) "
);
}
return
ddl
;
}
@Override
...
...
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