mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-17 07:23:21 +01:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b57e85f06c | ||
|
|
fbe4503f6c | ||
|
|
a1a901fd43 | ||
|
|
899013b284 |
@@ -23,8 +23,8 @@ plugins {
|
|||||||
apply(from = "static-ips.gradle.kts")
|
apply(from = "static-ips.gradle.kts")
|
||||||
|
|
||||||
val canonicalVersionCode = 1599
|
val canonicalVersionCode = 1599
|
||||||
val canonicalVersionName = "7.60.2"
|
val canonicalVersionName = "7.60.4"
|
||||||
val currentHotfixVersion = 0
|
val currentHotfixVersion = 2
|
||||||
val maxHotfixVersions = 100
|
val maxHotfixVersions = 100
|
||||||
|
|
||||||
val keystores: Map<String, Properties?> = mapOf("debug" to loadKeystoreProperties("keystore.debug.properties"))
|
val keystores: Map<String, Properties?> = mapOf("debug" to loadKeystoreProperties("keystore.debug.properties"))
|
||||||
|
|||||||
@@ -147,7 +147,6 @@ import org.thoughtcrime.securesms.database.helpers.migration.V289_AddQuoteTarget
|
|||||||
import org.thoughtcrime.securesms.database.helpers.migration.V290_AddArchiveThumbnailTransferStateColumn
|
import org.thoughtcrime.securesms.database.helpers.migration.V290_AddArchiveThumbnailTransferStateColumn
|
||||||
import org.thoughtcrime.securesms.database.helpers.migration.V291_NullOutRemoteKeyIfEmpty
|
import org.thoughtcrime.securesms.database.helpers.migration.V291_NullOutRemoteKeyIfEmpty
|
||||||
import org.thoughtcrime.securesms.database.helpers.migration.V292_AddPollTables
|
import org.thoughtcrime.securesms.database.helpers.migration.V292_AddPollTables
|
||||||
import org.thoughtcrime.securesms.database.helpers.migration.V293_LastResortKeyTupleTableMigration
|
|
||||||
import org.thoughtcrime.securesms.database.helpers.migration.V294_RemoveLastResortKeyTupleColumnConstraintMigration
|
import org.thoughtcrime.securesms.database.helpers.migration.V294_RemoveLastResortKeyTupleColumnConstraintMigration
|
||||||
import org.thoughtcrime.securesms.database.helpers.migration.V295_AddLastRestoreKeyTypeTableIfMissingMigration
|
import org.thoughtcrime.securesms.database.helpers.migration.V295_AddLastRestoreKeyTypeTableIfMissingMigration
|
||||||
import org.thoughtcrime.securesms.database.SQLiteDatabase as SignalSqliteDatabase
|
import org.thoughtcrime.securesms.database.SQLiteDatabase as SignalSqliteDatabase
|
||||||
@@ -303,7 +302,7 @@ object SignalDatabaseMigrations {
|
|||||||
290 to V290_AddArchiveThumbnailTransferStateColumn,
|
290 to V290_AddArchiveThumbnailTransferStateColumn,
|
||||||
291 to V291_NullOutRemoteKeyIfEmpty,
|
291 to V291_NullOutRemoteKeyIfEmpty,
|
||||||
292 to V292_AddPollTables,
|
292 to V292_AddPollTables,
|
||||||
293 to V293_LastResortKeyTupleTableMigration,
|
// 293 to V293_LastResortKeyTupleTableMigration, - removed due to crashing on some devices.
|
||||||
294 to V294_RemoveLastResortKeyTupleColumnConstraintMigration,
|
294 to V294_RemoveLastResortKeyTupleColumnConstraintMigration,
|
||||||
295 to V295_AddLastRestoreKeyTypeTableIfMissingMigration
|
295 to V295_AddLastRestoreKeyTypeTableIfMissingMigration
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,29 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2025 Signal Messenger, LLC
|
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
|
||||||
*/
|
|
||||||
|
|
||||||
package org.thoughtcrime.securesms.database.helpers.migration
|
|
||||||
|
|
||||||
import android.app.Application
|
|
||||||
import org.thoughtcrime.securesms.database.SQLiteDatabase
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates the LastResortKeyTuple table.
|
|
||||||
*/
|
|
||||||
@Suppress("ClassName")
|
|
||||||
object V293_LastResortKeyTupleTableMigration : SignalDatabaseMigration {
|
|
||||||
override fun migrate(context: Application, db: SQLiteDatabase, oldVersion: Int, newVersion: Int) {
|
|
||||||
db.execSQL(
|
|
||||||
"""
|
|
||||||
CREATE TABLE last_resort_key_tuple (
|
|
||||||
_id INTEGER PRIMARY KEY,
|
|
||||||
kyber_prekey_id INTEGER NOT NULL UNIQUE REFERENCES kyber_prekey (_id) ON DELETE CASCADE,
|
|
||||||
signed_key_id INTEGER NOT NULL,
|
|
||||||
public_key BLOB NOT NULL,
|
|
||||||
UNIQUE(kyber_prekey_id, signed_key_id, public_key)
|
|
||||||
)
|
|
||||||
""".trimIndent()
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -14,7 +14,7 @@ import org.thoughtcrime.securesms.database.SQLiteDatabase
|
|||||||
@Suppress("ClassName")
|
@Suppress("ClassName")
|
||||||
object V294_RemoveLastResortKeyTupleColumnConstraintMigration : SignalDatabaseMigration {
|
object V294_RemoveLastResortKeyTupleColumnConstraintMigration : SignalDatabaseMigration {
|
||||||
override fun migrate(context: Application, db: SQLiteDatabase, oldVersion: Int, newVersion: Int) {
|
override fun migrate(context: Application, db: SQLiteDatabase, oldVersion: Int, newVersion: Int) {
|
||||||
db.execSQL("DROP TABLE last_resort_key_tuple")
|
db.execSQL("DROP TABLE IF EXISTS last_resort_key_tuple")
|
||||||
|
|
||||||
db.execSQL(
|
db.execSQL(
|
||||||
"""
|
"""
|
||||||
@@ -25,7 +25,7 @@ object V294_RemoveLastResortKeyTupleColumnConstraintMigration : SignalDatabaseMi
|
|||||||
public_key BLOB NOT NULL,
|
public_key BLOB NOT NULL,
|
||||||
UNIQUE(kyber_prekey_id, signed_key_id, public_key)
|
UNIQUE(kyber_prekey_id, signed_key_id, public_key)
|
||||||
)
|
)
|
||||||
""".trimIndent()
|
"""
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ object V295_AddLastRestoreKeyTypeTableIfMissingMigration : SignalDatabaseMigrati
|
|||||||
public_key BLOB NOT NULL,
|
public_key BLOB NOT NULL,
|
||||||
UNIQUE(kyber_prekey_id, signed_key_id, public_key)
|
UNIQUE(kyber_prekey_id, signed_key_id, public_key)
|
||||||
)
|
)
|
||||||
""".trimIndent()
|
"""
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user