2025-06-29 14:35:33 +03:00
|
|
|
Address = "127.0.0.1";
|
2025-06-10 23:51:19 +03:00
|
|
|
Login = "bayselonarrend";
|
2025-06-29 14:35:33 +03:00
|
|
|
Password = "12we...";
|
2025-09-01 14:51:24 +03:00
|
|
|
Base = "testbase1";
|
2025-06-10 23:51:19 +03:00
|
|
|
|
2025-09-01 14:51:24 +03:00
|
|
|
TLS = True;
|
|
|
|
|
Port = 5432;
|
|
|
|
|
ConnectionString = OPI_PostgreSQL.GenerateConnectionString(Address, Base, Login, Password, Port);
|
2025-06-10 23:51:19 +03:00
|
|
|
|
2025-09-01 14:51:24 +03:00
|
|
|
If TLS Then
|
|
|
|
|
TLSSettings = OPI_PostgreSQL.GetTLSSettings(True);
|
|
|
|
|
Else
|
|
|
|
|
TLSSettings = Undefined;
|
|
|
|
|
EndIf;
|
2025-06-10 23:51:19 +03:00
|
|
|
|
2025-09-01 16:30:40 +03:00
|
|
|
Table = "testtable";
|
|
|
|
|
Name = "new_field";
|
2025-09-01 14:51:24 +03:00
|
|
|
|
|
|
|
|
Result = OPI_PostgreSQL.DeleteTableColumn(Table, Name, ConnectionString, TLSSettings);
|