Files
kami-parse-server/src
Vitaly Tomilov 7da4debbe0 Update PostgresStorageAdapter.js (#2087)
1. Deleting tables in a transaction, as opposed to just a task.
2. Added transaction where it was supposed to be. However, it is not enough, the logic is still broken there...

First, do not use `.catch` before `.then`. It is dangerous without good understanding how it actually works.

Check this out:
```js
        .catch(error => {
          if (error.code === PostgresRelationDoesNotExistError) {
            return this.createClass(className, {fields: {[fieldName]: type}}) // this gets into the following `.then`
          } else if (error.code === PostgresDuplicateColumnError) {
            // Column already exists, created by other request. Carry on to
            // See if it's the right type.
           
// this will get the following `.then` with `undefined` as the value

          } else {
            throw error;
          }
        })
```
2016-06-17 00:04:58 -07:00
..
2016-03-19 13:27:37 -04:00
2016-02-09 10:23:55 +01:00
2016-06-10 20:27:21 -07:00
2016-06-10 20:27:21 -07:00
2016-05-31 13:42:56 -07:00
2016-04-11 11:27:55 -07:00
2016-06-10 20:27:21 -07:00
2016-06-15 13:11:51 -07:00
2016-06-15 13:11:51 -07:00
2016-06-16 15:39:05 -07:00
2016-06-10 20:27:21 -07:00