# |
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. |
# |
Jul 20th 2009, 07:52 |
alkemann |
and plugins |
# |
Jul 20th 2009, 07:52 |
markstory |
which contains FooSchema ? |
# |
Jul 20th 2009, 07:52 |
markstory |
so something like /config/sql/foo.php ? |
# |
Jul 20th 2009, 07:51 |
alkemann |
also seems to be a problem with it telling me im missing the table that im trying to add using the schema |
# |
Jul 20th 2009, 07:50 |
alkemann |
markstory: i have tried with path,file and/or name options |
# |
Jul 20th 2009, 07:50 |
alkemann |
markstory: i was wondering if u could tell me how to use schema files other than /app/config/sql/schema.php |
# |
Jul 20th 2009, 07:35 |
markstory |
alkemann: > |
# |
Jul 20th 2009, 06:02 |
Phally |
that goes beyond my knowledge of GIT atm :p |
# |
Jul 20th 2009, 05:59 |
alkemann |
so if we can find a way to skip that merge thing (probably rebase it into prior commit, then we are set |
# |
Jul 20th 2009, 05:59 |
Phally |
keeps things stuctured |
# |
Jul 20th 2009, 05:58 |
Phally |
exactly |
# |
Jul 20th 2009, 05:56 |
alkemann |
better to comeplete a task on the same code base yea? |