Skip to content

Commit

Permalink
fix: integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vijayg10 committed Nov 7, 2024
1 parent 079fbab commit 786290d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config/knexfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const KnexDatabaseConfig: DatabaseConfig = {
migrations: {
directory: migrationsDirectory,
stub: `${migrationsDirectory}/migration.template`,
tableName: 'oracleMSISDN',
tableName: 'oracleMSISDN_migration',
loadExtensions: ['.js']
},
seeds: {
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ services:
volumes:
- ./docker/sql-init/:/docker-entrypoint-initdb.d/
environment:
- MYSQL_USER=${DBUSER:-als-msisdn-oracle-svc}
- MYSQL_USER=${DBUSER:-als-msisdn-oracle}
- MYSQL_PASSWORD=${DBPASS:-password}
- MYSQL_DATABASE=${DBUSER:-als-msisdn-oracle-svc}
- MYSQL_DATABASE=${DBUSER:-als-msisdn-oracle}
- MYSQL_ALLOW_EMPTY_PASSWORD=true
networks:
- mojaloop-net
Expand Down
2 changes: 1 addition & 1 deletion docker/sql-init/01_permissions.sql
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ALTER USER 'als-msisdn-oracle-svc'@'%' identified WITH mysql_native_password by 'password';
ALTER USER 'als-msisdn-oracle'@'%' identified WITH mysql_native_password by 'password';
FLUSH PRIVILEGES;
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export async function up(knex: Knex): Promise<void | Knex.SchemaBuilder> {
return knex.schema.hasTable('oracleMSISDN').then((exists: boolean): Knex.SchemaBuilder | void => {
if (!exists) {
return knex.schema.createTable('oracleMSISDN', (t: Knex.CreateTableBuilder): void => {
t.uuid('id').primary().notNullable()
t.string('id').primary().notNullable()
t.string('fspId', 32).notNullable()
})
}
Expand Down
File renamed without changes.

0 comments on commit 786290d

Please sign in to comment.