diff options
Diffstat (limited to 'server/initializers/migrations/0115-account-avatar.ts')
-rw-r--r-- | server/initializers/migrations/0115-account-avatar.ts | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/server/initializers/migrations/0115-account-avatar.ts b/server/initializers/migrations/0115-account-avatar.ts deleted file mode 100644 index 604b6394a..000000000 --- a/server/initializers/migrations/0115-account-avatar.ts +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | import * as Sequelize from 'sequelize' | ||
2 | |||
3 | async function up (utils: { | ||
4 | transaction: Sequelize.Transaction | ||
5 | queryInterface: Sequelize.QueryInterface | ||
6 | sequelize: Sequelize.Sequelize | ||
7 | db: any | ||
8 | }): Promise<void> { | ||
9 | await utils.db.Avatar.sync() | ||
10 | |||
11 | const data = { | ||
12 | type: Sequelize.INTEGER, | ||
13 | allowNull: true, | ||
14 | references: { | ||
15 | model: 'Avatars', | ||
16 | key: 'id' | ||
17 | }, | ||
18 | onDelete: 'CASCADE' | ||
19 | } | ||
20 | await utils.queryInterface.addColumn('Accounts', 'avatarId', data) | ||
21 | } | ||
22 | |||
23 | function down (options) { | ||
24 | throw new Error('Not implemented.') | ||
25 | } | ||
26 | |||
27 | export { | ||
28 | up, | ||
29 | down | ||
30 | } | ||