I'm a software consultant and developer concentrating on web APIs and applications.
Drop me an email at [email protected] if you think I could help with your project.
Akrabat_Db_Schema_Manager and a DatabaseSchemaProvider for Zend_Tool
Home Page: http://akrabat.com
License: Other
I'm a software consultant and developer concentrating on web APIs and applications.
Drop me an email at [email protected] if you think I could help with your project.
Is there a way to activate the upgrade script from the ZF applicaiton and not thrue the ZF Tool Provider?
Hello,
Check this out:
[renich@introdeskg02org default]$ zf update database-schema
Schema updated to version 2
[renich@introdeskg02org default]$ zf update-to database-schema version=1
Schema updated to version 0
[renich@introdeskg02org default]$ zf current database-schema
Current schema version is 0
[renich@introdeskg02org default]$ zf update database-schema
Schema updated to version 2
[renich@introdeskg02org default]$ zf current database-schema
Current schema version is 2
So, it's kind of malfunctioning. I'd like to know how to debug it. No errors on /var/log/php-fpm/www-error.log
hello, your code help me a lot. But in case I defined the following parameters in application.ini, some error will produce.
resources.multidb.pos.params.profiler.enabled = true
resources.multidb.pos.params.profiler.class = "Zend_Db_Profiler_Firebug"
Message: SQLSTATE[IMSSP]: An invalid keyword 'params' was specified in the DSN string.
to solve this problem, pls put "unset($dsn['params']); " inside _dsn(), then the problem should be solved. Hope this help the others.
by the way, does anyone know why zend did not include this file officially???
MSSQL returns default values with formatting, eg. a boolean true or false is returned as ((0)) or ((1)). This was causing me problems when trying to fill default values in a Zend_Form.
I have created a patch to return the actual values. First this addition on line 298:
'DEFAULT' => $this->_formatDefaultValue( $row[$column_def] ),
and later a new method:
protected function _formatDefaultValue( $value )
{
if( empty( $value ) )
{
return;
}
// take default minus first & last characters
$value = substr( $value, 1, strlen( $value ) - 2 );
// remove starting & ending apostrophes
if( $value{ 0 } == "'" && $value{ strlen( $value ) - 1 } == "'" )
{
$value = substr( $value, 1, strlen( $value ) - 2 );
}
// remove starting and ending brackets (1 and 0 have double brackets)
if( strlen( $value ) > 2 && $value{ 0 } == '(' && $value{ strlen( $value ) - 1 } == ')' )
{
$value = substr( $value, 1, strlen( $value ) - 2 );
}
return $value;
}
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.