aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/migrations/0115-account-avatar.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers/migrations/0115-account-avatar.ts')
-rw-r--r--server/initializers/migrations/0115-account-avatar.ts30
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 @@
1import * as Sequelize from 'sequelize'
2
3async 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
23function down (options) {
24 throw new Error('Not implemented.')
25}
26
27export {
28 up,
29 down
30}