You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Explain what kind of behaviour you are getting and how you think it should do
When attempting to delete a table for a given schema (called a "user" in Oracle) then the migration fails with an error.
Error message
-- indent formatted by issue filer for easier readingdroptable"my_table";
begin
execute immediate 'drop sequence "my_table"';
exception when others then if sqlcode !=-2289 then raise;
end if;
end;
-- Error: drop table "my_table" - ORA-00942: table or view does not exist
Reduced test code, for example in https://npm.runkit.com/knex or if it needs real
database connection to MySQL or PostgreSQL, then single file example which initializes
needed data and demonstrates the problem.
// Create schema / userconstsanitizedRaw=knex.raw(`CREATE USER ?? IDENTIFIED BY ??`,[schemaName,schemaName]).toQuery()awaitknex.schema.raw(sanitizedRaw)// Create tableawaitknex.schema.withSchema('my_schema').createTable('my_table',(table)=>{table.increments('id').primary()})// Drop tableknex.schema.withSchema('my_schema').dropTable('my_table')
The text was updated successfully, but these errors were encountered:
Environment
Knex version:
0.95.8
Database + version: Oracle 18c (@atiertant)
OS: Ubuntu Linux
Bug
When attempting to delete a table for a given schema (called a "user" in Oracle) then the migration fails with an error.
database connection to MySQL or PostgreSQL, then single file example which initializes
needed data and demonstrates the problem.
The text was updated successfully, but these errors were encountered: