feat: Add suffix and middle_name to onerep_profiles table
This commit is contained in:
Родитель
f384394449
Коммит
9aa385cbf1
|
@ -0,0 +1,21 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
export function up(knex) {
|
||||
return knex.schema.table('onerep_profiles', table => {
|
||||
table.varchar('name_suffix').after("onerep_profile_id");
|
||||
table.varchar('middle_name').after("first_name");
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param { import("knex").Knex } knex
|
||||
* @returns { Promise<void> }
|
||||
*/
|
||||
export function down(knex) {
|
||||
return knex.schema.table('onerep_profiles', table => {
|
||||
table.dropColumn('name_suffix');
|
||||
table.dropColumn('middle_name');
|
||||
});
|
||||
}
|
|
@ -265,7 +265,9 @@ declare module "knex/types/tables" {
|
|||
interface OnerepProfileRow {
|
||||
id: number;
|
||||
onerep_profile_id: null | number;
|
||||
name_suffix: null | string;
|
||||
first_name: string;
|
||||
middle_name: null | string;
|
||||
last_name: string;
|
||||
city_name: string;
|
||||
state_code: StateAbbr;
|
||||
|
|
Загрузка…
Ссылка в новой задаче