Giter VIP home page Giter VIP logo

cakephp-yaml-migrations-and-fixtures's Introduction

WHAT IS THIS?
This package cointains migrations and fixtures libraries to be used with the CakePHP framework. It does not require any
external packages except for the CakePHP framework and the SPYC class (included in this package but *not* authored by me)

HOW TO USE?
Just put all files ( except for this README ) in your CakePHP vendors folder. 

If you want to use the API only, simply include the classes in your code ( App::Import('vendor', 'migrations' ) and/or 
App::Import('vendor', 'fixtures' ) ). For further details, please reference to the docs of the classes.

To use the migrations shell, use your cake console - type ./cake migrate help for details.

AUTHOR
Georgi Momchilov <gmomchilov at gmail dot com>

cakephp-yaml-migrations-and-fixtures's People

Contributors

gmomchilov avatar jmhobbs avatar otake84 avatar pacifists avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

dalpo smileart

cakephp-yaml-migrations-and-fixtures's Issues

query task does not work

UP:
query:
myquery: UPDATE x SET y='z';

Looks like it was assigning the task with an array for SQL. The cake dbo's don't handle that well, so it errors out. This fix is live and in production for us, so go crazy and update.

Patch to fix:

Index: migrations.php

--- migrations.php (revision 25)
+++ migrations.php (working copy)

@@ -154,7 +154,7 @@
$this->aTasks[$sDirection][] = $this->drop_field( $sName, $sField );
}
elseif( $sAction == 'query' || $sAction == 'queries'){

  •                    $this->aTasks[$sDirection][] = $aElement;
    
  •                    $this->aTasks[$sDirection][] = $this->query($aProperties);
                 }
             }
         }
    

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.