You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-11-23 22:04:47 +02:00
Implement CIText as NOCASE alternative in postgresql
This commit is contained in:
@@ -7,7 +7,7 @@ import glob
|
||||
import os
|
||||
|
||||
def setup():
|
||||
conn = psycopg2.connect('user=postgres')
|
||||
conn = psycopg2.connect(user = 'postgres')
|
||||
queries = anosql.load_queries('postgres', '/conf/queries.sql')
|
||||
# Mailu user
|
||||
queries.create_mailu_user(conn)
|
||||
@@ -21,6 +21,10 @@ def setup():
|
||||
queries.create_db(conn)
|
||||
conn.set_isolation_level(1)
|
||||
conn.close()
|
||||
conn = psycopg2.connect(user = 'postgres', database= 'mailu')
|
||||
queries.create_citext(conn)
|
||||
conn.commit()
|
||||
conn.close()
|
||||
|
||||
# Bootstrap the database if postgresql is running for the first time
|
||||
if not os.path.exists('/var/lib/postgresql/data/pg_wal'):
|
||||
|
||||
Reference in New Issue
Block a user