mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-14 14:25:24 +01:00
#2158 Remove unneeded SQLite migration of column length
- SQLite always returns a column length of 2,000,000 as they don't really have a column length restriction, cf. https://stackoverflow.com/questions/35413956/trying-to-get-the-column-size-of-a-column-using-jdbc-metadata
This commit is contained in:
parent
7bd3455427
commit
e92721e597
@ -45,9 +45,8 @@ class SqLiteMigrater {
|
||||
* @return true if a migration is necessary, false otherwise
|
||||
*/
|
||||
static boolean isMigrationRequired(DatabaseMetaData metaData, String tableName, Columns col) throws SQLException {
|
||||
return SqlDataSourceUtils.getColumnSize(metaData, tableName, col.TOTP_KEY) != 32
|
||||
|| (SqlDataSourceUtils.isNotNullColumn(metaData, tableName, col.LAST_IP)
|
||||
&& SqlDataSourceUtils.getColumnDefaultValue(metaData, tableName, col.LAST_IP) == null);
|
||||
return SqlDataSourceUtils.isNotNullColumn(metaData, tableName, col.LAST_IP)
|
||||
&& SqlDataSourceUtils.getColumnDefaultValue(metaData, tableName, col.LAST_IP) == null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user