tethys.backend/database/migrations/runMigrationsDocker.txt

32 lines
771 B
Plaintext
Raw Normal View History

docker exec -it tethys_db /bin/bash
su -l postgres
psql
drop database test with (force);
create database test;
\q
psql -d test -U postgres -p 5432
CREATE SCHEMA IF NOT EXISTS gba AUTHORIZATION tethys_admin;
CREATE EXTENSION adminpack;
\q
exit
exit
node ace migration:run
migrated database/migrations/acl_1_roles
migrated database/migrations/acl_2_permissions
migrated database/migrations/acl_3_role_has_permissions
migrated database/migrations/acl_4_accounts
migrated database/migrations/acl_5_link_accounts_roles
migrated database/migrations/files_1681720090636_documents
migrated database/migrations/files_1681720091636_document_files
migrated database/migrations/files_1681720092636_file_hashvalues
node ace migration:rollback