forked from geolba/tethys.backend
- add all migration files for database
- npm updates
This commit is contained in:
parent
8a404e8a0c
commit
4abcfe7135
29 changed files with 1540 additions and 375 deletions
32
database/migrations/runMigrationsDocker.txt
Normal file
32
database/migrations/runMigrationsDocker.txt
Normal file
|
@ -0,0 +1,32 @@
|
|||
|
||||
|
||||
|
||||
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
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue