Skip to content

Commit

Permalink
Update update_scheme.php
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndr-w committed Sep 13, 2024
1 parent 5a62f3c commit f8ecec9
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions install/update_scheme.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)'))
Expand All @@ -27,21 +27,22 @@
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'))
->ensureColumn(new rex_sql_column('createdate', 'datetime'))
->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();

Expand All @@ -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();

0 comments on commit f8ecec9

Please sign in to comment.