Skip to content

Commit

Permalink
update few sentences
Browse files Browse the repository at this point in the history
  • Loading branch information
akashthawaitcc committed Jan 3, 2025
1 parent 207f630 commit 82cd20c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
5 changes: 3 additions & 2 deletions docs/data-types/mysql.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,9 @@ It can be manually added to the DDL via an `ALTER TABLE` command.

## Check Constraints

While spanner supports check constraints, Spanner migration tool currently migrate all existing mysql check constraint to spanner. The non supported constraints can be drop manually.
Note: This feature is only available for MySQL versions 8.0.16 and above. For versions below this, users can manually add check constraints using the Spanner migration tool (SMT).
While spanner supports check constraints, Spanner migration tool currently migrate all existing check constraint from mysql to spanner.
If any unsupported check constraints exists during prepare migration phase, errors should be displayed on the Issues & Suggestions tab, and these check constraints can be dropped manually.
> Note: This feature is only available for MySQL versions 8.0.16 and above. For versions below this, users can manually add check constraints using the Spanner migration tool (SMT).
## Secondary Indexes

Expand Down
8 changes: 7 additions & 1 deletion docs/ui/schema-conv/issues.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ nav_order: 3
# Issues and Suggestions
{: .no_toc }

Spanner migration tool scans through the generated spanner schema and notifies the user of any warnings encountered. It also makes intelligent suggestions to the user which would help them utilize the spanner capabilities to the fullest.
Spanner migration tool scans through the generated spanner schema and notifies the user of any warnings or errors encountered. It also makes intelligent suggestions to the user which would help them utilize the spanner capabilities to the fullest.

<details open markdown="block">
<summary>
Expand All @@ -29,6 +29,12 @@ Spanner migration tool scans through the generated spanner schema and notifies t
- [Hotspotting](https://cloud.google.com/spanner/docs/schema-design) due to timestamp or auto-increment keys
- Auto Increment has been converted to Sequence, set Ignore Range or Start with Counter to avoid duplicate value errors

## Errors

- Detection of unsupported check constraints in spanner.
- Data type mismatch of referenced column in check constraints.
- Referenced column in check constraints not found.

## Suggestions

- Modifications related to converting a table into an interleaved one
Expand Down
9 changes: 7 additions & 2 deletions docs/ui/schema-conv/spanner-draft.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,19 @@ To interleave a `child table` within a `parent table`, the following conditions
Users can view and edit the check constraints of a table from the check constraints tab. They can modify the check constraint name, condition and drop the check constraint. Once these changes are made the [session file](../ui.md/#termsterminology) is updated.

![](https://services.google.com/fh/files/misc/cc3.png)
![](https://services.google.com/fh/files/misc/cc4.png)

#### Add Constraints
#### Add or Edit Constraint
In addition to editing the existing check constraint in the Spanner draft mapped from the source database, users can also add new constraint to the selected table.

![](https://services.google.com/fh/files/misc/cc2.png)

![](https://services.google.com/fh/files/misc/cc1.png)

#### Remove Constraint
In addition to adding check constraints, users can also remove the check constraints in the spanner draft for the selected table.

![](https://services.google.com/fh/files/misc/cc4.png)

### SQL

Once the user is done with all the schema modifications they can then visit the SQL tab which shows the Spanner DDL for the modified schema.
Expand Down

0 comments on commit 82cd20c

Please sign in to comment.