GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - samettemizer/php-migration: a mini mysql migration tool for pure -standalone- apps.

BranchesTags
Open more actions menu

Latest commit

 

History

10 Commits
10 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 
phpunit.xml.dist
phpunit.xml.dist
 
 

Repository files navigation

php-migration

a MySQL migration tool for framework-free PHP applications.

installation

you can add this package dependency to your project using composer:

composer require stemizer/php-migration

if you only need this package during development:

composer require --dev stemizer/php-migration

usage example

/**
 * pdo instance
 */
$instance = new PDO(args);

/**
 * example migration scripts, executed in natural order of file names :
 * 0-create-tbl-foo.sql
 * 1-modify-tbl-foo.sql
 * 2-another-migration.sql
 * 2-foo-new-fields.sql
 * 3-foo-new-index.sql
 * ...
 * 9-foo-new-index-y.sql
 * 10-foo-new-index-z.sql
 */
$scripts_dir = '/var/www/myproject/any/path';

/**
 * no output
 */
$migration = new YD\Migration($instance, $scripts_dir);
$migration->run();

tests

composer install
vendor/bin/phpunit

About

a mini mysql migration tool for pure -standalone- apps.

Topics

migrationpure-php

Resources

Readme
MIT license
Activity

Stars

3 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.