From c55fc6b7cefc62a45ce66ffee5bad7aa9e3c5503 Mon Sep 17 00:00:00 2001 From: Josako Date: Thu, 4 Jul 2024 17:20:02 +0200 Subject: [PATCH] Added OpenAI large embedding / improve migration and upgrade handling for containers --- .DS_Store | Bin 12292 -> 14340 bytes .env | 4 ++ common/__pycache__/__init__.cpython-312.pyc | Bin 185 -> 190 bytes common/__pycache__/extensions.cpython-312.pyc | Bin 1217 -> 1222 bytes .../__pycache__/__init__.cpython-312.pyc | Bin 192 -> 197 bytes .../__pycache__/document.cpython-312.pyc | Bin 7591 -> 7956 bytes .../__pycache__/interaction.cpython-312.pyc | Bin 4071 -> 4076 bytes .../models/__pycache__/user.cpython-312.pyc | Bin 12011 -> 12016 bytes common/models/document.py | 13 ++++ .../__pycache__/__init__.cpython-312.pyc | Bin 191 -> 196 bytes .../__pycache__/celery_utils.cpython-312.pyc | Bin 3211 -> 3216 bytes .../__pycache__/database.cpython-312.pyc | Bin 5202 -> 5207 bytes .../key_encryption.cpython-312.pyc | Bin 6002 -> 6007 bytes .../__pycache__/middleware.cpython-312.pyc | Bin 1475 -> 1480 bytes .../__pycache__/nginx_utils.cpython-312.pyc | Bin 1418 -> 1423 bytes .../__pycache__/security.cpython-312.pyc | Bin 1561 -> 1566 bytes .../security_utils.cpython-312.pyc | Bin 3183 -> 3188 bytes .../template_filters.cpython-312.pyc | Bin 1527 -> 1532 bytes .../view_assistants.cpython-312.pyc | Bin 2296 -> 2663 bytes config/__pycache__/__init__.cpython-312.pyc | Bin 185 -> 190 bytes config/__pycache__/config.cpython-312.pyc | Bin 7116 -> 9496 bytes .../logging_config.cpython-312.pyc | Bin 1842 -> 1847 bytes config/config.py | 11 ++- docker/.DS_Store | Bin 10244 -> 10244 bytes docker/compose.yaml | 4 ++ docker/db/.DS_Store | Bin 6148 -> 6148 bytes eveai_app/.DS_Store | Bin 8196 -> 6148 bytes .../__pycache__/__init__.cpython-312.pyc | Bin 6160 -> 6165 bytes eveai_app/__pycache__/errors.cpython-312.pyc | Bin 1867 -> 1872 bytes .../__pycache__/__init__.cpython-312.pyc | Bin 194 -> 199 bytes .../__pycache__/basic_forms.cpython-312.pyc | Bin 1966 -> 1971 bytes .../__pycache__/basic_views.cpython-312.pyc | Bin 3393 -> 3646 bytes .../document_forms.cpython-312.pyc | Bin 3914 -> 4563 bytes .../document_views.cpython-312.pyc | Bin 30458 -> 33627 bytes .../interaction_views.cpython-312.pyc | Bin 6493 -> 6498 bytes .../security_forms.cpython-312.pyc | Bin 1634 -> 1639 bytes .../security_views.cpython-312.pyc | Bin 10622 -> 10627 bytes .../__pycache__/user_forms.cpython-312.pyc | Bin 7645 -> 7650 bytes .../__pycache__/user_views.cpython-312.pyc | Bin 29038 -> 28996 bytes logs/embed_tuning.log | 0 logs/eveai_app.log | 66 ++++++++++++++++++ logs/eveai_chat.log | 0 logs/eveai_chat_workers.log | 0 logs/eveai_workers.log | 0 logs/mailman.log | 0 logs/rag_tuning.log | 0 logs/security.log | 0 logs/sqlalchemy.log | 0 migrations/.DS_Store | Bin 6148 -> 6148 bytes migrations/public/.DS_Store | Bin 6148 -> 10244 bytes .../167d821471ed_2024_07_04t09_42_15z.py | 62 ++++++++++++++++ .../1751a5318d34_2024_07_04t09_21_49z.py | 62 ++++++++++++++++ .../2a18dab7d1a4_2024_07_04t09_43_14z.py | 62 ++++++++++++++++ .../38b9e73d847f_2024_07_04t09_38_14z.py | 62 ++++++++++++++++ .../668e4a1000cb_2024_07_04t12_47_41z.py | 62 ++++++++++++++++ .../89a287bbd574_2024_07_04t12_28_00z.py | 62 ++++++++++++++++ .../8ab72fe23ee4_2024_07_04t12_51_36z.py | 62 ++++++++++++++++ .../cda254aa11ec_2024_07_04t09_59_04z.py | 62 ++++++++++++++++ .../d93eab8ce138_2024_07_04t09_36_42z.py | 62 ++++++++++++++++ .../df7bd57b7ae8_2024_07_04t09_08_45z.py | 62 ++++++++++++++++ .../e76f189a6489_2024_07_04t09_40_45z.py | 62 ++++++++++++++++ .../edb5953e3438_2024_07_04t08_18_50z.py | 62 ++++++++++++++++ .../fdc9ac232c49_2024_07_04t07_39_16z.py | 62 ++++++++++++++++ .../ff206102492b_2024_07_04t09_28_42z.py | 62 ++++++++++++++++ migrations/tenant/.DS_Store | Bin 10244 -> 10244 bytes .../tenant/__pycache__/env.cpython-312.pyc | Bin 5067 -> 5109 bytes migrations/tenant/env.py | 15 +++- migrations/tenant/script.py.mako | 1 + ...1_add_embedding_model_for_openai_large_.py | 34 +++++++++ ...mentlanguage_user_context_.cpython-312.pyc | Bin 4849 -> 4854 bytes ...rmation_added_to_document_.cpython-312.pyc | Bin 1855 -> 1860 bytes ...est_version_id_is_nullable.cpython-312.pyc | Bin 1121 -> 1126 bytes ...rocessing_fields_added_to_.cpython-312.pyc | Bin 1895 -> 1900 bytes ...60e3_embeddings_for_openai.cpython-312.pyc | Bin 1691 -> 1696 bytes ...defined_interaction_domain.cpython-312.pyc | Bin 760 -> 765 bytes ...fined_interaction_domain_2.cpython-312.pyc | Bin 3471 -> 3476 bytes ...ing_for_latest_version_in_.cpython-312.pyc | Bin 1356 -> 1361 bytes ...ng_model_for_openai_large_.cpython-312.pyc | Bin 0 -> 1487 bytes ...orithm_information_in_the_.cpython-312.pyc | Bin 1137 -> 1142 bytes ...tial_document_models_added.cpython-312.pyc | Bin 4497 -> 4502 bytes ...d_question_information_to_.cpython-312.pyc | Bin 1373 -> 1378 bytes ...preciation_should_be_null_.cpython-312.pyc | Bin 807 -> 812 bytes ..._information_of_chat_user_.cpython-312.pyc | Bin 1392 -> 1397 bytes ...defined_interaction_domain.cpython-312.pyc | Bin 760 -> 765 bytes ...ngs_according_to_pgvector_.cpython-312.pyc | Bin 4370 -> 4375 bytes ..._session_id_to_chatsession.cpython-312.pyc | Bin 1107 -> 1112 bytes ...rt_for_multiple_embedding_.cpython-312.pyc | Bin 4675 -> 4680 bytes .../__pycache__/run_eveai_app.cpython-312.pyc | Bin 374 -> 379 bytes scripts/db_migrate.sh | 32 +++++---- scripts/db_upgrade.sh | 32 --------- 90 files changed, 1032 insertions(+), 48 deletions(-) create mode 100644 .env create mode 100644 logs/embed_tuning.log create mode 100644 logs/eveai_app.log create mode 100644 logs/eveai_chat.log create mode 100644 logs/eveai_chat_workers.log create mode 100644 logs/eveai_workers.log create mode 100644 logs/mailman.log create mode 100644 logs/rag_tuning.log create mode 100644 logs/security.log create mode 100644 logs/sqlalchemy.log create mode 100644 migrations/public/versions/167d821471ed_2024_07_04t09_42_15z.py create mode 100644 migrations/public/versions/1751a5318d34_2024_07_04t09_21_49z.py create mode 100644 migrations/public/versions/2a18dab7d1a4_2024_07_04t09_43_14z.py create mode 100644 migrations/public/versions/38b9e73d847f_2024_07_04t09_38_14z.py create mode 100644 migrations/public/versions/668e4a1000cb_2024_07_04t12_47_41z.py create mode 100644 migrations/public/versions/89a287bbd574_2024_07_04t12_28_00z.py create mode 100644 migrations/public/versions/8ab72fe23ee4_2024_07_04t12_51_36z.py create mode 100644 migrations/public/versions/cda254aa11ec_2024_07_04t09_59_04z.py create mode 100644 migrations/public/versions/d93eab8ce138_2024_07_04t09_36_42z.py create mode 100644 migrations/public/versions/df7bd57b7ae8_2024_07_04t09_08_45z.py create mode 100644 migrations/public/versions/e76f189a6489_2024_07_04t09_40_45z.py create mode 100644 migrations/public/versions/edb5953e3438_2024_07_04t08_18_50z.py create mode 100644 migrations/public/versions/fdc9ac232c49_2024_07_04t07_39_16z.py create mode 100644 migrations/public/versions/ff206102492b_2024_07_04t09_28_42z.py create mode 100644 migrations/tenant/versions/5d5437d81041_add_embedding_model_for_openai_large_.py create mode 100644 migrations/tenant/versions/__pycache__/5d5437d81041_add_embedding_model_for_openai_large_.cpython-312.pyc delete mode 100755 scripts/db_upgrade.sh diff --git a/.DS_Store b/.DS_Store index 2bfdc62f9032fdd6f2a130c0c957fb03ef727c13..74bee2e12046f4dc2ff5c31a820c5b62113476b6 100644 GIT binary patch delta 1123 zcmZokXem%&U|?W$DortDU@!nOIe-{M3-ADmHUwDK1Gl`AHz-kc7o1{}SY7W>;VU z>s1h{Wo9~VIQgQe!sPv;Tx=}iD z4CxHTlcy=k*TZ?J&g0eqS__v$c2@GSRk6+xXCcWWoP$js)fECD?{hKa0)s7mvb9+J z}{&AJ^klt)2y_cC$eKU`OFr%VTb12w5dO&YyGL#^zJ~_QQ z++BLIgQ650l$oF?&6J!lxmIzqlCl_38!LkzP*Vy+DnlZ&#v^7g3xlLL8!0VhWYW7c z`KodnB6364rOptJLVagzq}J!-gI*!)=4 zhS7_g{n1;XwQN8u^MQ)9ffg4bTl||Dl=`5Cp{PMb0z}Q^Om#VCZo>nUyVOf3PSBog zE+9HtNkDwEowzpTp}Uh=k`?GoATZzt60XSkaO1`I%#-y`J!BtSBt7mo-gV;d9#G*etU;wfu zHp@uzFf(~^PY#d~nQSM+H91d4YIBmzO6H9ZBp4Z0H}fb6Gb$QBo(|N_!l1{H&XCDa zlAG@WcW{Ahd6u-)WCuklHYhVeQJN{yU~;YEWMP#Qpf*;ZwoHZ;hE#?`pvK9rO7feX zlqLcLqJHvK-i*I2H7CCyH#M(BKea5?(Q{&_4FLQ`4Cw#> diff --git a/common/models/__pycache__/document.cpython-312.pyc b/common/models/__pycache__/document.cpython-312.pyc index 6b90d33b8abeab003bfb134b697571184d02c714..471fdd200a253f5a7504c9cc5a4e4cee45a77bb8 100644 GIT binary patch delta 226 zcmZ2(J;jdiG%qg~0}y=7X-m@;oX97^_-3N|btxtWcZL-H7KRjoRIb&`AO#EzQM{Fc znnIhI7+;UlV6#enpdKql3JFUlV1R0Z#H7n6=VE7IYB0Va-!sMYZ2Gn zq|}s@%)E4;#G>?6|AN#!N6%YgsW8#_9FTB)K2SU{vnT~8SMVSmdll5hk<+Fk8 vA`p=VVq}5{1rPxe^3&v-d`KplF?+J2tSna{P=pbPi<2jN$c9dyC@Tg4LGV6~ delta 122 zcmbPYx7?cVG%qg~0}!NaPE5 E0J$>}g#Z8m delta 47 zcmaDO|6HE?G%qg~0}vd4SGGx#WJVS<{<74Z{DR!nyb}G?vQ$UU&E6~vxdC-Y B52*kE diff --git a/common/models/__pycache__/user.cpython-312.pyc b/common/models/__pycache__/user.cpython-312.pyc index caea35178fd9a8f57534d0d1c282e13d75bcf318..596b23545ffeb26c4739e8c8ea4184f8ba64a6f9 100644 GIT binary patch delta 52 zcmaDI`yrP5G%qg~0}!l9FWtzU#Lbv6Igi^+q#!51GB-7^L_a09EHx*;0L0$BncG4c E0L|DE4gdfE delta 47 zcmewm`#P5UG%qg~0}wP^%G$`C#LXBzIgi_nzbrK;zaTd?uS7q!EY;C-^A2tcWdM1^ B55@oh diff --git a/common/models/document.py b/common/models/document.py index 4b06a49..aeed9a3 100644 --- a/common/models/document.py +++ b/common/models/document.py @@ -97,3 +97,16 @@ class EmbeddingSmallOpenAI(Embedding): __mapper_args__ = { 'polymorphic_identity': 'embedding_small_openai', } + + +class EmbeddingLargeOpenAI(Embedding): + __tablename__ = 'embedding_large_openai' + id = db.Column(db.Integer, db.ForeignKey('embeddings.id'), primary_key=True) + + # 3072 is the OpenAI Large Embedding dimension. + # If another embedding model is chosen, this dimension may need to be changed. + embedding = db.Column(Vector(3072), nullable=False) + + __mapper_args__ = { + 'polymorphic_identity': 'embedding_large_openai', + } diff --git a/common/utils/__pycache__/__init__.cpython-312.pyc b/common/utils/__pycache__/__init__.cpython-312.pyc index d8a689e4004e332254f8f15788f4a3c2d02aad7c..db92efbfd050c6e6bb1432d5f706112acb9274f6 100644 GIT binary patch delta 48 zcmdnbc!ZJrG%qg~0}!l9FP+G3%$PjU-b|z*C%-Z`HLpZJCABOyC%*v1p4egy09mLH A?*IS* delta 43 xcmX@YxSx^xG%qg~0}y=GwVcRp%osP(-i*I2H7CCyH#M(BKea5?(Q{&_H2?>h4MqR} diff --git a/common/utils/__pycache__/celery_utils.cpython-312.pyc b/common/utils/__pycache__/celery_utils.cpython-312.pyc index 0f4c2f609d3ce1b83737d6cb123f71c7d4ff4fb5..0ec5442d964d661f849e5a79256dee763f143e36 100644 GIT binary patch delta 52 zcmeB{oFK`4nwOW00SMNlmu}>4VrNXB+{bPvQjn8hnVXtdqMwplmYS1a0Ag>x%)WyK E0G1*Vf&c&j delta 47 zcmbOr*)7R^nwOW00SLT${Wo$qu`?!3?qfIOFH6nIFUU>JE74CaOLg?ze1m-l3jj09 B4x|78 diff --git a/common/utils/__pycache__/database.cpython-312.pyc b/common/utils/__pycache__/database.cpython-312.pyc index d1f0d8fa3481249aaeabc2f91d90d3f3ba2952a8..93870c43def20f9abf482f0ebaf4da4df6aed7bf 100644 GIT binary patch delta 52 zcmcblab1J^G%qg~0}!l9FWtzU#>ALBxroV3q#!51GB-7^L_a09EHx*;0L0$BooTip E0Iv%Xw*UYD delta 47 zcmcbvaY=*wG%qg~0}$jbj@`(e#>5ymxroV(zbrK;zaTd?uS7q!EY;C-^B$(zf&f$# B4AL8S&7L^q#!51GB-7^L_a09EHx*;0L0#$&crPW E0I1OrjQ{`u delta 47 zcmeya_eqcYG%qg~0}zC>`)}kHV`5C1ti)u-UzVDaUyz%cSE8RkGY2t E0GbOCsQ>@~ delta 47 zcmeC@?&9V?&CAQh00fq^BQ|ocWoAsAyp!3CzbrK;zaTd?uS7q!EY;C-Gc!vMBLFjZ B4blJr diff --git a/common/utils/__pycache__/security.cpython-312.pyc b/common/utils/__pycache__/security.cpython-312.pyc index f5ac1bf0c65d488b399351dc5c85126b203f8eeb..a95c17739de3318b478c906c067b578d10a6c59f 100644 GIT binary patch delta 52 zcmbQqGmnS+G%qg~0}!l9FWtz^#mtyIS&Z3Cq#!51GB-7^L_a09EHx*;0L0!L&Ag8Z E0CmU^5C8xG delta 47 zcmbQoGn0q=G%qg~0}u!ujo8S|#mpEtS&Z3?zbrK;zaTd?uS7q!EY;C-a{}`|CIA^a B4Lbk; diff --git a/common/utils/__pycache__/security_utils.cpython-312.pyc b/common/utils/__pycache__/security_utils.cpython-312.pyc index 0a5a08250f3af0fda3add7ead093b0e1b641f34d..842a2e91cdfd16ce422c4de71b0d85802196e4e4 100644 GIT binary patch delta 52 zcmaDa@kN6BG%qg~0}!l9FWtz!nu#%U@^&UOk%FB3%G}hv68)6avecaX0uX!iAEshX E0LID^b^rhX delta 47 zcmew&@m_-aG%qg~0}yb`jNHh*nu#%G@^&UO{<74Z{DR!nyb}G?vQ$UU&5X>&oB&lV B4s8Gc diff --git a/common/utils/__pycache__/template_filters.cpython-312.pyc b/common/utils/__pycache__/template_filters.cpython-312.pyc index e352b5659096ab5fc0d5bf2909683fb79487f8df..6aeaba8230bf0b084e60beba2e5169974d5302ca 100644 GIT binary patch delta 52 zcmey){fC?TG%qg~0}!l9FWty3!^D_9S%b+;q#!51GB-7^L_a09EHx*;0L0#$%hbgT E0H5Cw(f|Me delta 47 zcmeyv{hgcpG%qg~0}#~TDc;B}!^D_2S%b-pzbrK;zaTd?uS7q!EY;C-a}iS)GXPVr B4x9i0 diff --git a/common/utils/__pycache__/view_assistants.cpython-312.pyc b/common/utils/__pycache__/view_assistants.cpython-312.pyc index 395910045c24b70f8908967022b0228dd3c7fb10..6b1ae74b012015938b35d1f99f011ed654a77cad 100644 GIT binary patch delta 487 zcmYjNODIHP6#mbBjjkDz$t0x-;VPkoBvEXnS+G!w>2@C(?nD2*NR7vWqU6ymJW}i= zE7@Sf-ex@0Eo)ni4N5upvT*8r-}j$)|3}elG;$M(hy?BObY4H%ij+d_R!ya-@=Iix zpB1FgX=0s$@yrX;5}h>cSyQvz234EZ413boXBF%W->85;;?F|JEc*Ki!abT_3^=ku5gUXyRzZx^~G>rdc{u4&I|L+%N}& zh!Ch5BC!ciR2-@&U3)^aJWiEeSzLFgh?6DFa0SbaWVW diff --git a/config/__pycache__/__init__.cpython-312.pyc b/config/__pycache__/__init__.cpython-312.pyc index 1cb6791f78560d33884a25126638451ce5e37bad..381a0b7758813d2140f8ce0cb43c74b02eac238d 100644 GIT binary patch delta 48 zcmdnVxQ~(hG%qg~0}!l9FP+G3%osb--b|z*C%-Z`HLpZJCABOyC%*v1p4egv09M8i A*8l(j delta 43 xcmdnTxRa6lG%qg~0}w3GwVcRp%os7z-i*I2H7CCyH#M(BKea5?(Q{&_DFFKn4A}qx diff --git a/config/__pycache__/config.cpython-312.pyc b/config/__pycache__/config.cpython-312.pyc index d3c37bd4314b24b6fe74a0a0fb6fadb58fa0e14d..c697c0322d408a8f7484d1467a64637d7bd57e65 100644 GIT binary patch delta 3165 zcmcH*TTC0-bq0)i83M!@+Zed!ZNN5Q9)YHtb-)k@V;(jk+-z$G?%2#ScqTJrSXf17 z)vDU6QoGW8G}5NpRi&!iW>?*cY8ACV`Ka1R?T01$;reTTs&0Q;)bbVWN6)o+1tlMq znk(IN@0|C!=iGbd&!Z1-SO2N1s)B*x{`vRfpSgZr-OsYu^&9LD(g}u`f68J6Ydx$^ zV!^F2+lVE>;&#%2J4i9^Bv#x-Y`7byi`a1wX~ez6f%`}kc9Ul8AuZSov!5V5K%97x zv|=A=!$YJU50ef&LRdTsdae~Q{21x{wCgcTonaU}Iu7V>fbniHex0~T59xhWMEZz3 zzj}x_zxI=X{M!AKB;L-SZG&jGs#uFkW6KhDzEdiEe1&25H2rJC#=$=gzcdzcYx+dRg8o6pj$T~(AdO%wqmq~v%7 z{i5UD`zNRe+^r&pS&>qRQ+UK7P2rO2x+2JwAMr%cBn4?3oQ8xgS&_DR6_^sjHlMt} zihxz+w|RvVk<2NYit>iIBtd?K*HTJSMO&P*Nu-^m2Q3TQhLqCK`UaOwK(uIws+W05 z7I~y{yB-wX;Lo+|PYs^*qy$dzC@zVjv;#7QNZg1B+X4aRivr+kQj^Xc5~YN&e(IP9 z1(IqCB0Y^C!T~QqUQl4C?(hm=fG$9Mpj73ycqB^ca}}O^Xl`ImN*bq~*oO2WunE2- zH6gxBWmPJ8E~lcDN`u|tIhtY>b#HO+pg|q7}ljEEw4Vb28S;4-1Y^Z;iR~At)Mg?*y`%)yXRUSz$eWmR1vrO z+UkTBB+bIBOQq|7sTHd3<@G`-uf1l{r$uv~`@;DatiSfUNnb3SOLbFl;s0Da`MRN+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SCRd88P0kf#UtDJL ZEQuUuh9w1)^TcI0t4V(2CZu;8BLG77G0Xq} diff --git a/docker/compose.yaml b/docker/compose.yaml index 30822df..51a5f8f 100644 --- a/docker/compose.yaml +++ b/docker/compose.yaml @@ -32,6 +32,10 @@ services: environment: - FLASK_ENV=development - FLASK_DEBUG=1 + - DB_HOST=db + - DB_USER=luke + - DB_PASS=Skywalker! + - DB_NAME=eveai volumes: - ../eveai_app:/app/eveai_app - ../common:/app/common diff --git a/docker/db/.DS_Store b/docker/db/.DS_Store index 6d4aeb694980faa4eb4b4d2cc21a7b7b01057509..cef92d07456fb4f93aad75f2f6cbf55c8e139971 100644 GIT binary patch delta 63 zcmZoMXffEZnw6RP? zZ{}fONCe_chGfs2{N$vZ{3MW01_q{dAg%Ww41g>K1{AeP<;4Y1wY!oE zax#lc3=FO@GBLBTvaxfpb8vIS2501#2bUz4lomTB7Da=2A^G_^NicR|QdnkceR;fq zh;x2kNn&PRY7tmRW=bkhO-y)ZUP^wsQ+{b)N-dzaIl{~(!3`921x4>>L5}atlletFC;RhoZ~%P?ig||3@jP>w0nBED AqW}N^ diff --git a/eveai_app/__pycache__/__init__.cpython-312.pyc b/eveai_app/__pycache__/__init__.cpython-312.pyc index 3e49418266b392a64e8ff90c11869bbbf54a941f..9e1c516aed0b37cf2d163a848c48f9b6593f59c9 100644 GIT binary patch delta 52 zcmbPWFx7zjG%qg~0}v?BZrjMcgNrd?@)0gGk%FB3%G}hv68)6avecaX0uXyMCpSAU E0G}NYa{vGU delta 47 zcmbPgFu{QPG%qg~0}xc*E8fVxgNreG@)0gG{<74Z{DR!nyb}G?vQ$UU&3xSKyZ~95 B4t@Xt diff --git a/eveai_app/__pycache__/errors.cpython-312.pyc b/eveai_app/__pycache__/errors.cpython-312.pyc index 024fd2a2ca65240235ccea7f81ec353f6b9288d8..ea652c7ae2143e2c91bdb73295190bb82ab80385 100644 GIT binary patch delta 52 zcmX@jcY%-lG%qg~0}!l9FWtz!l94fP@>WJOk%FB3%G}hv68)6avecaX0uX!iFUCMt E0J0|$-~a#s delta 47 zcmcb>cbbp;G%qg~0}zPtMQr3=$;cQvc`KtCe_3iyenD<(UWtBcS*oMw=KqX=tN=DO B4psmF diff --git a/eveai_app/views/__pycache__/__init__.cpython-312.pyc b/eveai_app/views/__pycache__/__init__.cpython-312.pyc index 85025a592c7a5df4406ff97d05b5fc15fd46dda9..95ac753700816ddb44a6e651a5297383fc56d5ec 100644 GIT binary patch delta 48 zcmX@ac$|^@G%qg~0}!l9FP+G3%$PRO-b|z*C%-Z`HLpZJCABOyC%*v1p4egs09zRk A`v3p{ delta 43 xcmX@kc!-hvG%qg~0}yymH=4+8%$PXQ-i*I2H7CCyH#M(BKea5?(Q{&_9RL6?4GRDO diff --git a/eveai_app/views/__pycache__/basic_forms.cpython-312.pyc b/eveai_app/views/__pycache__/basic_forms.cpython-312.pyc index 0dec307e67b89d37fe97070643cbdc8ed1661e6b..c57710c53485f6e26e6a312d6827f1515187daab 100644 GIT binary patch delta 52 zcmZ3-znP!=G%qg~0}!l9FWty}kcBaG@>v!$k%FB3%G}hv68)6avecaX0uXz%5bGQ! E0ITp3O#lD@ delta 47 zcmdnYzmA{#G%qg~0}!OKJ8k4X$ikR1`7DbWe_3iyenD<(UWtBcS*oMwW^vXzOaM0y B4fp^6 diff --git a/eveai_app/views/__pycache__/basic_views.cpython-312.pyc b/eveai_app/views/__pycache__/basic_views.cpython-312.pyc index b7236b3fd064353539795e0f21ac98fc4b8b178d..fbf1ed78c3eb9701b2bd2c9fbe1db7e682d27fe2 100644 GIT binary patch delta 336 zcmX>owNHlkG%qg~0}xz!UY+)BBCjOln~mx_87IdviYtnzaHcb^;abfEl4oE@k!WF9 z4Pi1wNmNQ|N^O3^*v811IXRozOr#(uzcM#9uS7p3wJbF!zW~JEyn%ThdwmtVenx6y zPDw^GR5O@j0g}u>{8<4=OlK%z1X5s-!kEI8$+#NIPhn1D3TDt`@hg%9%HCqi&n_|o zGBg>BIDk}<2#62`5n@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q10m5a3qX@?kHob$$IqNh^eF$G5a31DN#9ftdI<6>1 z7MOn6f%L7tEfSMP6&b#^vH<&G%qg~0}!l9FWt!ffR!4NI_11Wo~L-iGE6IS!zyx0f@a>iakXM E0MF79{Qv*} delta 47 zcmZn;{uji3nwOW00SHogqBe4$WMfR9e3i|NzbrK;zaTd?uS7q!EY;C-vpjo>5&&7h B4#WTe diff --git a/eveai_app/views/__pycache__/user_forms.cpython-312.pyc b/eveai_app/views/__pycache__/user_forms.cpython-312.pyc index 6e4fd157f34e59adc9db108b60041a153033df5e..4ad27c1add4fa0dd1b8c1f8b1be87e37629ba1c9 100644 GIT binary patch delta 52 zcmca>{m7d8G%qg~0}!l9FWtz!hKDg@@(vy|k%FB3%G}hv68)6avecaX0uX!iU!Dg7 E0MO49EC2ui delta 47 zcmaE4eb<`%G%qg~0}!0GEZNAthKDhE@(vy|{<74Z{DR!nyb}G?vQ$UU%}l%x1ORVI B52FA8 diff --git a/eveai_app/views/__pycache__/user_views.cpython-312.pyc b/eveai_app/views/__pycache__/user_views.cpython-312.pyc index 79b6e48dd50eb7be924833d54b31a4ab7188c73a..3859279aebabe60beb54ca11d615c46f99f25cec 100644 GIT binary patch delta 218 zcmaF&i1ElHM&8rByj%=Guxn#oTJuI;2QJ2p$$ngBA_Y15mAR>TCHg6;WvMy&1t9k3 z$y@@VOgT)GFZwD?K9DN1`F4B&BTpvdYDSO=3=An8lPwcZ3m2y_)H2mEl{1zzR4_*} zlrw5_P8Lt{o;)dOHt#L&ywvje#DdKD?9|H1M#;vEFD9oYHw#VhoKby2So<=!&Whv< z+=dre3@86fju+u#ILyWAV$6J4*ipy>Y7J32zJGnS;3F;?7Ggk54Sfj0Y;4 zoSHP7wdg$1;K{tn#*D8gJ0>@aUQl+q5Eye&IQBAk+=YbX3*5;USdu4SOO6-eW;o2v z>0-isSj17xMW6YIKC6q#X3vxePR2Q#7v*{~3#BlAW@cd00}<9ASoj!I7$^TO@B{#K Cty2U5 diff --git a/logs/embed_tuning.log b/logs/embed_tuning.log new file mode 100644 index 0000000..e69de29 diff --git a/logs/eveai_app.log b/logs/eveai_app.log new file mode 100644 index 0000000..b789027 --- /dev/null +++ b/logs/eveai_app.log @@ -0,0 +1,66 @@ +2024-07-04 09:28:59,334 [INFO] eveai_app: eveai_app starting up +2024-07-04 09:28:59,353 [INFO] eveai_app: Project ID: eveai-420711 +2024-07-04 09:28:59,353 [INFO] eveai_app: Location: europe-west1 +2024-07-04 09:28:59,353 [INFO] eveai_app: Key Ring: eveai-chat +2024-07-04 09:28:59,353 [INFO] eveai_app: Crypto Key: envelope-encryption-key +2024-07-04 09:28:59,353 [INFO] eveai_app: Key Name: projects/eveai-420711/locations/europe-west1/keyRings/eveai-chat/cryptoKeys/envelope-encryption-key +2024-07-04 09:28:59,354 [INFO] eveai_app: Service Account Key Path: None +2024-07-04 09:28:59,362 [DEBUG] eveai_app: CELERY_BROKER_URL: redis://redis:6379/0 +2024-07-04 09:28:59,362 [DEBUG] eveai_app: CELERY_RESULT_BACKEND: redis://redis:6379/0 +2024-07-04 09:28:59,399 [INFO] eveai_app: EveAI App Server Started Successfully +2024-07-04 09:28:59,399 [INFO] eveai_app: ------------------------------------------------------------------------------------------------- +2024-07-04 09:30:12,852 [INFO] eveai_app: eveai_app starting up +2024-07-04 09:30:12,870 [INFO] eveai_app: Project ID: eveai-420711 +2024-07-04 09:30:12,870 [INFO] eveai_app: Location: europe-west1 +2024-07-04 09:30:12,870 [INFO] eveai_app: Key Ring: eveai-chat +2024-07-04 09:30:12,870 [INFO] eveai_app: Crypto Key: envelope-encryption-key +2024-07-04 09:30:12,870 [INFO] eveai_app: Key Name: projects/eveai-420711/locations/europe-west1/keyRings/eveai-chat/cryptoKeys/envelope-encryption-key +2024-07-04 09:30:12,870 [INFO] eveai_app: Service Account Key Path: None +2024-07-04 09:30:12,874 [DEBUG] eveai_app: CELERY_BROKER_URL: redis://redis:6379/0 +2024-07-04 09:30:12,875 [DEBUG] eveai_app: CELERY_RESULT_BACKEND: redis://redis:6379/0 +2024-07-04 09:30:12,893 [INFO] eveai_app: EveAI App Server Started Successfully +2024-07-04 09:30:12,893 [INFO] eveai_app: ------------------------------------------------------------------------------------------------- +2024-07-04 09:30:23,727 [INFO] eveai_app: eveai_app starting up +2024-07-04 09:30:23,739 [INFO] eveai_app: Project ID: eveai-420711 +2024-07-04 09:30:23,740 [INFO] eveai_app: Location: europe-west1 +2024-07-04 09:30:23,740 [INFO] eveai_app: Key Ring: eveai-chat +2024-07-04 09:30:23,740 [INFO] eveai_app: Crypto Key: envelope-encryption-key +2024-07-04 09:30:23,740 [INFO] eveai_app: Key Name: projects/eveai-420711/locations/europe-west1/keyRings/eveai-chat/cryptoKeys/envelope-encryption-key +2024-07-04 09:30:23,740 [INFO] eveai_app: Service Account Key Path: None +2024-07-04 09:30:23,744 [DEBUG] eveai_app: CELERY_BROKER_URL: redis://redis:6379/0 +2024-07-04 09:30:23,744 [DEBUG] eveai_app: CELERY_RESULT_BACKEND: redis://redis:6379/0 +2024-07-04 09:30:23,762 [INFO] eveai_app: EveAI App Server Started Successfully +2024-07-04 09:30:23,762 [INFO] eveai_app: ------------------------------------------------------------------------------------------------- +2024-07-04 15:47:58,346 [INFO] eveai_app: eveai_app starting up +2024-07-04 15:47:58,365 [INFO] eveai_app: Project ID: eveai-420711 +2024-07-04 15:47:58,365 [INFO] eveai_app: Location: europe-west1 +2024-07-04 15:47:58,365 [INFO] eveai_app: Key Ring: eveai-chat +2024-07-04 15:47:58,365 [INFO] eveai_app: Crypto Key: envelope-encryption-key +2024-07-04 15:47:58,365 [INFO] eveai_app: Key Name: projects/eveai-420711/locations/europe-west1/keyRings/eveai-chat/cryptoKeys/envelope-encryption-key +2024-07-04 15:47:58,365 [INFO] eveai_app: Service Account Key Path: None +2024-07-04 15:47:58,383 [DEBUG] eveai_app: CELERY_BROKER_URL: redis://redis:6379/0 +2024-07-04 15:47:58,383 [DEBUG] eveai_app: CELERY_RESULT_BACKEND: redis://redis:6379/0 +2024-07-04 15:47:58,406 [INFO] eveai_app: EveAI App Server Started Successfully +2024-07-04 15:47:58,406 [INFO] eveai_app: ------------------------------------------------------------------------------------------------- +2024-07-04 15:48:39,272 [INFO] eveai_app: eveai_app starting up +2024-07-04 15:48:39,284 [INFO] eveai_app: Project ID: eveai-420711 +2024-07-04 15:48:39,284 [INFO] eveai_app: Location: europe-west1 +2024-07-04 15:48:39,284 [INFO] eveai_app: Key Ring: eveai-chat +2024-07-04 15:48:39,285 [INFO] eveai_app: Crypto Key: envelope-encryption-key +2024-07-04 15:48:39,285 [INFO] eveai_app: Key Name: projects/eveai-420711/locations/europe-west1/keyRings/eveai-chat/cryptoKeys/envelope-encryption-key +2024-07-04 15:48:39,285 [INFO] eveai_app: Service Account Key Path: None +2024-07-04 15:48:39,289 [DEBUG] eveai_app: CELERY_BROKER_URL: redis://redis:6379/0 +2024-07-04 15:48:39,289 [DEBUG] eveai_app: CELERY_RESULT_BACKEND: redis://redis:6379/0 +2024-07-04 15:48:39,307 [INFO] eveai_app: EveAI App Server Started Successfully +2024-07-04 15:48:39,308 [INFO] eveai_app: ------------------------------------------------------------------------------------------------- +2024-07-04 15:49:43,236 [INFO] eveai_app: eveai_app starting up +2024-07-04 15:49:43,248 [INFO] eveai_app: Project ID: eveai-420711 +2024-07-04 15:49:43,248 [INFO] eveai_app: Location: europe-west1 +2024-07-04 15:49:43,248 [INFO] eveai_app: Key Ring: eveai-chat +2024-07-04 15:49:43,248 [INFO] eveai_app: Crypto Key: envelope-encryption-key +2024-07-04 15:49:43,249 [INFO] eveai_app: Key Name: projects/eveai-420711/locations/europe-west1/keyRings/eveai-chat/cryptoKeys/envelope-encryption-key +2024-07-04 15:49:43,249 [INFO] eveai_app: Service Account Key Path: None +2024-07-04 15:49:43,253 [DEBUG] eveai_app: CELERY_BROKER_URL: redis://redis:6379/0 +2024-07-04 15:49:43,253 [DEBUG] eveai_app: CELERY_RESULT_BACKEND: redis://redis:6379/0 +2024-07-04 15:49:43,271 [INFO] eveai_app: EveAI App Server Started Successfully +2024-07-04 15:49:43,271 [INFO] eveai_app: ------------------------------------------------------------------------------------------------- diff --git a/logs/eveai_chat.log b/logs/eveai_chat.log new file mode 100644 index 0000000..e69de29 diff --git a/logs/eveai_chat_workers.log b/logs/eveai_chat_workers.log new file mode 100644 index 0000000..e69de29 diff --git a/logs/eveai_workers.log b/logs/eveai_workers.log new file mode 100644 index 0000000..e69de29 diff --git a/logs/mailman.log b/logs/mailman.log new file mode 100644 index 0000000..e69de29 diff --git a/logs/rag_tuning.log b/logs/rag_tuning.log new file mode 100644 index 0000000..e69de29 diff --git a/logs/security.log b/logs/security.log new file mode 100644 index 0000000..e69de29 diff --git a/logs/sqlalchemy.log b/logs/sqlalchemy.log new file mode 100644 index 0000000..e69de29 diff --git a/migrations/.DS_Store b/migrations/.DS_Store index 9746ac90967fdc928076c09f574eb5a5f108bbab..475a0f806b1e6d251cbc148177e4e90dd2a61470 100644 GIT binary patch delta 238 zcmZoMXfc@J&&aniU^g=(-((&Zo5_DzWEnXoOR+`^aB{{ANLN=I85o)CD3}=-O>Sj% zo@~n^!OU#XGdY4qhCOGK!nE^3$0k>^$imt4S>)td9xwm_8$$s@DMJ!N4nrnGa#?Uu zUQT{qI#8T(@&T4e+*ZVRx(R`GmoTI<1qQ+JD>!>3G0|OgF0YfQ6 z5QT)zR2P{c{iJ+s@Pw!fh7#740#NRKwOfW?*cdQ_K6=3&%Yj>{F6+-cM8wi=B_iF1>C z&)j>@xpU4p-GGz(>GGz(>GG;J<(X{bsWwmT>8}J_0@hJ_6GSu=hidDw82kPH^eII;e5C03?fP z*e!HT`vBJ_=*f^LC%AM?X-&R+K+hDtEe3LPnh!E{k|9q{aLLU9xjCSBXY_U`=-!>| zg04DXh)ciq5%3WxM1bwxOK7(qfh3&B+rLNln07p7+A-2#N!3Pm{Y|&f)x1{ba8o#L zCz7rXlzlb7X2S05^wt-9Uk#r6wEP0Q$2{I7Z0%2ICr4&_5oFGk(Ak7ZCld*X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_2024_07_04t09_42_15z.py new file mode 100644 index 0000000..2123b23 --- /dev/null +++ b/migrations/public/versions/167d821471ed_2024_07_04t09_42_15z.py @@ -0,0 +1,62 @@ +"""2024-07-04T09:42:15Z + +Revision ID: 167d821471ed +Revises: e76f189a6489 +Create Date: 2024-07-04 09:42:16.959346 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = '167d821471ed' +down_revision = 'e76f189a6489' +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table('roles_users', schema=None) as batch_op: + batch_op.drop_constraint('roles_users_user_id_fkey', type_='foreignkey') + batch_op.drop_constraint('roles_users_role_id_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'user', ['user_id'], ['id'], referent_schema='public', ondelete='CASCADE') + batch_op.create_foreign_key(None, 'role', ['role_id'], ['id'], referent_schema='public', ondelete='CASCADE') + + with op.batch_alter_table('tenant_domain', schema=None) as batch_op: + batch_op.drop_constraint('tenant_domain_created_by_fkey', type_='foreignkey') + batch_op.drop_constraint('tenant_domain_updated_by_fkey', type_='foreignkey') + batch_op.drop_constraint('tenant_domain_tenant_id_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'user', ['updated_by'], ['id'], referent_schema='public') + batch_op.create_foreign_key(None, 'tenant', ['tenant_id'], ['id'], referent_schema='public') + batch_op.create_foreign_key(None, 'user', ['created_by'], ['id'], referent_schema='public') + + with op.batch_alter_table('user', schema=None) as batch_op: + batch_op.drop_constraint('user_tenant_id_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'tenant', ['tenant_id'], ['id'], referent_schema='public') + + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table('user', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('user_tenant_id_fkey', 'tenant', ['tenant_id'], ['id']) + + with op.batch_alter_table('tenant_domain', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('tenant_domain_tenant_id_fkey', 'tenant', ['tenant_id'], ['id']) + batch_op.create_foreign_key('tenant_domain_updated_by_fkey', 'user', ['updated_by'], ['id']) + batch_op.create_foreign_key('tenant_domain_created_by_fkey', 'user', ['created_by'], ['id']) + + with op.batch_alter_table('roles_users', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('roles_users_role_id_fkey', 'role', ['role_id'], ['id'], ondelete='CASCADE') + batch_op.create_foreign_key('roles_users_user_id_fkey', 'user', ['user_id'], ['id'], ondelete='CASCADE') + + # ### end Alembic commands ### diff --git a/migrations/public/versions/1751a5318d34_2024_07_04t09_21_49z.py b/migrations/public/versions/1751a5318d34_2024_07_04t09_21_49z.py new file mode 100644 index 0000000..3da2216 --- /dev/null +++ b/migrations/public/versions/1751a5318d34_2024_07_04t09_21_49z.py @@ -0,0 +1,62 @@ +"""2024-07-04T09:21:49Z + +Revision ID: 1751a5318d34 +Revises: df7bd57b7ae8 +Create Date: 2024-07-04 09:21:50.715334 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = '1751a5318d34' +down_revision = 'df7bd57b7ae8' +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table('roles_users', schema=None) as batch_op: + batch_op.drop_constraint('roles_users_role_id_fkey', type_='foreignkey') + batch_op.drop_constraint('roles_users_user_id_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'role', ['role_id'], ['id'], referent_schema='public', ondelete='CASCADE') + batch_op.create_foreign_key(None, 'user', ['user_id'], ['id'], referent_schema='public', ondelete='CASCADE') + + with op.batch_alter_table('tenant_domain', schema=None) as batch_op: + batch_op.drop_constraint('tenant_domain_created_by_fkey', type_='foreignkey') + batch_op.drop_constraint('tenant_domain_updated_by_fkey', type_='foreignkey') + batch_op.drop_constraint('tenant_domain_tenant_id_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'tenant', ['tenant_id'], ['id'], referent_schema='public') + batch_op.create_foreign_key(None, 'user', ['updated_by'], ['id'], referent_schema='public') + batch_op.create_foreign_key(None, 'user', ['created_by'], ['id'], referent_schema='public') + + with op.batch_alter_table('user', schema=None) as batch_op: + batch_op.drop_constraint('user_tenant_id_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'tenant', ['tenant_id'], ['id'], referent_schema='public') + + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table('user', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('user_tenant_id_fkey', 'tenant', ['tenant_id'], ['id']) + + with op.batch_alter_table('tenant_domain', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('tenant_domain_tenant_id_fkey', 'tenant', ['tenant_id'], ['id']) + batch_op.create_foreign_key('tenant_domain_updated_by_fkey', 'user', ['updated_by'], ['id']) + batch_op.create_foreign_key('tenant_domain_created_by_fkey', 'user', ['created_by'], ['id']) + + with op.batch_alter_table('roles_users', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('roles_users_user_id_fkey', 'user', ['user_id'], ['id'], ondelete='CASCADE') + batch_op.create_foreign_key('roles_users_role_id_fkey', 'role', ['role_id'], ['id'], ondelete='CASCADE') + + # ### end Alembic commands ### diff --git a/migrations/public/versions/2a18dab7d1a4_2024_07_04t09_43_14z.py b/migrations/public/versions/2a18dab7d1a4_2024_07_04t09_43_14z.py new file mode 100644 index 0000000..d0de6d1 --- /dev/null +++ b/migrations/public/versions/2a18dab7d1a4_2024_07_04t09_43_14z.py @@ -0,0 +1,62 @@ +"""2024-07-04T09:43:14Z + +Revision ID: 2a18dab7d1a4 +Revises: 167d821471ed +Create Date: 2024-07-04 09:43:16.445891 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = '2a18dab7d1a4' +down_revision = '167d821471ed' +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table('roles_users', schema=None) as batch_op: + batch_op.drop_constraint('roles_users_role_id_fkey', type_='foreignkey') + batch_op.drop_constraint('roles_users_user_id_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'user', ['user_id'], ['id'], referent_schema='public', ondelete='CASCADE') + batch_op.create_foreign_key(None, 'role', ['role_id'], ['id'], referent_schema='public', ondelete='CASCADE') + + with op.batch_alter_table('tenant_domain', schema=None) as batch_op: + batch_op.drop_constraint('tenant_domain_tenant_id_fkey', type_='foreignkey') + batch_op.drop_constraint('tenant_domain_updated_by_fkey', type_='foreignkey') + batch_op.drop_constraint('tenant_domain_created_by_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'user', ['created_by'], ['id'], referent_schema='public') + batch_op.create_foreign_key(None, 'tenant', ['tenant_id'], ['id'], referent_schema='public') + batch_op.create_foreign_key(None, 'user', ['updated_by'], ['id'], referent_schema='public') + + with op.batch_alter_table('user', schema=None) as batch_op: + batch_op.drop_constraint('user_tenant_id_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'tenant', ['tenant_id'], ['id'], referent_schema='public') + + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table('user', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('user_tenant_id_fkey', 'tenant', ['tenant_id'], ['id']) + + with op.batch_alter_table('tenant_domain', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('tenant_domain_created_by_fkey', 'user', ['created_by'], ['id']) + batch_op.create_foreign_key('tenant_domain_updated_by_fkey', 'user', ['updated_by'], ['id']) + batch_op.create_foreign_key('tenant_domain_tenant_id_fkey', 'tenant', ['tenant_id'], ['id']) + + with op.batch_alter_table('roles_users', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('roles_users_user_id_fkey', 'user', ['user_id'], ['id'], ondelete='CASCADE') + batch_op.create_foreign_key('roles_users_role_id_fkey', 'role', ['role_id'], ['id'], ondelete='CASCADE') + + # ### end Alembic commands ### diff --git a/migrations/public/versions/38b9e73d847f_2024_07_04t09_38_14z.py b/migrations/public/versions/38b9e73d847f_2024_07_04t09_38_14z.py new file mode 100644 index 0000000..f07904e --- /dev/null +++ b/migrations/public/versions/38b9e73d847f_2024_07_04t09_38_14z.py @@ -0,0 +1,62 @@ +"""2024-07-04T09:38:14Z + +Revision ID: 38b9e73d847f +Revises: d93eab8ce138 +Create Date: 2024-07-04 09:38:16.081254 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = '38b9e73d847f' +down_revision = 'd93eab8ce138' +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table('roles_users', schema=None) as batch_op: + batch_op.drop_constraint('roles_users_role_id_fkey', type_='foreignkey') + batch_op.drop_constraint('roles_users_user_id_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'user', ['user_id'], ['id'], referent_schema='public', ondelete='CASCADE') + batch_op.create_foreign_key(None, 'role', ['role_id'], ['id'], referent_schema='public', ondelete='CASCADE') + + with op.batch_alter_table('tenant_domain', schema=None) as batch_op: + batch_op.drop_constraint('tenant_domain_tenant_id_fkey', type_='foreignkey') + batch_op.drop_constraint('tenant_domain_created_by_fkey', type_='foreignkey') + batch_op.drop_constraint('tenant_domain_updated_by_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'user', ['updated_by'], ['id'], referent_schema='public') + batch_op.create_foreign_key(None, 'user', ['created_by'], ['id'], referent_schema='public') + batch_op.create_foreign_key(None, 'tenant', ['tenant_id'], ['id'], referent_schema='public') + + with op.batch_alter_table('user', schema=None) as batch_op: + batch_op.drop_constraint('user_tenant_id_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'tenant', ['tenant_id'], ['id'], referent_schema='public') + + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table('user', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('user_tenant_id_fkey', 'tenant', ['tenant_id'], ['id']) + + with op.batch_alter_table('tenant_domain', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('tenant_domain_updated_by_fkey', 'user', ['updated_by'], ['id']) + batch_op.create_foreign_key('tenant_domain_created_by_fkey', 'user', ['created_by'], ['id']) + batch_op.create_foreign_key('tenant_domain_tenant_id_fkey', 'tenant', ['tenant_id'], ['id']) + + with op.batch_alter_table('roles_users', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('roles_users_user_id_fkey', 'user', ['user_id'], ['id'], ondelete='CASCADE') + batch_op.create_foreign_key('roles_users_role_id_fkey', 'role', ['role_id'], ['id'], ondelete='CASCADE') + + # ### end Alembic commands ### diff --git a/migrations/public/versions/668e4a1000cb_2024_07_04t12_47_41z.py b/migrations/public/versions/668e4a1000cb_2024_07_04t12_47_41z.py new file mode 100644 index 0000000..a3093cc --- /dev/null +++ b/migrations/public/versions/668e4a1000cb_2024_07_04t12_47_41z.py @@ -0,0 +1,62 @@ +"""2024-07-04T12:47:41Z + +Revision ID: 668e4a1000cb +Revises: 89a287bbd574 +Create Date: 2024-07-04 12:47:42.696406 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = '668e4a1000cb' +down_revision = '89a287bbd574' +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table('roles_users', schema=None) as batch_op: + batch_op.drop_constraint('roles_users_user_id_fkey', type_='foreignkey') + batch_op.drop_constraint('roles_users_role_id_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'user', ['user_id'], ['id'], referent_schema='public', ondelete='CASCADE') + batch_op.create_foreign_key(None, 'role', ['role_id'], ['id'], referent_schema='public', ondelete='CASCADE') + + with op.batch_alter_table('tenant_domain', schema=None) as batch_op: + batch_op.drop_constraint('tenant_domain_created_by_fkey', type_='foreignkey') + batch_op.drop_constraint('tenant_domain_tenant_id_fkey', type_='foreignkey') + batch_op.drop_constraint('tenant_domain_updated_by_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'user', ['updated_by'], ['id'], referent_schema='public') + batch_op.create_foreign_key(None, 'user', ['created_by'], ['id'], referent_schema='public') + batch_op.create_foreign_key(None, 'tenant', ['tenant_id'], ['id'], referent_schema='public') + + with op.batch_alter_table('user', schema=None) as batch_op: + batch_op.drop_constraint('user_tenant_id_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'tenant', ['tenant_id'], ['id'], referent_schema='public') + + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table('user', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('user_tenant_id_fkey', 'tenant', ['tenant_id'], ['id']) + + with op.batch_alter_table('tenant_domain', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('tenant_domain_updated_by_fkey', 'user', ['updated_by'], ['id']) + batch_op.create_foreign_key('tenant_domain_tenant_id_fkey', 'tenant', ['tenant_id'], ['id']) + batch_op.create_foreign_key('tenant_domain_created_by_fkey', 'user', ['created_by'], ['id']) + + with op.batch_alter_table('roles_users', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('roles_users_role_id_fkey', 'role', ['role_id'], ['id'], ondelete='CASCADE') + batch_op.create_foreign_key('roles_users_user_id_fkey', 'user', ['user_id'], ['id'], ondelete='CASCADE') + + # ### end Alembic commands ### diff --git a/migrations/public/versions/89a287bbd574_2024_07_04t12_28_00z.py b/migrations/public/versions/89a287bbd574_2024_07_04t12_28_00z.py new file mode 100644 index 0000000..4de1407 --- /dev/null +++ b/migrations/public/versions/89a287bbd574_2024_07_04t12_28_00z.py @@ -0,0 +1,62 @@ +"""2024-07-04T12:28:00Z + +Revision ID: 89a287bbd574 +Revises: cda254aa11ec +Create Date: 2024-07-04 12:28:01.628253 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = '89a287bbd574' +down_revision = 'cda254aa11ec' +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table('roles_users', schema=None) as batch_op: + batch_op.drop_constraint('roles_users_role_id_fkey', type_='foreignkey') + batch_op.drop_constraint('roles_users_user_id_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'role', ['role_id'], ['id'], referent_schema='public', ondelete='CASCADE') + batch_op.create_foreign_key(None, 'user', ['user_id'], ['id'], referent_schema='public', ondelete='CASCADE') + + with op.batch_alter_table('tenant_domain', schema=None) as batch_op: + batch_op.drop_constraint('tenant_domain_created_by_fkey', type_='foreignkey') + batch_op.drop_constraint('tenant_domain_updated_by_fkey', type_='foreignkey') + batch_op.drop_constraint('tenant_domain_tenant_id_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'user', ['created_by'], ['id'], referent_schema='public') + batch_op.create_foreign_key(None, 'user', ['updated_by'], ['id'], referent_schema='public') + batch_op.create_foreign_key(None, 'tenant', ['tenant_id'], ['id'], referent_schema='public') + + with op.batch_alter_table('user', schema=None) as batch_op: + batch_op.drop_constraint('user_tenant_id_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'tenant', ['tenant_id'], ['id'], referent_schema='public') + + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table('user', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('user_tenant_id_fkey', 'tenant', ['tenant_id'], ['id']) + + with op.batch_alter_table('tenant_domain', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('tenant_domain_tenant_id_fkey', 'tenant', ['tenant_id'], ['id']) + batch_op.create_foreign_key('tenant_domain_updated_by_fkey', 'user', ['updated_by'], ['id']) + batch_op.create_foreign_key('tenant_domain_created_by_fkey', 'user', ['created_by'], ['id']) + + with op.batch_alter_table('roles_users', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('roles_users_user_id_fkey', 'user', ['user_id'], ['id'], ondelete='CASCADE') + batch_op.create_foreign_key('roles_users_role_id_fkey', 'role', ['role_id'], ['id'], ondelete='CASCADE') + + # ### end Alembic commands ### diff --git a/migrations/public/versions/8ab72fe23ee4_2024_07_04t12_51_36z.py b/migrations/public/versions/8ab72fe23ee4_2024_07_04t12_51_36z.py new file mode 100644 index 0000000..11cfce3 --- /dev/null +++ b/migrations/public/versions/8ab72fe23ee4_2024_07_04t12_51_36z.py @@ -0,0 +1,62 @@ +"""2024-07-04T12:51:36Z + +Revision ID: 8ab72fe23ee4 +Revises: 668e4a1000cb +Create Date: 2024-07-04 12:51:37.394042 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = '8ab72fe23ee4' +down_revision = '668e4a1000cb' +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table('roles_users', schema=None) as batch_op: + batch_op.drop_constraint('roles_users_user_id_fkey', type_='foreignkey') + batch_op.drop_constraint('roles_users_role_id_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'role', ['role_id'], ['id'], referent_schema='public', ondelete='CASCADE') + batch_op.create_foreign_key(None, 'user', ['user_id'], ['id'], referent_schema='public', ondelete='CASCADE') + + with op.batch_alter_table('tenant_domain', schema=None) as batch_op: + batch_op.drop_constraint('tenant_domain_updated_by_fkey', type_='foreignkey') + batch_op.drop_constraint('tenant_domain_created_by_fkey', type_='foreignkey') + batch_op.drop_constraint('tenant_domain_tenant_id_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'user', ['updated_by'], ['id'], referent_schema='public') + batch_op.create_foreign_key(None, 'tenant', ['tenant_id'], ['id'], referent_schema='public') + batch_op.create_foreign_key(None, 'user', ['created_by'], ['id'], referent_schema='public') + + with op.batch_alter_table('user', schema=None) as batch_op: + batch_op.drop_constraint('user_tenant_id_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'tenant', ['tenant_id'], ['id'], referent_schema='public') + + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table('user', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('user_tenant_id_fkey', 'tenant', ['tenant_id'], ['id']) + + with op.batch_alter_table('tenant_domain', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('tenant_domain_tenant_id_fkey', 'tenant', ['tenant_id'], ['id']) + batch_op.create_foreign_key('tenant_domain_created_by_fkey', 'user', ['created_by'], ['id']) + batch_op.create_foreign_key('tenant_domain_updated_by_fkey', 'user', ['updated_by'], ['id']) + + with op.batch_alter_table('roles_users', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('roles_users_role_id_fkey', 'role', ['role_id'], ['id'], ondelete='CASCADE') + batch_op.create_foreign_key('roles_users_user_id_fkey', 'user', ['user_id'], ['id'], ondelete='CASCADE') + + # ### end Alembic commands ### diff --git a/migrations/public/versions/cda254aa11ec_2024_07_04t09_59_04z.py b/migrations/public/versions/cda254aa11ec_2024_07_04t09_59_04z.py new file mode 100644 index 0000000..bd3f22b --- /dev/null +++ b/migrations/public/versions/cda254aa11ec_2024_07_04t09_59_04z.py @@ -0,0 +1,62 @@ +"""2024-07-04T09:59:04Z + +Revision ID: cda254aa11ec +Revises: 2a18dab7d1a4 +Create Date: 2024-07-04 09:59:05.543007 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = 'cda254aa11ec' +down_revision = '2a18dab7d1a4' +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table('roles_users', schema=None) as batch_op: + batch_op.drop_constraint('roles_users_role_id_fkey', type_='foreignkey') + batch_op.drop_constraint('roles_users_user_id_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'user', ['user_id'], ['id'], referent_schema='public', ondelete='CASCADE') + batch_op.create_foreign_key(None, 'role', ['role_id'], ['id'], referent_schema='public', ondelete='CASCADE') + + with op.batch_alter_table('tenant_domain', schema=None) as batch_op: + batch_op.drop_constraint('tenant_domain_tenant_id_fkey', type_='foreignkey') + batch_op.drop_constraint('tenant_domain_updated_by_fkey', type_='foreignkey') + batch_op.drop_constraint('tenant_domain_created_by_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'tenant', ['tenant_id'], ['id'], referent_schema='public') + batch_op.create_foreign_key(None, 'user', ['created_by'], ['id'], referent_schema='public') + batch_op.create_foreign_key(None, 'user', ['updated_by'], ['id'], referent_schema='public') + + with op.batch_alter_table('user', schema=None) as batch_op: + batch_op.drop_constraint('user_tenant_id_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'tenant', ['tenant_id'], ['id'], referent_schema='public') + + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table('user', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('user_tenant_id_fkey', 'tenant', ['tenant_id'], ['id']) + + with op.batch_alter_table('tenant_domain', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('tenant_domain_created_by_fkey', 'user', ['created_by'], ['id']) + batch_op.create_foreign_key('tenant_domain_updated_by_fkey', 'user', ['updated_by'], ['id']) + batch_op.create_foreign_key('tenant_domain_tenant_id_fkey', 'tenant', ['tenant_id'], ['id']) + + with op.batch_alter_table('roles_users', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('roles_users_user_id_fkey', 'user', ['user_id'], ['id'], ondelete='CASCADE') + batch_op.create_foreign_key('roles_users_role_id_fkey', 'role', ['role_id'], ['id'], ondelete='CASCADE') + + # ### end Alembic commands ### diff --git a/migrations/public/versions/d93eab8ce138_2024_07_04t09_36_42z.py b/migrations/public/versions/d93eab8ce138_2024_07_04t09_36_42z.py new file mode 100644 index 0000000..a90e323 --- /dev/null +++ b/migrations/public/versions/d93eab8ce138_2024_07_04t09_36_42z.py @@ -0,0 +1,62 @@ +"""2024-07-04T09:36:42Z + +Revision ID: d93eab8ce138 +Revises: ff206102492b +Create Date: 2024-07-04 09:36:44.423035 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = 'd93eab8ce138' +down_revision = 'ff206102492b' +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table('roles_users', schema=None) as batch_op: + batch_op.drop_constraint('roles_users_role_id_fkey', type_='foreignkey') + batch_op.drop_constraint('roles_users_user_id_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'user', ['user_id'], ['id'], referent_schema='public', ondelete='CASCADE') + batch_op.create_foreign_key(None, 'role', ['role_id'], ['id'], referent_schema='public', ondelete='CASCADE') + + with op.batch_alter_table('tenant_domain', schema=None) as batch_op: + batch_op.drop_constraint('tenant_domain_tenant_id_fkey', type_='foreignkey') + batch_op.drop_constraint('tenant_domain_created_by_fkey', type_='foreignkey') + batch_op.drop_constraint('tenant_domain_updated_by_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'tenant', ['tenant_id'], ['id'], referent_schema='public') + batch_op.create_foreign_key(None, 'user', ['created_by'], ['id'], referent_schema='public') + batch_op.create_foreign_key(None, 'user', ['updated_by'], ['id'], referent_schema='public') + + with op.batch_alter_table('user', schema=None) as batch_op: + batch_op.drop_constraint('user_tenant_id_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'tenant', ['tenant_id'], ['id'], referent_schema='public') + + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table('user', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('user_tenant_id_fkey', 'tenant', ['tenant_id'], ['id']) + + with op.batch_alter_table('tenant_domain', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('tenant_domain_updated_by_fkey', 'user', ['updated_by'], ['id']) + batch_op.create_foreign_key('tenant_domain_created_by_fkey', 'user', ['created_by'], ['id']) + batch_op.create_foreign_key('tenant_domain_tenant_id_fkey', 'tenant', ['tenant_id'], ['id']) + + with op.batch_alter_table('roles_users', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('roles_users_user_id_fkey', 'user', ['user_id'], ['id'], ondelete='CASCADE') + batch_op.create_foreign_key('roles_users_role_id_fkey', 'role', ['role_id'], ['id'], ondelete='CASCADE') + + # ### end Alembic commands ### diff --git a/migrations/public/versions/df7bd57b7ae8_2024_07_04t09_08_45z.py b/migrations/public/versions/df7bd57b7ae8_2024_07_04t09_08_45z.py new file mode 100644 index 0000000..cac97de --- /dev/null +++ b/migrations/public/versions/df7bd57b7ae8_2024_07_04t09_08_45z.py @@ -0,0 +1,62 @@ +"""2024-07-04T09:08:45Z + +Revision ID: df7bd57b7ae8 +Revises: edb5953e3438 +Create Date: 2024-07-04 09:08:47.284217 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = 'df7bd57b7ae8' +down_revision = 'edb5953e3438' +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table('roles_users', schema=None) as batch_op: + batch_op.drop_constraint('roles_users_role_id_fkey', type_='foreignkey') + batch_op.drop_constraint('roles_users_user_id_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'user', ['user_id'], ['id'], referent_schema='public', ondelete='CASCADE') + batch_op.create_foreign_key(None, 'role', ['role_id'], ['id'], referent_schema='public', ondelete='CASCADE') + + with op.batch_alter_table('tenant_domain', schema=None) as batch_op: + batch_op.drop_constraint('tenant_domain_updated_by_fkey', type_='foreignkey') + batch_op.drop_constraint('tenant_domain_tenant_id_fkey', type_='foreignkey') + batch_op.drop_constraint('tenant_domain_created_by_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'user', ['created_by'], ['id'], referent_schema='public') + batch_op.create_foreign_key(None, 'tenant', ['tenant_id'], ['id'], referent_schema='public') + batch_op.create_foreign_key(None, 'user', ['updated_by'], ['id'], referent_schema='public') + + with op.batch_alter_table('user', schema=None) as batch_op: + batch_op.drop_constraint('user_tenant_id_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'tenant', ['tenant_id'], ['id'], referent_schema='public') + + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table('user', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('user_tenant_id_fkey', 'tenant', ['tenant_id'], ['id']) + + with op.batch_alter_table('tenant_domain', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('tenant_domain_created_by_fkey', 'user', ['created_by'], ['id']) + batch_op.create_foreign_key('tenant_domain_tenant_id_fkey', 'tenant', ['tenant_id'], ['id']) + batch_op.create_foreign_key('tenant_domain_updated_by_fkey', 'user', ['updated_by'], ['id']) + + with op.batch_alter_table('roles_users', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('roles_users_user_id_fkey', 'user', ['user_id'], ['id'], ondelete='CASCADE') + batch_op.create_foreign_key('roles_users_role_id_fkey', 'role', ['role_id'], ['id'], ondelete='CASCADE') + + # ### end Alembic commands ### diff --git a/migrations/public/versions/e76f189a6489_2024_07_04t09_40_45z.py b/migrations/public/versions/e76f189a6489_2024_07_04t09_40_45z.py new file mode 100644 index 0000000..cacb729 --- /dev/null +++ b/migrations/public/versions/e76f189a6489_2024_07_04t09_40_45z.py @@ -0,0 +1,62 @@ +"""2024-07-04T09:40:45Z + +Revision ID: e76f189a6489 +Revises: 38b9e73d847f +Create Date: 2024-07-04 09:40:46.984037 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = 'e76f189a6489' +down_revision = '38b9e73d847f' +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table('roles_users', schema=None) as batch_op: + batch_op.drop_constraint('roles_users_role_id_fkey', type_='foreignkey') + batch_op.drop_constraint('roles_users_user_id_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'user', ['user_id'], ['id'], referent_schema='public', ondelete='CASCADE') + batch_op.create_foreign_key(None, 'role', ['role_id'], ['id'], referent_schema='public', ondelete='CASCADE') + + with op.batch_alter_table('tenant_domain', schema=None) as batch_op: + batch_op.drop_constraint('tenant_domain_updated_by_fkey', type_='foreignkey') + batch_op.drop_constraint('tenant_domain_created_by_fkey', type_='foreignkey') + batch_op.drop_constraint('tenant_domain_tenant_id_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'tenant', ['tenant_id'], ['id'], referent_schema='public') + batch_op.create_foreign_key(None, 'user', ['created_by'], ['id'], referent_schema='public') + batch_op.create_foreign_key(None, 'user', ['updated_by'], ['id'], referent_schema='public') + + with op.batch_alter_table('user', schema=None) as batch_op: + batch_op.drop_constraint('user_tenant_id_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'tenant', ['tenant_id'], ['id'], referent_schema='public') + + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table('user', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('user_tenant_id_fkey', 'tenant', ['tenant_id'], ['id']) + + with op.batch_alter_table('tenant_domain', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('tenant_domain_tenant_id_fkey', 'tenant', ['tenant_id'], ['id']) + batch_op.create_foreign_key('tenant_domain_created_by_fkey', 'user', ['created_by'], ['id']) + batch_op.create_foreign_key('tenant_domain_updated_by_fkey', 'user', ['updated_by'], ['id']) + + with op.batch_alter_table('roles_users', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('roles_users_user_id_fkey', 'user', ['user_id'], ['id'], ondelete='CASCADE') + batch_op.create_foreign_key('roles_users_role_id_fkey', 'role', ['role_id'], ['id'], ondelete='CASCADE') + + # ### end Alembic commands ### diff --git a/migrations/public/versions/edb5953e3438_2024_07_04t08_18_50z.py b/migrations/public/versions/edb5953e3438_2024_07_04t08_18_50z.py new file mode 100644 index 0000000..b733304 --- /dev/null +++ b/migrations/public/versions/edb5953e3438_2024_07_04t08_18_50z.py @@ -0,0 +1,62 @@ +"""2024-07-04T08:18:50Z + +Revision ID: edb5953e3438 +Revises: fdc9ac232c49 +Create Date: 2024-07-04 08:18:51.422112 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = 'edb5953e3438' +down_revision = 'fdc9ac232c49' +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table('roles_users', schema=None) as batch_op: + batch_op.drop_constraint('roles_users_role_id_fkey', type_='foreignkey') + batch_op.drop_constraint('roles_users_user_id_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'role', ['role_id'], ['id'], referent_schema='public', ondelete='CASCADE') + batch_op.create_foreign_key(None, 'user', ['user_id'], ['id'], referent_schema='public', ondelete='CASCADE') + + with op.batch_alter_table('tenant_domain', schema=None) as batch_op: + batch_op.drop_constraint('tenant_domain_updated_by_fkey', type_='foreignkey') + batch_op.drop_constraint('tenant_domain_created_by_fkey', type_='foreignkey') + batch_op.drop_constraint('tenant_domain_tenant_id_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'user', ['updated_by'], ['id'], referent_schema='public') + batch_op.create_foreign_key(None, 'user', ['created_by'], ['id'], referent_schema='public') + batch_op.create_foreign_key(None, 'tenant', ['tenant_id'], ['id'], referent_schema='public') + + with op.batch_alter_table('user', schema=None) as batch_op: + batch_op.drop_constraint('user_tenant_id_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'tenant', ['tenant_id'], ['id'], referent_schema='public') + + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table('user', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('user_tenant_id_fkey', 'tenant', ['tenant_id'], ['id']) + + with op.batch_alter_table('tenant_domain', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('tenant_domain_tenant_id_fkey', 'tenant', ['tenant_id'], ['id']) + batch_op.create_foreign_key('tenant_domain_created_by_fkey', 'user', ['created_by'], ['id']) + batch_op.create_foreign_key('tenant_domain_updated_by_fkey', 'user', ['updated_by'], ['id']) + + with op.batch_alter_table('roles_users', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('roles_users_user_id_fkey', 'user', ['user_id'], ['id'], ondelete='CASCADE') + batch_op.create_foreign_key('roles_users_role_id_fkey', 'role', ['role_id'], ['id'], ondelete='CASCADE') + + # ### end Alembic commands ### diff --git a/migrations/public/versions/fdc9ac232c49_2024_07_04t07_39_16z.py b/migrations/public/versions/fdc9ac232c49_2024_07_04t07_39_16z.py new file mode 100644 index 0000000..454dc2a --- /dev/null +++ b/migrations/public/versions/fdc9ac232c49_2024_07_04t07_39_16z.py @@ -0,0 +1,62 @@ +"""2024-07-04T07:39:16Z + +Revision ID: fdc9ac232c49 +Revises: 358bb5f8ebf1 +Create Date: 2024-07-04 07:39:18.468658 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = 'fdc9ac232c49' +down_revision = '358bb5f8ebf1' +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table('roles_users', schema=None) as batch_op: + batch_op.drop_constraint('roles_users_user_id_fkey', type_='foreignkey') + batch_op.drop_constraint('roles_users_role_id_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'role', ['role_id'], ['id'], referent_schema='public', ondelete='CASCADE') + batch_op.create_foreign_key(None, 'user', ['user_id'], ['id'], referent_schema='public', ondelete='CASCADE') + + with op.batch_alter_table('tenant_domain', schema=None) as batch_op: + batch_op.drop_constraint('tenant_domain_updated_by_fkey', type_='foreignkey') + batch_op.drop_constraint('tenant_domain_created_by_fkey', type_='foreignkey') + batch_op.drop_constraint('tenant_domain_tenant_id_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'user', ['updated_by'], ['id'], referent_schema='public') + batch_op.create_foreign_key(None, 'user', ['created_by'], ['id'], referent_schema='public') + batch_op.create_foreign_key(None, 'tenant', ['tenant_id'], ['id'], referent_schema='public') + + with op.batch_alter_table('user', schema=None) as batch_op: + batch_op.drop_constraint('user_tenant_id_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'tenant', ['tenant_id'], ['id'], referent_schema='public') + + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table('user', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('user_tenant_id_fkey', 'tenant', ['tenant_id'], ['id']) + + with op.batch_alter_table('tenant_domain', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('tenant_domain_tenant_id_fkey', 'tenant', ['tenant_id'], ['id']) + batch_op.create_foreign_key('tenant_domain_created_by_fkey', 'user', ['created_by'], ['id']) + batch_op.create_foreign_key('tenant_domain_updated_by_fkey', 'user', ['updated_by'], ['id']) + + with op.batch_alter_table('roles_users', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('roles_users_role_id_fkey', 'role', ['role_id'], ['id'], ondelete='CASCADE') + batch_op.create_foreign_key('roles_users_user_id_fkey', 'user', ['user_id'], ['id'], ondelete='CASCADE') + + # ### end Alembic commands ### diff --git a/migrations/public/versions/ff206102492b_2024_07_04t09_28_42z.py b/migrations/public/versions/ff206102492b_2024_07_04t09_28_42z.py new file mode 100644 index 0000000..e2ca441 --- /dev/null +++ b/migrations/public/versions/ff206102492b_2024_07_04t09_28_42z.py @@ -0,0 +1,62 @@ +"""2024-07-04T09:28:42Z + +Revision ID: ff206102492b +Revises: 1751a5318d34 +Create Date: 2024-07-04 09:28:44.437097 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = 'ff206102492b' +down_revision = '1751a5318d34' +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table('roles_users', schema=None) as batch_op: + batch_op.drop_constraint('roles_users_role_id_fkey', type_='foreignkey') + batch_op.drop_constraint('roles_users_user_id_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'user', ['user_id'], ['id'], referent_schema='public', ondelete='CASCADE') + batch_op.create_foreign_key(None, 'role', ['role_id'], ['id'], referent_schema='public', ondelete='CASCADE') + + with op.batch_alter_table('tenant_domain', schema=None) as batch_op: + batch_op.drop_constraint('tenant_domain_tenant_id_fkey', type_='foreignkey') + batch_op.drop_constraint('tenant_domain_updated_by_fkey', type_='foreignkey') + batch_op.drop_constraint('tenant_domain_created_by_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'user', ['updated_by'], ['id'], referent_schema='public') + batch_op.create_foreign_key(None, 'tenant', ['tenant_id'], ['id'], referent_schema='public') + batch_op.create_foreign_key(None, 'user', ['created_by'], ['id'], referent_schema='public') + + with op.batch_alter_table('user', schema=None) as batch_op: + batch_op.drop_constraint('user_tenant_id_fkey', type_='foreignkey') + batch_op.create_foreign_key(None, 'tenant', ['tenant_id'], ['id'], referent_schema='public') + + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table('user', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('user_tenant_id_fkey', 'tenant', ['tenant_id'], ['id']) + + with op.batch_alter_table('tenant_domain', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('tenant_domain_created_by_fkey', 'user', ['created_by'], ['id']) + batch_op.create_foreign_key('tenant_domain_updated_by_fkey', 'user', ['updated_by'], ['id']) + batch_op.create_foreign_key('tenant_domain_tenant_id_fkey', 'tenant', ['tenant_id'], ['id']) + + with op.batch_alter_table('roles_users', schema=None) as batch_op: + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.drop_constraint(None, type_='foreignkey') + batch_op.create_foreign_key('roles_users_user_id_fkey', 'user', ['user_id'], ['id'], ondelete='CASCADE') + batch_op.create_foreign_key('roles_users_role_id_fkey', 'role', ['role_id'], ['id'], ondelete='CASCADE') + + # ### end Alembic commands ### diff --git a/migrations/tenant/.DS_Store b/migrations/tenant/.DS_Store index 0d35ada0668e0f2d6bdf18c38898be5dfd8561db..5c2ccff5255a7d1195b76126e2111f637b8e11b6 100644 GIT binary patch literal 10244 zcmeHMU2GIp6h3EKU?$zR1C)gVgDWKnc7<(`Rw&}O-4=>s3EMvkxa{r>bi(Y+vNO8{ z5mTdLjDkja@P!97YQh7O7!#F5Uy!JT#1MiQjT&DxF~+DN(HHdGxznb*+xnAelsGrJ z_sl)_oIB@!^PSnbcL4x9@@f-62mnN?Ov(XjrYLNj)v_XZnmHtq`~lLCq&fl`B+9IP zg^z%bfRBKWfRBKWz<&V&`psrVtm4vdeFS_2d;}&CVDEX-K+hGuEe3LT8V@mZl2K2Namn2QxjUeDXY_U`=-!?D zLasSrluN($5%3WxM}Y0!t7x~LfGiv;+P^1y3@e>7tQ1+Wq-v+S>Q}eW)wEv5zNUEE z%4A&|n0s-0%Z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(ih5d34WqU-sNr->t!83ryaM96iiN&atLvMZ@7odX?0#sxvTB}OEiI6S z5KzO`4r^*=U(8CVMp845^p9vsdw3wHSz26I`;1sh6|03?;`pM)ODdJ6%JTdWSG;3L z#?}1yIosbuxs}~j^pcgZhwG^)zC1A?~xR) z)8gGqTZmHm@*(!@u9#)_q*Y_WtB##Gc4f#Kj%C!I5hSE*)6qq#vuoJTjM|f$ZDu$m zeq|4(``C1?$t2EHxp>K<-iV^$9%)8SL;B;E^C*zNqLkJK*Yb@ifJLkgHn|%|iGo2K zBs<9g4A3+=MV=u97dwb@C1QmfRpW$&ch`@;j8m94G?{)vy$n!E#su z^{@$=VKcPBZs>w;=z%^s2!|jFF*pn+q~RD?Fba>uDL4&J!WnoGUV@k56?hBI!FhNG z-h+$q30#Fw;d8hSH{d3G2fxB?fe0X!3pK*MLY=Tys23W9W}!_8ao>e}lmJ`RyMqj-o1Lch^Qi~*)VvvdB3UXJH9@rtWke7+`oK|1RC$o_G z2h@F+d`LbfSI9V0_j_`S{6uaeU8`UTQgt<~fjVe_bx7B(&;r}werSgd*a^FkynV12 z24EiyK>}2y?l5SO0UNTAgGb>pB=Bi?0_poKJO|Ii3vd=*gV*5=c+(;B1^8$RF?SUb z6E00h%*khp&sMhgZ?Cw_&J;xio_w14GrfXy1ix|=&6SH}4Ba%?uWmkw3SISD9s(W$ z9s(W$9s;uoffDYFpMC#tpZWj)+2pe4i-&-Rz`u+Dl!hbWHk@>(<10J(`Y}I@nI)z- y#-(F|g>yDW>3ojI2KyYp1~b#mUyoTm==P0qi9MM9^FIT;`@eVpx2^y6{r?ZAUn(>J diff --git a/migrations/tenant/__pycache__/env.cpython-312.pyc b/migrations/tenant/__pycache__/env.cpython-312.pyc index 3b0344539907ebe4d4cebbea8f7dc317afed2918..fef0463d068e98ae9285e5e42d28b828c2507dd9 100644 GIT binary patch delta 278 zcmX@D{#Bj#G%qg~0}xowZcCdqkyn!O-$wOhMwuv?RGA{_R2dhBeuiYGbRdr9V_>Ld zsA0&mnmmtDR$eX-C>kY~!rQ_SC7;3vBo$Klfutf6Ln>RA%j5z^DX}6BAV)bxU^OGi z1_p*EMj&5tGYivYM#kjHH<-;t3Ucx*b5rw5^ixvHQgiYPK$exn&zTZZdP0+CD%{D#GB NKobs`3p-n}0023JO(y^V delta 260 zcmeyWep;RPG%qg~0}wDyw@wS2$ScYCVWWC7qn8UqKSMH8IuOV5F)-9J)G%aOfRv$v ziA+5LEI>823{kQvye$k-aw&X3Qa*(rNGdQfq_Sl>O)g-R5-Z{Wa+Fd8Rx?5jXkrBN z6*dboU1nsAoBWK~jK3^3C%+&!HLpZJwJg=qbF%?U2{WVB=B4bW%#043Z*#@6GKOxp z6ewV1RGz#_@ZID^LIGSMK*K-=7T=rvN2pU?MQgduLYwQ##ut^1FDsi~<1(8e)?wCf g*=>1=%dCNY@TCHg6;WvMy&1t9ij9u{L} E0JZxOBme*a delta 47 zcmX@Yx1W#uG%qg~0}!xHx8BITo0)OOTCHg6;WvMy&1t9ijGbU{& E0LwoS$N&HU delta 47 zcmaFH@sNZ2G%qg~0}!YNnr-BM%E&l%@<&E9{<74Z{DR!nyb}G?vQ$UU&DKoXOaM{N B4sZYf diff --git a/migrations/tenant/versions/__pycache__/45620002ae0d_additional_processing_fields_added_to_.cpython-312.pyc b/migrations/tenant/versions/__pycache__/45620002ae0d_additional_processing_fields_added_to_.cpython-312.pyc index f16693524598b7ea73e3eeac08b10d46c79c789e..b23bc199c0d02096e3b5da3824ef387928d155e1 100644 GIT binary patch delta 52 zcmaFP_lA%AG%qg~0}!l9FWt!ffSGa5TCHg6;WvMy&1t9ijLl!e; E0MCIDhBfvJs=1NI_11Wo~L-iGE6IS!zyx0f@c1oUxG+ E0Hm@I{Qv*} delta 47 zcmey%`h%7GG%qg~0}w2J?X{6xjghf?vJs;he_3iyenD<(UWtBcS*oMw<{HLEMgUni B4$%Mr diff --git a/migrations/tenant/versions/__pycache__/53fee8f13cdb_defined_interaction_domain_2.cpython-312.pyc b/migrations/tenant/versions/__pycache__/53fee8f13cdb_defined_interaction_domain_2.cpython-312.pyc index 924e4f81367409a200f59f79a028af3cd0d7e076..7a7c28405ae27a0c9f1a466c48820776d8924db1 100644 GIT binary patch delta 52 zcmeB|o+8bCnwOW00SMNlmu}={=VY8TS(wvIq#!51GB-7^L_a09EHx*;0L0!L!D-F{ E0DS}x%>V!Z delta 47 zcmbOt-7n33nwOW00SK19_u9zK&dJz2S(wv|zbrK;zaTd?uS7q!EY;C-b1bJh3jj82 B4W|GA diff --git a/migrations/tenant/versions/__pycache__/5c67abd3b371_add_caching_for_latest_version_in_.cpython-312.pyc b/migrations/tenant/versions/__pycache__/5c67abd3b371_add_caching_for_latest_version_in_.cpython-312.pyc index cdfdba5d1e99b88e22f70491a36ed11b3e4c6a59..12e8790f289c346eebac6358c3c5cb35678af5fb 100644 GIT binary patch delta 52 zcmX@Zb&-qvG%qg~0}!l9FWtyp$iz5faxIgYNI_11Wo~L-iGE6IS!zyx0f@c%5K|Wu E0ICWRr2qf` delta 47 zcmcb}b%u-kG%qg~0}yEWnr-ARWMZ5=xt7U{zbrK;zaTd?uS7q!EY;C-^KqswCIB`C B4o(07 diff --git a/migrations/tenant/versions/__pycache__/5d5437d81041_add_embedding_model_for_openai_large_.cpython-312.pyc b/migrations/tenant/versions/__pycache__/5d5437d81041_add_embedding_model_for_openai_large_.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8f822fb47eee4e23c1a9be4e37d510a880d582ab GIT binary patch literal 1487 zcmah}Pj4Gl5Z_&|ch`$e)5@fXm0&?d$k2N2#G4okK||a~4oy;3s7Su7)_$+d_lqxRqMH^u)aNZsMRIMt-w1^WMC9^P3s} zRw$?((5?GlUB8pzxIdVZl8^}Fiy++P5ZC4qj|7+ZgtovlIpb#9V*Jgvvq)@9DBG4% zrmeurA?Zu5ts)utOT$b_xqW8|A^noq!3a5iPxk_ZUHy7M^o>6Dms+}OlOCR!RrM+! zIH42xdaK#cO=Q;Q7g4=hsZ}RCIBe*sx;Wp(b{)-CYU(nEMBP8 z^s3pYz2B(Kmlqbyg}SM#f3d7eJQafeI?YetO!Lz>cGwMpcN>N z;%~XG-ElF^9UgQz$PD%}$nkC$4$WcNK_!(ioM^rqcYzhfu0m*2X*qDWJfF%fKf*ms zsM7BZa5oAFRm0C++wI=K-jGVyCbr^AK(N#EKf%N0zz-v0JAOoqSBT@;WO&T_GdE@l zzxctp#zNrG*!XO@wl-%~jV1~Do!|>&H3;pS!8@Ve#DhdJE)DQf%V^@h8w@?{M+U+J z><0Z<_M9HEBk20jhyV`Q9bm$yAT*{M)v^(?4gs*@L9$?w5)cza%l#phxB74+!sJzW zY7tiG1KZ~Q6s4~>b~bj4=bwPo+G%}*zW?~{>bI-kUA}KV6sxKA=8yFQt-Pm|4>WU6 zGk-a^tC{=SN58)PP`mywG_hK- zH7*1D|7l8lDDE9$oyg!-5+)T_5nw&3H+co@aWHZgB$`9PEq{`|2KpPYLN*7J?ALbI zcF(-~NPI8$DCMbaSt#gQ7L{!muywj|0CE~UNP#gn4OAh?{}L^*>#ZZTLu|i$1F-L4 zH>4`U(9kHf0zbx{uqXWMg)fv3pmbX<{*b%{yKELi6WG%X&+~r^5-&b~nd8s?&cW~0 jQ-#aFwyiv#d40R^c%}%faC%#PCds@so)!4>aT@;sXUbf> literal 0 HcmV?d00001 diff --git a/migrations/tenant/versions/__pycache__/6fbceab656a8_adding_algorithm_information_in_the_.cpython-312.pyc b/migrations/tenant/versions/__pycache__/6fbceab656a8_adding_algorithm_information_in_the_.cpython-312.pyc index ae24acc0e3e515c5b19481ed19ddac78e33c552b..eea460b8cde3d739a0397fa6e21f9fb9cbf3fd9f 100644 GIT binary patch delta 52 zcmey!@r{G~G%qg~0}!l9FWty3!^AjivIdixNI_11Wo~L-iGE6IS!zyx0f@ahmx+Z5 E0HE^_XaE2J delta 47 zcmeyy@sWf3G%qg~0}yO?%Gk&)!^AjsvIdhGe_3iyenD<(UWtBcS*oMw<{~B*CICif B4aEQe diff --git a/migrations/tenant/versions/__pycache__/83b4a2aedbf1_initial_document_models_added.cpython-312.pyc b/migrations/tenant/versions/__pycache__/83b4a2aedbf1_initial_document_models_added.cpython-312.pyc index 756f7543d97a9f565565a0bbd3dbe2513db63c20..920338c91a08a591545fa0404c90c51d7d4f5362 100644 GIT binary patch delta 52 zcmbQJJWZMVG%qg~0}!l9FWty3$-_8#vMP_6NI_11Wo~L-iGE6IS!zyx0f@ahi$|Rm E0ET7|5&!@I delta 47 zcmbQHJW-kZG%qg~0}y2X)!4`_$-~$;S(V3(zbrK;zaTd?uS7q!EY;C-b3TtcD*!Yo B4V(Y~ diff --git a/migrations/tenant/versions/__pycache__/a3f3f5eaa3de_adding_detailed_question_information_to_.cpython-312.pyc b/migrations/tenant/versions/__pycache__/a3f3f5eaa3de_adding_detailed_question_information_to_.cpython-312.pyc index c21a38f8896a13856cb6fcd0ef8057e3b8c685f2..a37271f9accfd124622e804b427d4255c1b864e6 100644 GIT binary patch delta 52 zcmcc1^@xl6G%qg~0}!l9FWtz!go$z9TCHg6;WvMy&1t9k3uS^+C E0KT6RL;wH) delta 47 zcmaFFb(f3#G%qg~0}z<)%iPGlgo$zHTCHg6;WvMy&1t9ijHs&lQ E0LH5kpa1{> delta 47 zcmey$^?{4~G%qg~0}yb3D&EMwm5FiYhBfvJs=1NI_11Wo~L-iGE6IS!zyx0f@c1oUxG+ E0Hm@I{Qv*} delta 47 zcmey%`h%7GG%qg~0}yESxNqcEV`S`}Y{Y2BUzVDaUyz%cSE8R;N@F B4nhC` diff --git a/migrations/tenant/versions/__pycache__/f6ecc306055a_adding_session_id_to_chatsession.cpython-312.pyc b/migrations/tenant/versions/__pycache__/f6ecc306055a_adding_session_id_to_chatsession.cpython-312.pyc index 5ac8a453ba054c70ba35a4e560ccde5f3e20ad87..1ccec0d438193bfbbe611effc92f734be36f16dc 100644 GIT binary patch delta 52 zcmcc2af5^VG%qg~0}!l9FWtz^!o)ajvH+8rNI_11Wo~L-iGE6IS!zyx0f@ahl<6NM E0FW*a*#H0l delta 47 zcmcb?ahZerG%qg~0}yz!r*GtDVPc#(S%ArmzbrK;zaTd?uS7q!EY;C-a}?7*MgSpu B4U7N) diff --git a/migrations/tenant/versions/__pycache__/f88854b2ac59_full_support_for_multiple_embedding_.cpython-312.pyc b/migrations/tenant/versions/__pycache__/f88854b2ac59_full_support_for_multiple_embedding_.cpython-312.pyc index c7d857f52af7a056ff038c86621783b9c44fe7f3..770d81dbecd6be34ca153edc24242e71f7dcfb8a 100644 GIT binary patch delta 52 zcmX@CazcgsG%qg~0}!l9FWtz!hMjTNTCHg6;WvMy&1t9k3zwB;Y E0Kp3qO#lD@ delta 47 zcmX@1a#)4?G%qg~0}zxwvfjwOhMjTh&2 - echo "Usage: ./migrate.sh -m \"Your migration message\" -d migrations/public" + *) + echo "Invalid option: ${flag}" exit 1 - ;; + ;; esac done # Check if the message and directory are provided if [ -z "$message" ] || [ -z "$directory" ]; then echo "Both message and directory are required." - echo "Usage: ./migrate.sh -m \"Your migration message\" -d migrations/public" + echo "Usage: ./db_migrate.sh -m \"Your migration message\" -d migrations/public" exit 1 fi -# Set FLASK_APP environment variable -export FLASK_APP=scripts/run_eveai_app.py # Modify if your Flask app is initiated differently -export PYTHONPATH="$PYTHONPATH:/Volumes/OWC4M2_1/Dropbox/Josako's Dev/Josako/EveAI/Development/eveAI/" - # Run the Flask migration command flask db migrate -m "$message" -d "$directory" \ No newline at end of file diff --git a/scripts/db_upgrade.sh b/scripts/db_upgrade.sh deleted file mode 100755 index 9291172..0000000 --- a/scripts/db_upgrade.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash - -# Usage: ./upgrade.sh -d migrations/public - -cd "/Volumes/OWC4M2_1/Dropbox/Josako's Dev/Josako/EveAI/Development/eveAI/" || exit 1 -source "/Volumes/OWC4M2_1/Dropbox/Josako's Dev/Josako/EveAI/Development/eveAI/.venv/bin/activate" - -while getopts d: flag -do - case "${flag}" in - d) directory=${OPTARG};; - *) # Catch-all for unexpected arguments - echo "Invalid option: -$OPTARG" >&2 - echo "Usage: ./upgrade.sh -d migrations/public" - exit 1 - ;; - esac -done - -# Check if the directory is provided -if [ -z "$directory" ]; then - echo "Directory parameter is required." - echo "Usage: ./upgrade.sh -d migrations/public" - exit 1 -fi - -# Set FLASK_APP environment variable -export FLASK_APP=scripts/run_eveai_app.py # Modify if your Flask app is initiated differently -export PYTHONPATH="$PYTHONPATH:/Volumes/OWC4M2_1/Dropbox/Josako's Dev/Josako/EveAI/Development/eveAI/" - -# Run the Flask upgrade command -flask db upgrade -d "$directory" \ No newline at end of file