projects
/
oweals
/
peertube.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
findById -> findByPk
[oweals/peertube.git]
/
server
/
initializers
/
migrations
/
0005-email-pod.ts
diff --git
a/server/initializers/migrations/0005-email-pod.ts
b/server/initializers/migrations/0005-email-pod.ts
index ceefaad4a5f1b059cb20c03ad3ae0eb1e6773c98..c34a122559898c25f8da2b3cd5f1b6322f2d822a 100644
(file)
--- a/
server/initializers/migrations/0005-email-pod.ts
+++ b/
server/initializers/migrations/0005-email-pod.ts
@@
-1,5
+1,6
@@
import * as Sequelize from 'sequelize'
import * as Promise from 'bluebird'
import * as Sequelize from 'sequelize'
import * as Promise from 'bluebird'
+import { Migration } from '../../models/migrations'
function up (utils: {
transaction: Sequelize.Transaction,
function up (utils: {
transaction: Sequelize.Transaction,
@@
-12,7
+13,7
@@
function up (utils: {
type: Sequelize.STRING(400),
allowNull: false,
defaultValue: ''
type: Sequelize.STRING(400),
allowNull: false,
defaultValue: ''
- }
+ }
as Migration.String
return q.addColumn('Pods', 'email', data)
.then(() => {
return q.addColumn('Pods', 'email', data)
.then(() => {
@@
-26,7
+27,7
@@
function up (utils: {
})
}
})
}
-function down (options
, callback
) {
+function down (options) {
throw new Error('Not implemented.')
}
throw new Error('Not implemented.')
}