# |
Jul 20th 2009, 08:23 |
alkemann |
code.cakephp.org and thechaw.com/cakephp |
# |
Jul 20th 2009, 08:22 |
Phally |
oh haha |
# |
Jul 20th 2009, 08:22 |
alkemann |
two even |
# |
Jul 20th 2009, 08:22 |
Phally |
there is a git branch which is up to date? |
# |
Jul 20th 2009, 08:22 |
markstory |
Phally: that is how the api generator shell calls SchemaShell too. |
# |
Jul 20th 2009, 08:21 |
alkemann |
svn?! tsk tsk |
# |
Jul 20th 2009, 08:21 |
Phally |
1.2.x.x svn branch |
# |
Jul 20th 2009, 08:21 |
alkemann |
what cake core u on? |
# |
Jul 20th 2009, 08:20 |
Phally |
just tried |
# |
Jul 20th 2009, 08:20 |
Phally |
this worked fine: phally@phally-desktop:/var/www/checkouts/bakery/app$ cake schema run create -path plugins/users/config/sql/ -name Messaging |
# |
Jul 20th 2009, 08:11 |
markstory |
actually its $file that is missing not the path. |
# |
Jul 20th 2009, 08:08 |
alkemann |
ok. so it only tries the default path then |
# |
Jul 20th 2009, 08:08 |
markstory |
$options only contains the name, not the path. |
# |
Jul 20th 2009, 08:07 |
markstory |
which is where the error comes from. |
# |
Jul 20th 2009, 08:07 |
markstory |
line 253 runs Schema->load() which resets the options I think. |
# |
Jul 20th 2009, 08:06 |
markstory |
I think there might be an issue with run() |
# |
Jul 20th 2009, 08:05 |
Phally |
have you cd'ed in the right folder (APP) |
# |
Jul 20th 2009, 08:04 |
Phally |
oh the filename was dummy.php |
# |
Jul 20th 2009, 08:03 |
Phally |
afaik |
# |
Jul 20th 2009, 08:02 |
Phally |
cake schema run create -path plugins\dummy\config\sql -name Dummy is as i had it |
# |
Jul 20th 2009, 08:02 |
alkemann |
right |
# |
Jul 20th 2009, 08:02 |
Phally |
DummySchema? |
# |
Jul 20th 2009, 08:02 |
Phally |
what is the classname? |
# |
Jul 20th 2009, 08:02 |
alkemann |
could not be loaded |
# |
Jul 20th 2009, 08:01 |
Phally |
i had to add -name Dummy |
# |
Jul 20th 2009, 08:01 |
alkemann |
this for instance cake schema run create Dummy -path plugins\dummy\config\sql |
# |
Jul 20th 2009, 08:00 |
alkemann |
i know that at some point i got plugins schema file to run using -path, but at some point it stopped working and i havent been able to get anything but default to run since. |
# |
Jul 20th 2009, 07:58 |
markstory |
but yeah fatal errors are a pain. |
# |
Jul 20th 2009, 07:58 |
markstory |
don't use die() in tests |
# |
Jul 20th 2009, 07:57 |
alkemann |
it's just that if a test has an fatal error. it doesnt drop the tables, so next run i get table exists error |
# |
Jul 20th 2009, 07:57 |
alkemann |
u gotta state it though |
# |
Jul 20th 2009, 07:56 |
markstory |
thats in the dbo's though |
# |
Jul 20th 2009, 07:55 |
markstory |
mysql should have that. |
# |
Jul 20th 2009, 07:55 |
alkemann |
markstory: and a personal wishlist of mine. add "DROP IF EXISTS" to the test fixtures generation |
# |
Jul 20th 2009, 07:54 |
alkemann |
except when it complained about the table not existing |
# |
Jul 20th 2009, 07:54 |
alkemann |
i get error cannot load <filename> |
# |
Jul 20th 2009, 07:54 |
markstory |
thats about the only way you can make plugins work. |
# |
Jul 20th 2009, 07:53 |
markstory |
-path works. |
# |
Jul 20th 2009, 07:53 |
alkemann |
so schema files need to be in the app sql folder, the -path thing doesnt work? |
# |
Jul 20th 2009, 07:53 |
markstory |
going to be fixed though. |
# |
Jul 20th 2009, 07:52 |
markstory |
plugins are a pain, right now. |