mirror of
https://github.com/Llloooggg/Dyxless.git
synced 2026-03-06 10:46:24 +03:00
Переход на postgresql
This commit is contained in:
11
runscripts/postgres/createdb.sh
Normal file
11
runscripts/postgres/createdb.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
sudo -u postgres psql
|
||||
|
||||
CREATE DATABASE dyxless;
|
||||
|
||||
CREATE ROLE dyxless;
|
||||
|
||||
ALTER USER dyxless WITH PASSWORD 'password';
|
||||
|
||||
ALTER ROLE "dyxless" WITH LOGIN;
|
||||
|
||||
ALTER DATABASE dyxless OWNER TO dyxless;
|
||||
8
runscripts/postgres/initdb.bat
Normal file
8
runscripts/postgres/initdb.bat
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
@echo off
|
||||
|
||||
set FLASK_APP=dyxless
|
||||
|
||||
flask db init
|
||||
flask db migrate
|
||||
flask db upgrade
|
||||
7
runscripts/postgres/initdb.sh
Normal file
7
runscripts/postgres/initdb.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
set echo off
|
||||
|
||||
export FLASK_APP=dyxless
|
||||
|
||||
flask db init
|
||||
flask db migrate
|
||||
flask db upgrade
|
||||
Reference in New Issue
Block a user