schema migrations: add feature
schema migrations: add feature: a task in smol-software-harbor (Harbor dataset). Write the migration migrations/002 customer email.sql : it adds a column email (TEXT, NOT NULL, default empty string) to customers and fills it from contacts : the customer's e-mail contact ( kind = 'email' ), taking…
The task
Write the migration `migrations/002_customer_email.sql`: it adds a column `email` (TEXT, NOT NULL, default empty string) to `customers` and fills it from `contacts`: the customer's e-mail contact (`kind = 'email'`), taking the alphabetically smallest when there are several; customers without an e-mail keep the empty…
Part of efederici/smol-software-harbor.