mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-24 03:57:06 -04:00
feat: add seeding
This allows us to get a pre-populated database to develop new functionality Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
539ea7e33b
commit
4790705f0d
9 changed files with 333 additions and 209 deletions
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
import type { Knex } from 'knex';
|
||||
|
||||
/** This is used for the Knex CLI to create migrations during development */
|
||||
/** This is used for the Knex CLI to create migrations and a seeded database during development */
|
||||
const config: { [key: string]: Knex.Config } = {
|
||||
development: {
|
||||
client: 'better-sqlite3',
|
||||
|
@ -15,6 +15,9 @@ const config: { [key: string]: Knex.Config } = {
|
|||
migrations: {
|
||||
directory: './src/database/migrations',
|
||||
},
|
||||
seeds: {
|
||||
directory: './src/database/seeds',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue