diff --git a/sql/repeatable/R__create_customers_view.sql b/sql/repeatable/R__create_customers_view.sql index 986c210..fefdb60 100644 --- a/sql/repeatable/R__create_customers_view.sql +++ b/sql/repeatable/R__create_customers_view.sql @@ -1,4 +1,5 @@ CREATE OR REPLACE VIEW v_customers AS - SELECT first_name, + SELECT first_name, + middle_name last_name - FROM customers \ No newline at end of file + FROM customers diff --git a/sql/versioned/V3__add_middle_name.sql b/sql/versioned/V3__add_middle_name.sql new file mode 100644 index 0000000..00f81f3 --- /dev/null +++ b/sql/versioned/V3__add_middle_name.sql @@ -0,0 +1 @@ +ALTER TABLE customers ADD COLUMN middle_name varchar(100)