new release
This commit is contained in:
parent
e6e9d77a70
commit
e794c44dd6
5 changed files with 4 additions and 6 deletions
|
@ -9,8 +9,8 @@ android {
|
||||||
applicationId "asgardius.page.s3manager"
|
applicationId "asgardius.page.s3manager"
|
||||||
minSdk 24
|
minSdk 24
|
||||||
targetSdk 33
|
targetSdk 33
|
||||||
versionCode 17
|
versionCode 18
|
||||||
versionName "0.1.15"
|
versionName "0.1.16"
|
||||||
setProperty("archivesBaseName", "s3-manager-$versionName")
|
setProperty("archivesBaseName", "s3-manager-$versionName")
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
|
|
|
@ -111,7 +111,6 @@ public class MainActivity extends AppCompatActivity {
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
db.execSQL("ALTER TABLE account add column pdfendpoint text");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -149,7 +148,6 @@ public class MainActivity extends AppCompatActivity {
|
||||||
//Toast.makeText(MainActivity.this, "This feature is not yet implemented", Toast.LENGTH_SHORT).show();
|
//Toast.makeText(MainActivity.this, "This feature is not yet implemented", Toast.LENGTH_SHORT).show();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
db.execSQL("ALTER TABLE account add column pdfendpoint text");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (menuItem.getTitle() == getResources().getString(R.string.accountdel_button)) {
|
else if (menuItem.getTitle() == getResources().getString(R.string.accountdel_button)) {
|
||||||
|
|
|
@ -6,7 +6,7 @@ import android.database.sqlite.SQLiteOpenHelper;
|
||||||
|
|
||||||
public class MyDbHelper extends SQLiteOpenHelper {
|
public class MyDbHelper extends SQLiteOpenHelper {
|
||||||
private static final String atcreate = "CREATE TABLE IF NOT EXISTS account(id text UNIQUE, endpoint text, username text, password text, region text, pdfendpoint text)";
|
private static final String atcreate = "CREATE TABLE IF NOT EXISTS account(id text UNIQUE, endpoint text, username text, password text, region text, pdfendpoint text)";
|
||||||
private static final String atupgrade = "ALTER TABLE account add column pdfendpoint text";
|
//private static final String upgrade = "ALTER TABLE account add column pdfendpoint text";
|
||||||
private static final int DATABASE_VERSION = 1;
|
private static final int DATABASE_VERSION = 1;
|
||||||
private static final String dbname = "accounts.sqlite3";
|
private static final String dbname = "accounts.sqlite3";
|
||||||
private static final int dbversion = 3;
|
private static final int dbversion = 3;
|
||||||
|
@ -19,6 +19,6 @@ public class MyDbHelper extends SQLiteOpenHelper {
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
|
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
|
||||||
db.execSQL(atupgrade);
|
//db.execSQL(upgrade);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Before Width: | Height: | Size: 7 KiB After Width: | Height: | Size: 7 KiB |
Loading…
Reference in a new issue