낭중지추
  • 홈
  • 태그
  • 방명록
    • 전체 (36)
      • Development (35)
        • Git (0)
        • Nginx (1)
        • Docker (1)
        • Algorithm (2)
        • React (1)
        • Architecture (1)
        • Javascript & Typescript (3)
        • NestJS (5)
        • Computer Science (0)
        • Node (1)
        • Etc (3)
        • Sequelize (1)
        • TypeORM (1)
        • SQL (4)
        • MongoDB (2)
        • MySQL (3)
        • PostgreSQL (1)
        • Java (4)
        • Blockchain (1)
      • 투자 (1)
        • 주식 (1)
      • 생각정리 (0)
        • 도서 (0)
        • 끄적끄적 (0)
  • 글작성
  • 방명록
  • 환경설정
  • 메뉴 닫기
Migration 검색 결과
2 개의 검색 결과가 있습니다.
Development/NestJS

NestJS + TypeORM + Migration 설정

src/database/database.service.ts import { ConfigService } from '@nestjs/config'; import { TypeOrmModuleOptions } from '@nestjs/typeorm'; export class DataBaseService { constructor(private config: ConfigService) {} public getTypeOrmConfig(): TypeOrmModuleOptions { return { type: 'mariadb', host: this.config.get('DB_HOST'), port: +this.config.get('DB_PORT'), username: this.config.get('DB_USERNAME'..

2021. 2. 1. 22:29
Development/Sequelize

Sequelize-CLI 명령어 정리

아래의 명령어들을 원할하게 실행하기 위해서 Sequelize CLI 의 global 설치 권장. Model 생성 sequelize model:generate --name user --attributes name:string Migration 생성 sequelize migration:generate --name create-user-table Migration 실행 sequelize db:migrate Migration 전체 실행 sequelize db:migrate:all 바로 전 Migration 취소 하기 sequelize db:migrate:undo

2021. 1. 7. 12:20
  • «
  • 1
  • »

공지사항

전체 카테고리

  • 전체 (36)
    • Development (35)
      • Git (0)
      • Nginx (1)
      • Docker (1)
      • Algorithm (2)
      • React (1)
      • Architecture (1)
      • Javascript & Typescript (3)
      • NestJS (5)
      • Computer Science (0)
      • Node (1)
      • Etc (3)
      • Sequelize (1)
      • TypeORM (1)
      • SQL (4)
      • MongoDB (2)
      • MySQL (3)
      • PostgreSQL (1)
      • Java (4)
      • Blockchain (1)
    • 투자 (1)
      • 주식 (1)
    • 생각정리 (0)
      • 도서 (0)
      • 끄적끄적 (0)
  • 최근 글
  • 최근 댓글

최근 글

최근댓글

태그

  • #NestJS
  • #MySQL
  • #typeorm
  • #solid
  • #Big Sur
  • #Migration
  • #OOP
  • #Spring
  • #객체지향
  • #TypeScript
더보기+

전체 방문자

오늘
어제
전체

블로그 인기글

Powered by Privatenote/라이프코리아 Copyright © 낭중지추 All rights reserved. TistoryWhaleSkin3.4

티스토리툴바