Skip to content

Commit

Permalink
linting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sthuray committed Jun 15, 2024
1 parent 5bfbfaf commit 3f0ba72
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ import { Migration } from "../umzug";
const TABLE_NAME = "activities";

export const up: Migration = async ({ context: sequelize }) => {
await sequelize.getQueryInterface().createTable(TABLE_NAME, {
activity_id: {
type: DataType.INTEGER,
allowNull: false,
primaryKey: true,
autoIncrement: true,
},
activity_name: {
type: DataType.STRING,
allowNull: false,
}
});
await sequelize.getQueryInterface().createTable(TABLE_NAME, {
activity_id: {
type: DataType.INTEGER,
allowNull: false,
primaryKey: true,
autoIncrement: true,
},
activity_name: {
type: DataType.STRING,
allowNull: false,
},
});
};

export const down: Migration = async ({ context: sequelize }) => {
await sequelize.getQueryInterface().dropTable(TABLE_NAME);
};
await sequelize.getQueryInterface().dropTable(TABLE_NAME);
};
1 change: 0 additions & 1 deletion backend/typescript/models/activity.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Column, Model, Table } from "sequelize-typescript";

@Table({ tableName: "activities" })
export default class Activities extends Model {

@Column
activity_name!: string;
}

0 comments on commit 3f0ba72

Please sign in to comment.