/
CanSeeThePain
/
MqlBotServer
Обзор
Документация
Войти
/
CanSeeThePain
/
MqlBotServer
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
SQL/ToVer1_1.sql
31 строка
1 KB
Sergey Tkachenko
Сборка 55. * Проект перенесён на репозиторий git и gitverse.ru: https://gitverse.ru/CanSeeThePain/MqlBotServer Код взят из репозитория Mercurial, поэтому предыдущих версий в git-репозитории нет.
24 июл 2025, 16:15
24 июл 2025, 16:15
3e68c8f
Код
Авторство
О чём код?
-- Обновление БД MqlBotServer до версии 1.1 use ReplaceWithYouName; go -- Обновляем во всех таблицах все поля, в которых может быть цена, до decimal(18, 5). alter table dbo.OrderState alter column OpenPrice decimal(18, 5) not null; alter table dbo.OrderState alter column SL decimal(18, 5) not null; alter table dbo.OrderState alter column TP decimal(18, 5) not null; alter table dbo.OrderState alter column ClosePrice decimal(18, 5) null; go alter table dbo.OrdersToTrans alter column OpenPrice decimal(18, 5) not null; alter table dbo.OrdersToTrans alter column SL decimal(18, 5) null; alter table dbo.OrdersToTrans alter column TP decimal(18, 5) null; alter table dbo.OrdersToTrans alter column RemovePrice decimal(18, 5) null; go alter table dbo.OrdersAllocation alter column OpenPrice decimal(18,5) not null; alter table dbo.OrdersAllocation alter column SL decimal(18, 5) null; alter table dbo.OrdersAllocation alter column TP decimal(18, 5) null; alter table dbo.OrdersAllocation alter column RemovePrice decimal(18, 5) null; go -- Обновление версии БД: update dbo.VersionInfo set VerMajor = 1, VerBuild = 1 where id = 1; go