Skip to content

Commit

Permalink
adding data migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
maycon-mello committed Aug 8, 2023
1 parent 26422f8 commit 81deef5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/data-store/1691497790337-migration1.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { MigrationInterface, QueryRunner } from "typeorm"

export class Migration11691497790337 implements MigrationInterface {

public async up(queryRunner: QueryRunner): Promise<void> {
}

public async down(queryRunner: QueryRunner): Promise<void> {
}

}
6 changes: 6 additions & 0 deletions packages/data-store/src/migrations-data-source.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import {getDataSource} from './helpers';

export default getDataSource({
dbType: 'sqlite',
databasePath: 'data-store.sqlite',
});

0 comments on commit 81deef5

Please sign in to comment.