-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: restore multi database contains view table and fk table report no such table #16311
Closed
1 task done
Labels
kind/bug
Something isn't working
severity/s0
Extreme impact: Cause the application to break down and seriously affect the use
Milestone
Comments
YANGGMM
added
kind/bug
Something isn't working
needs-triage
severity/s0
Extreme impact: Cause the application to break down and seriously affect the use
labels
May 22, 2024
YANGGMM
changed the title
[Bug]: restore multi database contains view table report no such table
[Bug]: restore multi database contains view table and fk table report no such table
May 22, 2024
{"level":"INFO","time":"2024/05/22 14:59:09.935246 +0800","name":"log-service.frontend","caller":"frontend/snapshot.go:633","msg":"[sp100] start to create table: employees, create table sql: CREATE TABLE `employees` (\n `employee_id` INT NOT NULL,\n `first_name` VARCHAR(50) DEFAULT NULL,\n `last_name` VARCHAR(50) DEFAULT NULL,\n `department_id` INT DEFAULT NULL,\n PRIMARY KEY (`employee_id`),\n CONSTRAINT `018f9f0f-c423-7641-95f3-cd451283f847` FOREIGN KEY (`department_id`) REFERENCES `departments` (`department_id`) ON DELETE RESTRICT ON UPDATE RESTRICT\n)","uuid":"7c4dccb4-4d3c-41f8-b482-5251dc7a41bf"} |
origin create table sql:
create table employees (
employee_id INT PRIMARY KEY,
first_name VARCHAR(50),
last_name VARCHAR(50),
department_id INT,
FOREIGN KEY (department_id) REFERENCES test03.departments(department_id)
);
now create table sql:
CREATE TABLE `employees` (
\n `employee_id` INT NOT NULL,
\n `first_name` VARCHAR(50) DEFAULT NULL,
\n `last_name` VARCHAR(50) DEFAULT NULL,
\n `department_id` INT DEFAULT NULL,
\n PRIMARY KEY (`employee_id`),
\n CONSTRAINT `018f9f0f-c423-7641-95f3-cd451283f847` FOREIGN KEY (`department_id`) REFERENCES `departments` (`department_id`) ON DELETE RESTRICT ON UPDATE RESTRICT\n
); |
This was referenced May 22, 2024
commit:0a99a7a5fc08c9927172bc34fd5089fe8538e4ea
|
This was referenced May 23, 2024
This was referenced May 24, 2024
test done |
7 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
kind/bug
Something isn't working
severity/s0
Extreme impact: Cause the application to break down and seriously affect the use
Is there an existing issue for the same bug?
Branch Name
main 1.2-dev
Commit ID
newest
Other Environment Information
Actual Behavior
Expected Behavior
No response
Steps to Reproduce
Additional information
No response
The text was updated successfully, but these errors were encountered: