Skip to content

Commit cf238f6

Browse files
committed
test: add enum column to mysqlsh copy-instance test
1 parent 0ba0b75 commit cf238f6

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/mysql-copy-tests.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,16 @@ jobs:
5151
USE testdb;
5252
CREATE TABLE users (
5353
id INT AUTO_INCREMENT PRIMARY KEY,
54-
name VARCHAR(100)
54+
name VARCHAR(100),
55+
status ENUM('active', 'inactive', 'pending') DEFAULT 'pending'
5556
);
56-
INSERT INTO users (name) VALUES ('test1'), ('test2'), ('test3');
57+
INSERT INTO users (name, status) VALUES
58+
('test1', 'active'),
59+
('test2', 'inactive'),
60+
('test3', 'pending');
5761
-- Make a gap in the id sequence
58-
INSERT INTO users VALUES (100, 'test100');
59-
INSERT INTO users (name) VALUES ('test101');
62+
INSERT INTO users VALUES (100, 'test100', 'active');
63+
INSERT INTO users (name, status) VALUES ('test101', 'inactive');
6064
6165
-- A table with non-default starting auto_increment value
6266
CREATE TABLE items (
@@ -96,4 +100,4 @@ jobs:
96100
diff source_data_$table.tsv copied_data_$table.tsv
97101
done
98102
99-
103+

0 commit comments

Comments
 (0)