remove sqlite db
This commit is contained in:
parent
78c312f279
commit
da589dc787
3 changed files with 8 additions and 4 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -54,3 +54,6 @@ pids
|
||||||
|
|
||||||
# Diagnostic reports (https://nodejs.org/api/report.html)
|
# Diagnostic reports (https://nodejs.org/api/report.html)
|
||||||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
||||||
|
|
||||||
|
# Database
|
||||||
|
common-cents.db
|
||||||
BIN
common-cents.db
BIN
common-cents.db
Binary file not shown.
|
|
@ -12,11 +12,13 @@ import { SubCategory } from './sub-categories/entities/sub-category.entity';
|
||||||
import { ExpensesModule } from './expenses/expenses.module';
|
import { ExpensesModule } from './expenses/expenses.module';
|
||||||
import { Expense } from './expenses/entities/expense.entity';
|
import { Expense } from './expenses/entities/expense.entity';
|
||||||
|
|
||||||
|
const entities = [Merchant, Tag, Category, SubCategory, Expense];
|
||||||
|
|
||||||
const sqliteConfig: TypeOrmModuleOptions = {
|
const sqliteConfig: TypeOrmModuleOptions = {
|
||||||
synchronize: true, // typeorm -h (schema:sync)
|
synchronize: true,
|
||||||
type: 'sqlite',
|
type: 'sqlite',
|
||||||
database: 'common-cents.db',
|
database: 'common-cents.db',
|
||||||
entities: [Merchant, Tag, Category, SubCategory, Expense]
|
entities
|
||||||
}
|
}
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
|
|
@ -28,7 +30,6 @@ const sqliteConfig: TypeOrmModuleOptions = {
|
||||||
SubCategoriesModule,
|
SubCategoriesModule,
|
||||||
ExpensesModule
|
ExpensesModule
|
||||||
],
|
],
|
||||||
controllers: [AppController],
|
controllers: [AppController]
|
||||||
providers: []
|
|
||||||
})
|
})
|
||||||
export class AppModule { }
|
export class AppModule { }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue