As your application evolves, you will often need to alter a table’s schema — adding columns to store new data, changing a column’s type or constraints, or removing columns that are no longer needed. MySQL UI handles all of these operations from the Structure tab without requiring you to writeDocumentation Index
Fetch the complete documentation index at: https://docs.w22.dev/llms.txt
Use this file to discover all available pages before exploring further.
ALTER TABLE statements manually.
To get started, select a table from the sidebar and click the Structure tab.
Adding a column
- Click Add Column at the top-right of the columns section. The Add column dialog opens.
- Fill in the column details:
- Column name — the name for the new column.
- Type — choose a data type from the dropdown (e.g.,
INT,VARCHAR(255),TEXT,DATETIME,BOOLEAN,JSON). If the type you need is not in the list, type it directly into the custom type field below the dropdown. - Nullable — select
NULL (nullable)to allow null values, orNOT NULLto require a value on every row. - Default value — optionally enter a default that MySQL will use when no value is supplied. Leave this empty for no default.
- Click Add Column to confirm. The new column is appended to the table and the column list refreshes.
Modifying a column
- Find the column you want to change in the columns table.
- Click the pencil icon on that row. The Modify column dialog opens, pre-filled with the column’s current definition.
- Update any combination of the following:
- Column name — rename the column.
- Type — change the data type. Type the new type directly into the field (e.g.,
VARCHAR(500),BIGINT). - Nullable — switch between
NULL (nullable)andNOT NULL. - Default value — set, change, or clear the default.
- Click Save Changes. MySQL UI runs
ALTER TABLE ... MODIFY COLUMNand the column list updates to reflect the change.
Be careful when modifying columns that other tables reference through foreign keys. Changing the type of a referenced column — for example, from
INT to BIGINT — may require updating the referencing columns in those other tables as well, or MySQL will reject the change.Dropping a column
- Find the column you want to remove in the columns table.
- Click the trash icon on that row.
- A confirmation dialog appears describing the column that will be dropped.
- Click Drop Column to confirm.
