@elchinabilov/nestjs-media-library 1.0.2 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -59,12 +59,20 @@ export class AppModule {}
|
|
|
59
59
|
### 2. Run Migration
|
|
60
60
|
|
|
61
61
|
```typescript
|
|
62
|
+
// typeorm.config.ts
|
|
62
63
|
// In your TypeORM config
|
|
63
|
-
import {
|
|
64
|
+
import {
|
|
65
|
+
CreateMediaTable1703000000000,
|
|
66
|
+
Media,
|
|
67
|
+
} from "@elchinabilov/nestjs-media-library"; // add this line
|
|
64
68
|
|
|
65
69
|
export const dataSource = new DataSource({
|
|
66
70
|
// ... your config
|
|
67
|
-
|
|
71
|
+
entities: [
|
|
72
|
+
__dirname + "/../**/*.entity{.ts,.js}",
|
|
73
|
+
Media, // add this line
|
|
74
|
+
],
|
|
75
|
+
migrations: [CreateMediaTable1703000000000], // add this line
|
|
68
76
|
});
|
|
69
77
|
```
|
|
70
78
|
|
package/package.json
CHANGED