-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ [Release] Release Local login/signup (#625)
Co-authored-by: hannkim <skqkdldhf98@gmail.com> Co-authored-by: Jisu Kim <hellojs242@gmail.com>
- Loading branch information
1 parent
ac99f39
commit 0a49002
Showing
44 changed files
with
700 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { MigrationInterface, QueryRunner } from 'typeorm'; | ||
|
||
export class Migration1692710671031 implements MigrationInterface { | ||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
// create column at auth table | ||
await queryRunner.query(`ALTER TABLE "auth" ADD COLUMN password varchar(64)`); | ||
await queryRunner.query(`ALTER TABLE "auth" ADD COLUMN account_id varchar(32) UNIQUE`); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
// drop column from auth table | ||
await queryRunner.query(`ALTER TABLE "auth" DROP COLUMN account_id`); | ||
await queryRunner.query(`ALTER TABLE "auth" DROP COLUMN password`); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { config } from 'dotenv'; | ||
import { DataSource, DataSourceOptions } from 'typeorm'; | ||
import { SnakeNamingStrategy } from 'typeorm-naming-strategies'; | ||
|
||
import { Auth } from '../../src/entity/auth.entity'; | ||
|
||
import { Migration1692710671031 } from './1692710671031-migration'; | ||
|
||
config({ path: '.env.development' }); | ||
if (process.env.NODE_ENV === 'production') { | ||
config(); | ||
} | ||
|
||
const auth1692710671031 = Migration1692710671031; | ||
|
||
export const options: DataSourceOptions = { | ||
type: 'postgres', | ||
host: process.env.POSTGRES_HOST, | ||
port: Number(process.env.POSTGRES_PORT), | ||
database: process.env.POSTGRES_DB, | ||
username: process.env.POSTGRES_USER, | ||
password: process.env.POSTGRES_PASSWORD, | ||
synchronize: false, | ||
logging: true, | ||
entities: [Auth], | ||
namingStrategy: new SnakeNamingStrategy(), | ||
migrations: [auth1692710671031], | ||
}; | ||
|
||
const dataSource = new DataSource(options); | ||
|
||
export default dataSource; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...d/seeding/factory/game-history.factory.ts → ...b/seeding/factory/game-history.factory.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
12 changes: 6 additions & 6 deletions
12
backend/seeding/seeder/message.seeder.ts → backend/db/seeding/seeder/message.seeder.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.