From f8ecec996b3118ef52de6fa8be1706d559b3798a Mon Sep 17 00:00:00 2001 From: Alexander Walther Date: Fri, 13 Sep 2024 19:47:38 +0200 Subject: [PATCH] Update update_scheme.php --- install/update_scheme.php | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/install/update_scheme.php b/install/update_scheme.php index 7a97f04..fa5b38c 100644 --- a/install/update_scheme.php +++ b/install/update_scheme.php @@ -6,12 +6,12 @@ ->ensureColumn(new rex_sql_column('name', 'varchar(191)', false, '')) ->ensureColumn(new rex_sql_column('teaser', 'text')) ->ensureColumn(new rex_sql_column('description', 'text')) - ->ensureColumn(new rex_sql_column('domain_ids', 'text')) + ->ensureColumn(new rex_sql_column('domain_ids', 'varchar(191)')) ->ensureColumn(new rex_sql_column('lang_id', 'int(10) unsigned')) ->ensureColumn(new rex_sql_column('publishdate', 'datetime')) ->ensureColumn(new rex_sql_column('author_id', 'int(10) unsigned')) ->ensureColumn(new rex_sql_column('url', 'varchar(191)', false, '')) - ->ensureColumn(new rex_sql_column('image', 'text')) + ->ensureColumn(new rex_sql_column('image', 'varchar(191)')) ->ensureColumn(new rex_sql_column('images', 'text')) ->ensureColumn(new rex_sql_column('createdate', 'datetime')) ->ensureColumn(new rex_sql_column('createuser', 'varchar(191)')) @@ -27,8 +27,8 @@ rex_sql_table::get(rex::getTable('neues_category')) ->ensurePrimaryIdColumn() ->ensureColumn(new rex_sql_column('name', 'varchar(191)', false, '')) - ->ensureColumn(new rex_sql_column('image', 'text')) - ->ensureColumn(new rex_sql_column('status', 'text')) + ->ensureColumn(new rex_sql_column('image', 'varchar(191)')) + ->ensureColumn(new rex_sql_column('status', 'int(11)')) ->ensureColumn(new rex_sql_column('createuser', 'varchar(191)')) ->ensureColumn(new rex_sql_column('updateuser', 'varchar(191)')) ->ensureColumn(new rex_sql_column('updatedate', 'datetime')) @@ -36,12 +36,13 @@ ->ensureColumn(new rex_sql_column('uuid', 'varchar(36)')) ->ensureIndex(new rex_sql_index('uuid', ['uuid'], rex_sql_index::UNIQUE)) ->ensure(); + rex_sql_table::get(rex::getTable('neues_author')) ->ensurePrimaryIdColumn() ->ensureColumn(new rex_sql_column('name', 'varchar(191)', false, '')) ->ensureColumn(new rex_sql_column('nickname', 'varchar(191)', false, '')) ->ensureColumn(new rex_sql_column('text', 'text')) - ->ensureColumn(new rex_sql_column('be_user_id', 'text')) + ->ensureColumn(new rex_sql_column('be_user_id', 'int(10) unsigned')) ->ensureColumn(new rex_sql_column('uuid', 'varchar(36)')) ->ensure(); @@ -51,3 +52,9 @@ ->ensureColumn(new rex_sql_column('category_id', 'int(10) unsigned')) ->ensureIndex(new rex_sql_index('entry_id_category_id', ['entry_id', 'category_id'], rex_sql_index::UNIQUE)) ->ensure(); + +rex_sql_table::get(rex::getTable('neues_entry_lang')) + ->ensurePrimaryIdColumn() + ->ensureColumn(new rex_sql_column('code', 'varchar(191)', false, 'de')) + ->ensureColumn(new rex_sql_column('name', 'varchar(191)', false, 'Deutsch')) + ->ensure();