Hi,
I'm testing h2 database in a ColdBox application (on Lucee) ...
I can connect to database with Quick (I've created a Model and an Handler) but I'm not able to run migrations...
this is the error displayed in CommandBox after migration init and migration creation
> migrate init
cfmigrations configured!
> * > CLI v5.2.1 > 04:25 PM > ~/coldbox-examples/testApp/ > testApp (1.0.0) > lucee 5.3.7 (running) >
> migrate up
ERROR (5.2.1+00295) Schema "information_schema" not found; SQL statement:SELECT 1 FROM "information_schema"."tables" WHERE "table_name" = ? AND "table_schema" = ? [90079-172]
MigrationService.cfc
SELECT 1 FROM "information_schema"."tables" WHERE "table_name" = 'cfmigrations' AND "table_schema" = 'testAppDB'
Both Application.cfc and box.json use ENVIRONMENT settings:
# ColdBox Name and Environment
APPNAME=tastApp
ENVIRONMENT=development
DB_BUNDLEVERSION=1.3.172
DB_PORT=
DB_USER=sa
DB_BUNDLENAME=org.h2
DB_CLASS=org.h2.Driver
DB_HOST=127.0.0.1
DB_DRIVER=org.h2.Driver
DB_SCHEMA=appDB
DB_DATABASE=appDB
DB_CONNECTIONSTRING=jdbc:h2:/Users/elena/coldbox-examples/testApp/database/appDB;MODE=MySQL;
DB_PASSWORD=
h2 was downloaded from Lucee download page and saved in /lib folder (I've added dependencies in box.json)
this is the grammar settings:
"defaultGrammar":"AutoDiscover@qb"
What am I missing?
Kind regards,
Elena
testApp.zip
Hi,
I'm testing h2 database in a ColdBox application (on Lucee) ...
I can connect to database with Quick (I've created a Model and an Handler) but I'm not able to run migrations...
this is the error displayed in CommandBox after migration init and migration creation
Both Application.cfc and box.json use ENVIRONMENT settings:
h2 was downloaded from Lucee download page and saved in /lib folder (I've added dependencies in box.json)
this is the grammar settings:
"defaultGrammar":"AutoDiscover@qb"What am I missing?
Kind regards,
Elena
testApp.zip