├── .eslintrc.json ├── .gitignore ├── .npmignore ├── LICENSE.md ├── README.md ├── doc └── assets │ ├── repository-open-graph-template.png │ └── sequelize-logo-443x512.png ├── example ├── .env.sample ├── .sequelizerc ├── db │ ├── config.example.json │ ├── config.json │ ├── migrations │ │ └── 00000001-init.js │ └── models │ │ └── index.js ├── models │ ├── car.model.ts │ └── car_brand.model.ts ├── package-lock.json ├── package.json ├── practice.ts └── tsconfig.json ├── jest.config.js ├── package.json ├── src ├── constants.ts ├── index.ts └── utils │ ├── createMigrationTable.ts │ ├── getDiffActionsFromTables.ts │ ├── getLastMigrationState.ts │ ├── getMigration.ts │ ├── getTablesFromModels.ts │ ├── makeColumnName.ts │ ├── parseIndex.ts │ ├── removeCurrentRevisionMigrations.ts │ ├── reverseSequelizeColType.ts │ ├── reverseSequelizeDefValueType.ts │ ├── snakeCase.spec.ts │ ├── snakeCase.ts │ ├── sortActions.ts │ └── writeMigration.ts └── tsconfig.json /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/.npmignore -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/README.md -------------------------------------------------------------------------------- /doc/assets/repository-open-graph-template.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/doc/assets/repository-open-graph-template.png -------------------------------------------------------------------------------- /doc/assets/sequelize-logo-443x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/doc/assets/sequelize-logo-443x512.png -------------------------------------------------------------------------------- /example/.env.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/example/.env.sample -------------------------------------------------------------------------------- /example/.sequelizerc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/example/.sequelizerc -------------------------------------------------------------------------------- /example/db/config.example.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/example/db/config.example.json -------------------------------------------------------------------------------- /example/db/config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/example/db/config.json -------------------------------------------------------------------------------- /example/db/migrations/00000001-init.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/example/db/migrations/00000001-init.js -------------------------------------------------------------------------------- /example/db/models/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/example/db/models/index.js -------------------------------------------------------------------------------- /example/models/car.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/example/models/car.model.ts -------------------------------------------------------------------------------- /example/models/car_brand.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/example/models/car_brand.model.ts -------------------------------------------------------------------------------- /example/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/example/package-lock.json -------------------------------------------------------------------------------- /example/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/example/package.json -------------------------------------------------------------------------------- /example/practice.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/example/practice.ts -------------------------------------------------------------------------------- /example/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/example/tsconfig.json -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/package.json -------------------------------------------------------------------------------- /src/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/src/constants.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/utils/createMigrationTable.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/src/utils/createMigrationTable.ts -------------------------------------------------------------------------------- /src/utils/getDiffActionsFromTables.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/src/utils/getDiffActionsFromTables.ts -------------------------------------------------------------------------------- /src/utils/getLastMigrationState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/src/utils/getLastMigrationState.ts -------------------------------------------------------------------------------- /src/utils/getMigration.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/src/utils/getMigration.ts -------------------------------------------------------------------------------- /src/utils/getTablesFromModels.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/src/utils/getTablesFromModels.ts -------------------------------------------------------------------------------- /src/utils/makeColumnName.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/src/utils/makeColumnName.ts -------------------------------------------------------------------------------- /src/utils/parseIndex.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/src/utils/parseIndex.ts -------------------------------------------------------------------------------- /src/utils/removeCurrentRevisionMigrations.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/src/utils/removeCurrentRevisionMigrations.ts -------------------------------------------------------------------------------- /src/utils/reverseSequelizeColType.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/src/utils/reverseSequelizeColType.ts -------------------------------------------------------------------------------- /src/utils/reverseSequelizeDefValueType.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/src/utils/reverseSequelizeDefValueType.ts -------------------------------------------------------------------------------- /src/utils/snakeCase.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/src/utils/snakeCase.spec.ts -------------------------------------------------------------------------------- /src/utils/snakeCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/src/utils/snakeCase.ts -------------------------------------------------------------------------------- /src/utils/sortActions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/src/utils/sortActions.ts -------------------------------------------------------------------------------- /src/utils/writeMigration.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/src/utils/writeMigration.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmRoshani/sequelize-typescript-migration/HEAD/tsconfig.json --------------------------------------------------------------------------------