refactor(config): rename and re-type footer columns
This commit is contained in:
@@ -2,13 +2,13 @@ export async function up(knex) {
|
||||
await knex.schema.table('config', (table) => {
|
||||
table.boolean('enable_footer').defaultTo(false);
|
||||
table.text('footer_logo_svg_data');
|
||||
table.text('footer_copyright_text');
|
||||
table.text('footer_background_color');
|
||||
table.text('footer_text_color');
|
||||
table.text('footer_docs_link');
|
||||
table.text('footer_tos_link');
|
||||
table.text('footer_privacy_policy_link');
|
||||
table.text('footer_imprint_link');
|
||||
table.string('footer_copyright_text');
|
||||
table.string('footer_background_color');
|
||||
table.string('footer_text_color');
|
||||
table.string('footer_docs_url');
|
||||
table.string('footer_tos_url');
|
||||
table.string('footer_privacy_policy_url');
|
||||
table.string('footer_imprint_url');
|
||||
});
|
||||
}
|
||||
|
||||
@@ -19,9 +19,9 @@ export async function down(knex) {
|
||||
table.dropColumn('footer_logo_svg_data');
|
||||
table.dropColumn('footer_background_color');
|
||||
table.dropColumn('footer_text_color');
|
||||
table.dropColumn('footer_docs_link');
|
||||
table.dropColumn('footer_tos_link');
|
||||
table.dropColumn('footer_privacy_policy_link');
|
||||
table.dropColumn('footer_imprint_link');
|
||||
table.dropColumn('footer_docs_url');
|
||||
table.dropColumn('footer_tos_url');
|
||||
table.dropColumn('footer_privacy_policy_url');
|
||||
table.dropColumn('footer_imprint_url');
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user