Commit fa78f894e5e7dc70c0551d6d3f19c95de30b7885

Authored by Eric Fernandez
0 parents
Exists in master

first commit

File was created 1 /node_modules
2 /knexfile.js
3 /package-lock.json
File was created 1 #MIGRACIÓN DE SISTEMA BACKOFFICE MEDIANTE SCRIPTS
2
3 Pasos a seguir instalación y primera migración:
4
5 - Una vez bajado el proyecto correr el siguiente comando en consola si es la primera ve(se debe tener instalado node):
6 > npm install -g knex && npm install && knex init
7 - Una vez ejecutado el comando se ha creado el archivo `knexfile.js`, configurar la base de datos deseada.
8 - En consola correr el comando
9 > knex migrate:latest --env nombreConfiguracion
10
11
File was created 1 // Update with your config settings.
2
3 module.exports = {
4
5 estacion: {
6 client: 'msslq',
7 connection: {
8 host: 'iphost',
9 database: 'my_db',
10 user: 'username',
11 password: 'password'
12 }
13 }
14 };
15
File was created 1 {
2 "name": "backoffice",
3 "version": "1.0.0",
4 "description": "Paquetes de migraciones",
5 "main": "knexfile.js",
6 "dependencies": {
7 "knex": "^0.18.2",
8 "mssql": "^5.1.0"
9 },
10 "devDependencies": {},
11 "scripts": {
12 "test": "echo \"Error: no test specified\" && exit 1"
13 },
14 "repository": {
15 "type": "git",
16 "url": "http://git.focasoftware.com/deploy/backoffice.git"
17 },
18 "author": "Foca Software",
19 "license": "ISC"
20 }
21