Skip to content

Commit 0773e15

Browse files
committed
Move most VARBINARY columns to VARCHAR in examples
Signed-off-by: kmr-rohit <rr7433446@gmail.com>
1 parent efd8292 commit 0773e15

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ _test/
7676

7777
# Local examples
7878
/examples/local/vtdataroot
79-
79+
/examples/region_sharding/vtdataroot
8080
/dist/
8181
/vthook/
8282
/bin/
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
create table if not exists product(
2-
sku varbinary(128),
3-
description varbinary(128),
2+
sku VARCHAR(128),
3+
description VARCHAR(128),
44
price bigint,
55
primary key(sku)
66
) ENGINE=InnoDB;
77
create table if not exists customer(
88
customer_id bigint not null auto_increment,
9-
email varbinary(128),
9+
email VARCHAR(128),
1010
primary key(customer_id)
1111
) ENGINE=InnoDB;
1212
create table if not exists corder(
1313
order_id bigint not null auto_increment,
1414
customer_id bigint,
15-
sku varbinary(128),
15+
sku VARCHAR(128),
1616
price bigint,
1717
primary key(order_id)
1818
) ENGINE=InnoDB;
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
create table if not exists product(
2-
sku varbinary(128),
3-
description varbinary(128),
2+
sku VARCHAR(128),
3+
description VARCHAR(128),
44
price bigint,
55
primary key(sku)
66
) ENGINE=InnoDB;
77
create table if not exists customer(
88
customer_id bigint not null auto_increment,
9-
email varbinary(128),
9+
email VARCHAR(128),
1010
primary key(customer_id)
1111
) ENGINE=InnoDB;
1212
create table if not exists corder(
1313
order_id bigint not null auto_increment,
1414
customer_id bigint,
15-
sku varbinary(128),
15+
sku VARCHAR(128),
1616
price bigint,
1717
primary key(order_id)
1818
) ENGINE=InnoDB;
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
CREATE TABLE IF NOT EXISTS customer (
22
id int NOT NULL,
3-
fullname varbinary(256),
4-
nationalid varbinary(256),
5-
country varbinary(256),
3+
fullname VARCHAR(256),
4+
nationalid VARCHAR(256),
5+
country VARCHAR(256),
66
primary key(id)
77
);

examples/region_sharding/main_vschema_sharded.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"column_vindexes": [
1515
{
1616
"columns": ["id", "country"],
17-
"name": "region_vdx"
17+
"name": "region_vdx"
1818
}
1919
]
2020
}

0 commit comments

Comments
 (0)