removed placeholder
This commit is contained in:
@@ -59,19 +59,13 @@ impl Default for AddTableState {
|
|||||||
table_name_input: String::new(),
|
table_name_input: String::new(),
|
||||||
column_name_input: String::new(),
|
column_name_input: String::new(),
|
||||||
column_type_input: String::new(),
|
column_type_input: String::new(),
|
||||||
columns: vec![
|
columns: Vec::new(),
|
||||||
ColumnDefinition { name: "id".to_string(), data_type: "INTEGER".to_string() },
|
indexes: Vec::new(),
|
||||||
ColumnDefinition { name: "name".to_string(), data_type: "TEXT".to_string() },
|
links: Vec::new(),
|
||||||
],
|
|
||||||
indexes: vec!["id".to_string()],
|
|
||||||
links: vec![
|
|
||||||
LinkDefinition { linked_table_name: "related_table".to_string(), is_required: true },
|
|
||||||
LinkDefinition { linked_table_name: "another_table".to_string(), is_required: false },
|
|
||||||
],
|
|
||||||
current_focus: AddTableFocus::InputTableName,
|
current_focus: AddTableFocus::InputTableName,
|
||||||
column_table_state: TableState::default().with_selected(0),
|
column_table_state: TableState::default(),
|
||||||
index_table_state: TableState::default().with_selected(0),
|
index_table_state: TableState::default(),
|
||||||
link_table_state: TableState::default().with_selected(0),
|
link_table_state: TableState::default(),
|
||||||
table_name_cursor_pos: 0,
|
table_name_cursor_pos: 0,
|
||||||
column_name_cursor_pos: 0,
|
column_name_cursor_pos: 0,
|
||||||
column_type_cursor_pos: 0,
|
column_type_cursor_pos: 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user