Skip to content

Commit

Permalink
Feldtypen und Indexierung hinzufügen (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndr-w authored Jul 30, 2024
1 parent 6763df2 commit eeb87fc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions install.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
rex_sql_table::get(rex::getTable('feeds_item'))
->ensurePrimaryIdColumn()
->ensureColumn(new rex_sql_column('stream_id', 'int(10) unsigned'))
->ensureColumn(new rex_sql_column('uid', 'varchar(255)'))
->ensureColumn(new rex_sql_column('uid', 'varchar(36)'))
->ensureColumn(new rex_sql_column('type', 'varchar(255)'))
->ensureColumn(new rex_sql_column('title', 'varchar(255)'))
->ensureColumn(new rex_sql_column('content', 'text', true))
Expand All @@ -41,16 +41,19 @@
->ensureColumn(new rex_sql_column('author', 'varchar(255)'))
->ensureColumn(new rex_sql_column('username', 'varchar(255)'))
->ensureColumn(new rex_sql_column('language', 'varchar(255)'))
->ensureColumn(new rex_sql_column('media', 'longtext'))
->ensureColumn(new rex_sql_column('media', 'blob'))
->ensureColumn(new rex_sql_column('mediasource', 'text'))
->ensureColumn(new rex_sql_column('raw', 'text'))
->ensureColumn(new rex_sql_column('raw', 'blob'))
->ensureColumn(new rex_sql_column('status', 'tinyint(1)', false, '1'))
->ensureColumn(new rex_sql_column('changed_by_user', 'tinyint(1)'))
->ensureColumn(new rex_sql_column('createuser', 'varchar(255)'))
->ensureColumn(new rex_sql_column('updateuser', 'varchar(255)'))
->ensureColumn(new rex_sql_column('createdate', 'datetime'))
->ensureColumn(new rex_sql_column('updatedate', 'datetime'))
->ensureIndex(new rex_sql_index('uid', ['uid'], rex_sql_index::UNIQUE))
->ensureIndex(new rex_sql_index('stream_id', ['stream_id']))
->ensureIndex(new rex_sql_index('status', ['status']))
->ensureIndex(new rex_sql_index('date', ['date']))
->ensureForeignKey(new rex_sql_foreign_key('rex_feeds_item_ibfk_1', rex::getTable('feeds_stream'), ['stream_id' => 'id'], rex_sql_foreign_key::RESTRICT, rex_sql_foreign_key::CASCADE))
->ensure();

Expand Down

0 comments on commit eeb87fc

Please sign in to comment.