Remove support for Google Spanner database. (#105846)

* Remove support for Google Spanner database.
This commit is contained in:
Peter Štibraný
2025-05-23 11:35:59 +02:00
committed by GitHub
parent 9769871a88
commit c4d3eb1cd0
50 changed files with 26 additions and 1265 deletions
@@ -144,7 +144,7 @@ func (s *SSOSettingsStore) Delete(ctx context.Context, provider string) error {
existing.Updated = time.Now().UTC()
existing.IsDeleted = true
// We must explicitly omit ID column from updates, because some databases (e.g. Spanner) don't allow updating
// We must explicitly omit ID column from updates, because some databases don't allow updating
// primary key. Xorm ignores autoincrement columns during updates, but since ID column here is a string,
// it's not ignored by default.
_, err = sess.ID(existing.ID).Omit(idColumn).MustCols(updatedColumn, isDeletedColumn).Update(existing)