mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 21:25:35 +03:00
Fix duplicated rich_workspace in dev version
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
066a1a3424
commit
491de101ac
1 changed files with 5 additions and 3 deletions
|
@ -2089,9 +2089,11 @@ public class FileContentProvider extends ContentProvider {
|
|||
Log_OC.i(SQL, "Entering in the #53 add rich workspace to file table");
|
||||
db.beginTransaction();
|
||||
try {
|
||||
db.execSQL(ALTER_TABLE + ProviderTableMeta.FILE_TABLE_NAME +
|
||||
ADD_COLUMN + ProviderTableMeta.FILE_RICH_WORKSPACE + " TEXT ");
|
||||
|
||||
if (!checkIfColumnExists(db, ProviderTableMeta.FILE_TABLE_NAME,
|
||||
ProviderTableMeta.FILE_RICH_WORKSPACE)) {
|
||||
db.execSQL(ALTER_TABLE + ProviderTableMeta.FILE_TABLE_NAME +
|
||||
ADD_COLUMN + ProviderTableMeta.FILE_RICH_WORKSPACE + " TEXT ");
|
||||
}
|
||||
upgraded = true;
|
||||
db.setTransactionSuccessful();
|
||||
} finally {
|
||||
|
|
Loading…
Reference in a new issue