tethys.backend/database/migrations/runMigrationsDocker.txt
2023-04-24 13:03:36 +02:00

32 lines
771 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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