my migrate.php file:
require_once('bootstrap.php');
$migration = new Doctrine_Migration('001_something.class');
$migration->migrate();

my 001_something.class.php file:
class Something extends Doctrine_Migration
{
        public function up()
        {
                $this->addColumn('my_new_column', 'Kariera', 'string', array
('length' => '255'));
        }

        public function down()
        {

        }
}


After wrote:
C:\Program Files\WebServ\httpd\sf_sandbox>php migrations/migrate.php

Warning: require_once(bootstrap.php) [http://www.php.net/manual/pl/
function.requ
ire-once]: failed to open stream: No such file or directory in C:
\Program Files\
WebServ\httpd\sf_sandbox\migrations\migrate.php on line 2

Fatal error: require_once() [http://www.php.net/manual/pl/
function.require]: Fai
led opening required 'bootstrap.php' (include_path='.;C:\Program Files
\WebServ\p
hp\pear') in C:\Program Files\WebServ\httpd\sf_sandbox\migrations
\migrate.php on
 line 2


I searched where is bootstrap.php but I found only in C:\Program Files
\WebServ\httpd\sf_sandbox\test\bootstrap files: functional.php and
unit.php
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to