new release

This commit is contained in:
Page Asgardius 2022-09-25 05:08:15 -07:00
parent e6e9d77a70
commit e794c44dd6
5 changed files with 4 additions and 6 deletions

View file

@ -9,8 +9,8 @@ android {
applicationId "asgardius.page.s3manager"
minSdk 24
targetSdk 33
versionCode 17
versionName "0.1.15"
versionCode 18
versionName "0.1.16"
setProperty("archivesBaseName", "s3-manager-$versionName")
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

View file

@ -111,7 +111,6 @@ public class MainActivity extends AppCompatActivity {
}
} catch (Exception e) {
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();
} catch (Exception e) {
e.printStackTrace();
db.execSQL("ALTER TABLE account add column pdfendpoint text");
}
}
else if (menuItem.getTitle() == getResources().getString(R.string.accountdel_button)) {

View file

@ -6,7 +6,7 @@ import android.database.sqlite.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 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 String dbname = "accounts.sqlite3";
private static final int dbversion = 3;
@ -19,6 +19,6 @@ public class MyDbHelper extends SQLiteOpenHelper {
}
@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
db.execSQL(atupgrade);
//db.execSQL(upgrade);
}
}

View file

Before

Width:  |  Height:  |  Size: 7 KiB

After

Width:  |  Height:  |  Size: 7 KiB