2017 © Pedro Peláez
 

library db-tools

Database migration related tools

image

g4/db-tools

Database migration related tools

  • Friday, January 27, 2017
  • by g4code
  • Repository
  • 13 Watchers
  • 1 Stars
  • 1,121 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 18 % Grown

The README.md

db-tools

Usage, (*1)

Inside project folder, it's required to create this set of folders, (*2)

db/
  dumps/ 
  logs/
  migrations/
    default/

Root folder may be configured with parameter ruckusing_dir., (*3)

Command line has some required options:, (*4)

 ini - Relative path to application.ini which contain's database configuration files
 env - Environment which will be read from application.ini
 sql-dump - Relative path to SQL file that needs to be imported
 ruckusing_dir - dir name of where database and migration related files are

Example:, (*5)

php vendor/g4/db-tools/bin/tools.php import:data env=$(env) sql-dump=${ND_API_SQL_DUMP} ini=${APPLICATION_INI} ruckusing_dir=${RUCKUSING_DIR}
php vendor/g4/db-tools/bin/ruckus.php db:status env=$(env) ini=${APPLICATION_INI} ruckusing_dir=${RUCKUSING_DIR}

This variables should be defined inside Makefile like:, (*6)

APPLICATION_INI  = application/setup/config/application.ini
RUCKUSING_DIR    = db
ND_API_SQL_DUMP  = $(RUCKUSING_DIR)/dumps/nd_api_v1.0.0.sql
GEONAME_SQL_DUMP = $(RUCKUSING_DIR)/dumps/geoname.compact.sql

Import db-tools makefile targets into project's Makefile with, (*7)

include vendor/g4/db-tools/dbtools.mk

The Versions

27/01 2017

dev-master

9999999-dev

Database migration related tools

  Sources   Download

MIT

The Requires

 

by Drasko Gomboc
by Dejan Samardzija
by Ivan Krickovic
by Petar Pavlovic

g4code db-tools

27/01 2017

0.1.2

0.1.2.0

Database migration related tools

  Sources   Download

MIT

The Requires

 

by Drasko Gomboc
by Dejan Samardzija
by Ivan Krickovic

g4code db-tools

25/01 2017

0.1.1

0.1.1.0

Database migration related tools

  Sources   Download

MIT

The Requires

 

by Drasko Gomboc
by Dejan Samardzija
by Ivan Krickovic

g4code db-tools

25/01 2017

0.1.0

0.1.0.0

Database migration related tools

  Sources   Download

MIT

The Requires

 

by Drasko Gomboc
by Dejan Samardzija
by Ivan Krickovic

g4code db-tools