gmomchilov / cakephp-yaml-migrations-and-fixtures Goto Github PK
View Code? Open in Web Editor NEWA CakePHP vendor and shell libraries which help using YAML migrations without the PEAR library.
Home Page: http://www.ovalpixels.com
License: Other
A CakePHP vendor and shell libraries which help using YAML migrations without the PEAR library.
Home Page: http://www.ovalpixels.com
License: Other
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>
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:
--- 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);
}
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.