mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-29 06:48:17 +00:00
* MM-60705 DB migration: added update_at column to draft table for mobile * refactor: updated docs * refactor: reverted unwanted changes and updated default value for update_at columns * refactor: changed the condition for excepting 0 value for update_at column
21 lines
632 B
TypeScript
21 lines
632 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {tableSchema} from '@nozbe/watermelondb';
|
|
|
|
import {MM_TABLES} from '@constants/database';
|
|
|
|
const {DRAFT} = MM_TABLES.SERVER;
|
|
|
|
export default tableSchema({
|
|
name: DRAFT,
|
|
columns: [
|
|
{name: 'channel_id', type: 'string', isIndexed: true},
|
|
{name: 'files', type: 'string'},
|
|
{name: 'message', type: 'string'},
|
|
{name: 'root_id', type: 'string', isIndexed: true},
|
|
{name: 'metadata', type: 'string', isOptional: true},
|
|
{name: 'update_at', type: 'number'},
|
|
],
|
|
});
|