Skip to content

Commit

Permalink
fix(core.gbapp): Database changes and fix in .gblib load.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Jul 19, 2020
1 parent 8da3ed5 commit 4ba3db7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 18 deletions.
23 changes: 8 additions & 15 deletions DATABASE-CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@


# 1.7.6
# 2.0.0

``` SQL

ALTER TABLE dbo.GuaribasUser ADD
agentSystemId nvarchar(16) NULL,
agentMode nvarchar(16) NULL,
Expand All @@ -17,22 +19,14 @@ GO
ALTER TABLE [dbo].[GuaribasUser] DROP COLUMN [currentBotId]
GO

```


# 1.7.7
``` SQL
ALTER TABLE [dbo].[GuaribasInstance] DROP COLUMN [authenticatorClientId]
GO

ALTER TABLE [dbo].[GuaribasInstance] DROP COLUMN [authenticatorClientSecret]
GO


```

# 1.7.8
``` SQL
ALTER TABLE dbo.GuaribasUser ADD
locale nvarchar(5) NULL
GO
Expand All @@ -43,27 +37,26 @@ ALTER TABLE dbo.GuaribasInstance ADD
translatorEndpoint nvarchar(64) NULL
GO

# 1.7.9

ALTER TABLE dbo.GuaribasInstance ADD
activationCode nvarchar(16) NULL
GO

#

ALTER TABLE dbo.GuaribasInstance ADD
params nvarchar(4000) NULL
GO

#

ALTER TABLE dbo.GuaribasInstance ADD
state nvarchar(16) NULL
GO
UPDATE dbo.GuaribasInstance SET state= 'active'

#
# 2.0.3

``` SQL
ALTER TABLE dbo.GuaribasPackage ADD
params custom(512) NULL
GO
```
8 changes: 5 additions & 3 deletions packages/core.gbapp/services/GBMinService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -517,9 +517,11 @@ export class GBMinService {
await p.loadBot(min);
if (p.getDialogs !== undefined) {
const dialogs = await p.getDialogs(min);
dialogs.forEach(dialog => {
min.dialogs.add(new WaterfallDialog(dialog.id, dialog.waterfall));
});
if (dialogs!== undefined){
dialogs.forEach(dialog => {
min.dialogs.add(new WaterfallDialog(dialog.id, dialog.waterfall));
});
}
}
});

Expand Down

0 comments on commit 4ba3db7

Please sign in to comment.