config/database: update queries to improve reads/writes (#19975)

* config/database: update queries to improve reads/writes

* reflect review comments

* move tx initialization

* add comments and fix psql migration

* fix spelling

* refactor

* add more descriptive comment
Этот коммит содержится в:
Ibrahim Serdar Acikgoz
2022-04-14 21:43:14 +03:00
коммит произвёл GitHub
родитель 99f02fe96e
Коммит 92e647f1b9
5 изменённых файлов: 86 добавлений и 21 удалений

Просмотреть файл

@@ -0,0 +1 @@
ALTER TABLE Configurations DROP COLUMN IF EXISTS SHA;

Просмотреть файл

@@ -0,0 +1 @@
ALTER TABLE Configurations ADD COLUMN IF NOT EXISTS SHA CHAR(64) DEFAULT '';