Skip to content

Commit de118a5

Browse files
committed
fix: project
1 parent 804bb02 commit de118a5

File tree

6 files changed

+21
-10
lines changed

6 files changed

+21
-10
lines changed

.vscode/launch.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Launch Java: Continuous Mode",
9+
"type": "jdk",
10+
"request": "launch",
11+
"launchConfiguration": "Continuous Mode"
12+
}
13+
]
14+
}

backend/src/main/resources/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ server.compression.min-response-size=2KB
1111
server.shutdown=graceful
1212

1313
spring.datasource.initialize=true
14-
spring.datasource.url=${POSTGRES_URL:jdbc:postgresql://localhost:5432/maps}
14+
spring.datasource.url=${POSTGRES_URL:jdbc:postgresql://localhost:5432/aidoclibchat}
1515
spring.datasource.username=${POSTGRES_USER:sven1}
1616
spring.datasource.password=${POSTGRES_PASSWORD:sven1}
1717
spring.datasource.driver-class-name=org.postgresql.Driver

backend/src/main/resources/db/changelog/changes/db.changelog-1.xml renamed to backend/src/main/resources/dbchangelog/changes/db.changelog-1.xml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,20 @@
1212
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
1313
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd">
1414
<changeSet author="angular2guy" id="1">
15-
<sql>CREATE EXTENSION vector;</sql>
16-
</changeSet>
17-
<changeSet author="angular2guy" id="2">
1815
<createTable tableName="document">
1916
<column name="id" type="bigint">
20-
<constaints primaryKey="true"/>
17+
<constraints primaryKey="true"/>
2118
</column>
2219
<column name="document_name" type="varchar(255)">
23-
<constaints notNullConstraintName="document_document_name" nullable="false"/>
20+
<constraints notNullConstraintName="document_document_name" nullable="false"/>
2421
</column>
2522
<column name="document_type" type="varchar(25)">
26-
<constaints notNullConstraintName="document_document_type" nullable="false"/>
23+
<constraints notNullConstraintName="document_document_type" nullable="false"/>
2724
</column>
2825
<column name="document_content" type="blob"/>
2926
</createTable>
3027
</changeSet>
31-
<changeSet autor="angular2guy" id="3">
28+
<changeSet author="angular2guy" id="2">
3229
<createSequence sequenceName="document_SEQ" incrementBy="50"
3330
startValue="1000" />
3431
</changeSet>

runPostgresql.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
22
docker pull ankane/pgvector:latest
33
docker run --name aidoclibchat-postgres -e POSTGRES_PASSWORD=sven1 -e POSTGRES_USER=sven1 -e POSTGRES_DB=aidoclibchat -p 5432:5432 -d postgres
4-
# docker start maps-postgres
5-
# docker stop maps-postgres
4+
# docker start aidoclibchat-postgres
5+
# docker stop aidoclibchat-postgres

0 commit comments

Comments
 (0)