Skip to content

Commit b698e00

Browse files
committed
Disabled auto migrations for typed client sample
1 parent c3ed330 commit b698e00

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

samples/simple-ts/src/typedClient.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const connectionString =
66
'postgresql://postgres:postgres@localhost:5432/postgres';
77

88
const pongo = pongoClient(connectionString, {
9-
schema: { definition: config.schema, autoMigration: 'CreateOrUpdate' },
9+
schema: { definition: config.schema, autoMigration: 'None' },
1010
});
1111
const pongoDb = pongo.database;
1212

src/packages/pongo/src/commandLine/config.ts

Whitespace-only changes.

src/packages/pongo/src/commandLine/configFile.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export const configCommand = new Command('config').description(
144144
'Manage Pongo configuration',
145145
);
146146

147-
const sampleConfigCommand = configCommand
147+
configCommand
148148
.command('sample')
149149
.description('Generate or print sample configuration')
150150
.option(
@@ -186,5 +186,3 @@ const sampleConfigCommand = configCommand
186186
generateConfigFile(options.file, collectionNames);
187187
}
188188
});
189-
190-
sampleConfigCommand.command('generate');

0 commit comments

Comments
 (0)