Finished the States

This commit is contained in:
2021-04-06 09:59:38 +02:00
parent b64158732c
commit 0727e912af
20 changed files with 949 additions and 860 deletions

View File

@@ -6,9 +6,10 @@
*/
import Env from '@ioc:Adonis/Core/Env'
import { OrmConfig } from '@ioc:Adonis/Lucid/Orm'
import { DatabaseConfig } from '@ioc:Adonis/Lucid/Database'
const databaseConfig: DatabaseConfig = {
const databaseConfig: DatabaseConfig & { orm: Partial<OrmConfig> } = {
/*
|--------------------------------------------------------------------------
| Connection
@@ -42,14 +43,26 @@ const databaseConfig: DatabaseConfig = {
password: Env.get('MYSQL_PASSWORD', ''),
database: Env.get('MYSQL_DB_NAME'),
},
migrations: {
naturalSort: true,
},
healthCheck: false,
debug: false,
debug: false,
},
}
},
/*
|--------------------------------------------------------------------------
| ORM Configuration
|--------------------------------------------------------------------------
|
| Following are some of the configuration options to tweak the conventional
| settings of the ORM. For example:
|
| - Define a custom function to compute the default table name for a given model.
| - Or define a custom function to compute the primary key for a given model.
|
*/
orm: {
},
}
export default databaseConfig