Browse Source

core: Rename config and migration table name

This commit forces name of tables used for migrations.
Also rename config.json to config.json.sample
tags/v0.0.41
Kamil Biały 2 years ago
parent
commit
ed97be6ece
2 changed files with 5 additions and 4 deletions
  1. +0
    -4
      pulsar/config/config.json.sample
  2. +5
    -0
      schema/config.js

pulsar/config/config.json → pulsar/config/config.json.sample View File

@@ -30,10 +30,6 @@
"password": "",
"database": "pluto",
"port": 3306,
"migrationStorage": "sequelize",
"migrationStorageTableName": "sequelize_meta",
"seederStorage": "sequelize",
"seederStorageTableName": "sequelize_seed",
"logging": false,
"benchmark": false
}

+ 5
- 0
schema/config.js View File

@@ -25,6 +25,11 @@ if( !("database" in config) )
"database": "pleiad.sqlite"
};

config.database.migrationStorage = "sequelize";
config.database.seederStorage = "sequelize";
config.database.migrationStorageTableName = "sequelize_meta";
config.database.seederStorageTableName = "sequelize_seed";

module.exports = {
development: config.database,
test: config.database,

Loading…
Cancel
Save