From 81f8302d7250e84e57b28b68f532d0547f29370b Mon Sep 17 00:00:00 2001 From: Angular2guy Date: Sat, 11 Nov 2023 09:05:48 +0100 Subject: [PATCH] feat: store works --- .../AidocumentlibrarychatApplication.java | 1 - .../dbchangelog/changes/db.changelog-1.xml | 28 +++++++++++++++---- runPostgresql.sh | 2 +- 3 files changed, 24 insertions(+), 7 deletions(-) diff --git a/backend/src/main/java/ch/xxx/aidoclibchat/AidocumentlibrarychatApplication.java b/backend/src/main/java/ch/xxx/aidoclibchat/AidocumentlibrarychatApplication.java index dbb5ee1..e0f7b36 100644 --- a/backend/src/main/java/ch/xxx/aidoclibchat/AidocumentlibrarychatApplication.java +++ b/backend/src/main/java/ch/xxx/aidoclibchat/AidocumentlibrarychatApplication.java @@ -21,5 +21,4 @@ public class AidocumentlibrarychatApplication { public static void main(String[] args) { SpringApplication.run(AidocumentlibrarychatApplication.class, args); } - } diff --git a/backend/src/main/resources/dbchangelog/changes/db.changelog-1.xml b/backend/src/main/resources/dbchangelog/changes/db.changelog-1.xml index 5aa798a..d2a0b68 100644 --- a/backend/src/main/resources/dbchangelog/changes/db.changelog-1.xml +++ b/backend/src/main/resources/dbchangelog/changes/db.changelog-1.xml @@ -12,24 +12,42 @@ xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - CREATE EXTENSION if not exists hstore SCHEMA public; + CREATE EXTENSION if not exists hstore; - + + CREATE EXTENSION if not exists vector; + + + CREATE EXTENSION if not exists "uuid-ossp"; + + - + - + - + + + + + + + + + + + + + \ No newline at end of file diff --git a/runPostgresql.sh b/runPostgresql.sh index 0b51560..1d95748 100644 --- a/runPostgresql.sh +++ b/runPostgresql.sh @@ -1,5 +1,5 @@ #!/bin/sh docker pull ankane/pgvector:latest -docker run --name aidoclibchat-postgres -e POSTGRES_PASSWORD=sven1 -e POSTGRES_USER=sven1 -e POSTGRES_DB=aidoclibchat -p 5432:5432 -d postgres +docker run --name aidoclibchat-postgres -e POSTGRES_PASSWORD=sven1 -e POSTGRES_USER=sven1 -e POSTGRES_DB=aidoclibchat -p 5432:5432 -d ankane/pgvector # docker start aidoclibchat-postgres # docker stop aidoclibchat-postgres \ No newline at end of file