-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from JPDovale/dev
Dev
- Loading branch information
Showing
67 changed files
with
11,140 additions
and
5,161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import fs from 'fs'; | ||
import path from 'node:path'; | ||
import webpackPaths from '../configs/webpack.paths'; | ||
|
||
export default function copyMigrations() { | ||
if ( | ||
!fs.existsSync(path.join(webpackPaths.srcPath, 'database', 'migrations')) | ||
) { | ||
throw new Error('Migrations of db does not prided '); | ||
} | ||
|
||
fs.cpSync( | ||
path.join(webpackPaths.srcPath, 'database', 'migrations'), | ||
path.join(webpackPaths.distMainPath, 'migrations'), | ||
{ recursive: true } | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
save-exact=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
## 0.0.1 | ||
|
||
## 0.1.0 | ||
|
||
### Minor Changes | ||
|
||
- Switing to sqlite 3 | ||
|
||
## 0.0.3 | ||
|
||
### Patch Changes | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { getDatabasePath } from '@config/files/getDatabasePath'; | ||
import type { Knex } from 'knex'; | ||
import path from 'path'; | ||
|
||
// Update with your config settings. | ||
|
||
const config: { [key: string]: Knex.Config } = { | ||
development: { | ||
client: 'sqlite3', | ||
connection: { | ||
filename: `${getDatabasePath()}/db.sqlite3`, | ||
database: 'magiscrita', | ||
}, | ||
migrations: { | ||
tableName: 'knex_migrations', | ||
directory: `${path.join(__dirname, 'src', 'database', 'migrations')}`, | ||
}, | ||
useNullAsDefault: true, | ||
}, | ||
}; | ||
|
||
module.exports = config; |
Oops, something went wrong.