Skip to content

Commit

Permalink
Disabled auto migrations for typed client sample
Browse files Browse the repository at this point in the history
  • Loading branch information
oskardudycz committed Sep 27, 2024
1 parent c3ed330 commit b698e00
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion samples/simple-ts/src/typedClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const connectionString =
'postgresql://postgres:postgres@localhost:5432/postgres';

const pongo = pongoClient(connectionString, {
schema: { definition: config.schema, autoMigration: 'CreateOrUpdate' },
schema: { definition: config.schema, autoMigration: 'None' },
});
const pongoDb = pongo.database;

Expand Down
Empty file.
4 changes: 1 addition & 3 deletions src/packages/pongo/src/commandLine/configFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export const configCommand = new Command('config').description(
'Manage Pongo configuration',
);

const sampleConfigCommand = configCommand
configCommand
.command('sample')
.description('Generate or print sample configuration')
.option(
Expand Down Expand Up @@ -186,5 +186,3 @@ const sampleConfigCommand = configCommand
generateConfigFile(options.file, collectionNames);
}
});

sampleConfigCommand.command('generate');

0 comments on commit b698e00

Please sign in to comment.