File tree 1 file changed +5
-15
lines changed
packages/adapter-postgres/src
1 file changed +5
-15
lines changed Original file line number Diff line number Diff line change @@ -210,21 +210,11 @@ export class PostgresDatabaseAdapter
210
210
await client . query ( "SET app.use_gaianet_embedding = 'false'" ) ;
211
211
}
212
212
213
- // Check if schema already exists (check for a core table)
214
- const { rows } = await client . query ( `
215
- SELECT EXISTS (
216
- SELECT FROM information_schema.tables
217
- WHERE table_name = 'rooms'
218
- );
219
- ` ) ;
220
-
221
- if ( ! rows [ 0 ] . exists ) {
222
- const schema = fs . readFileSync (
223
- path . resolve ( __dirname , "../schema.sql" ) ,
224
- "utf8"
225
- ) ;
226
- await client . query ( schema ) ;
227
- }
213
+ const schema = fs . readFileSync (
214
+ path . resolve ( __dirname , "../schema.sql" ) ,
215
+ "utf8"
216
+ ) ;
217
+ await client . query ( schema ) ;
228
218
229
219
await client . query ( "COMMIT" ) ;
230
220
} catch ( error ) {
You can’t perform that action at this time.
0 commit comments