mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-02-10 18:05:07 +08:00
[git actions] PR fixes and upgrade schema added
This commit is contained in:
5
.github/workflows/damengDatabaseTests.yml
vendored
5
.github/workflows/damengDatabaseTests.yml
vendored
@ -41,9 +41,8 @@ jobs:
|
||||
|
||||
- name: Creating schema
|
||||
run: |
|
||||
docker cp ./.github/workflows/scripts/damengStartup.sh dameng:/
|
||||
docker exec dameng chmod 667 /damengStartup.sh
|
||||
docker exec dameng /damengStartup.sh
|
||||
docker cp ./schema/dameng/createdb.sql dameng:/
|
||||
docker exec dameng bash -c "cat /createdb.sql | /opt/dmdbms/bin/disql SYSDBA/SYSDBA001:5236"
|
||||
|
||||
- name: Run Jest
|
||||
run: npm exec -c 'cd ./DocService && jest databaseTests --inject-globals=false --config=../tests/jest.config.js'
|
||||
33
.github/workflows/scripts/damengStartup.sh
vendored
33
.github/workflows/scripts/damengStartup.sh
vendored
@ -1,33 +0,0 @@
|
||||
#!/bin/bash
|
||||
# create user "onlyoffice" identified by "onlyoffice" password_policy 0;
|
||||
/opt/dmdbms/bin/disql SYSDBA/SYSDBA001:5236 <<EOF
|
||||
CREATE TABLE doc_changes
|
||||
(
|
||||
tenant varchar(255) NOT NULL,
|
||||
id varchar(255) NOT NULL,
|
||||
change_id int NOT NULL,
|
||||
user_id varchar(255) NOT NULL,
|
||||
user_id_original varchar(255) NOT NULL,
|
||||
user_name varchar(255) NOT NULL,
|
||||
change_data text NOT NULL,
|
||||
change_date TIMESTAMP(6) NOT NULL,
|
||||
PRIMARY KEY (tenant, id, change_id)
|
||||
);
|
||||
CREATE TABLE task_result
|
||||
(
|
||||
tenant varchar(255) NOT NULL,
|
||||
id varchar(255) NOT NULL,
|
||||
status int NOT NULL,
|
||||
status_info int NOT NULL,
|
||||
created_at TIMESTAMP(6) DEFAULT NOW(),
|
||||
last_open_date TIMESTAMP(6) NOT NULL,
|
||||
user_index int NOT NULL DEFAULT 1,
|
||||
change_id int NOT NULL DEFAULT 0,
|
||||
callback text NOT NULL,
|
||||
baseurl text NOT NULL,
|
||||
password text NULL,
|
||||
additional text NULL,
|
||||
PRIMARY KEY (tenant, id)
|
||||
);
|
||||
exit;
|
||||
EOF
|
||||
Reference in New Issue
Block a user