extend length of source for notices
darcs-hash:20080731152731-84dde-dc6bf652c38ae9a52950e65d7cb310f870a70640.gz
This commit is contained in:
parent
557f56a4a7
commit
9676315b2e
|
@ -40,7 +40,7 @@ class Notice extends DB_DataObject
|
||||||
public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP
|
public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP
|
||||||
public $reply_to; // int(4)
|
public $reply_to; // int(4)
|
||||||
public $is_local; // tinyint(1)
|
public $is_local; // tinyint(1)
|
||||||
public $source; // varchar(8)
|
public $source; // varchar(32)
|
||||||
|
|
||||||
/* Static get */
|
/* Static get */
|
||||||
function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('Notice',$k,$v); }
|
function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('Notice',$k,$v); }
|
||||||
|
|
|
@ -10,7 +10,7 @@ class Notice_source extends DB_DataObject
|
||||||
/* the code below is auto generated do not remove the above tag */
|
/* the code below is auto generated do not remove the above tag */
|
||||||
|
|
||||||
public $__table = 'notice_source'; // table name
|
public $__table = 'notice_source'; // table name
|
||||||
public $code; // varchar(8) primary_key not_null
|
public $code; // varchar(32) primary_key not_null
|
||||||
public $name; // varchar(255) not_null
|
public $name; // varchar(255) not_null
|
||||||
public $url; // varchar(255) not_null
|
public $url; // varchar(255) not_null
|
||||||
public $created; // datetime() not_null
|
public $created; // datetime() not_null
|
||||||
|
|
|
@ -67,15 +67,6 @@ source = 2
|
||||||
[notice__keys]
|
[notice__keys]
|
||||||
id = N
|
id = N
|
||||||
|
|
||||||
[notice_tag]
|
|
||||||
tag = 130
|
|
||||||
notice_id = 129
|
|
||||||
created = 142
|
|
||||||
|
|
||||||
[notice_tag__keys]
|
|
||||||
tag = K
|
|
||||||
notice_id = K
|
|
||||||
|
|
||||||
[notice_source]
|
[notice_source]
|
||||||
code = 130
|
code = 130
|
||||||
name = 130
|
name = 130
|
||||||
|
@ -86,6 +77,15 @@ modified = 384
|
||||||
[notice_source__keys]
|
[notice_source__keys]
|
||||||
code = K
|
code = K
|
||||||
|
|
||||||
|
[notice_tag]
|
||||||
|
tag = 130
|
||||||
|
notice_id = 129
|
||||||
|
created = 142
|
||||||
|
|
||||||
|
[notice_tag__keys]
|
||||||
|
tag = K
|
||||||
|
notice_id = K
|
||||||
|
|
||||||
[profile]
|
[profile]
|
||||||
id = 129
|
id = 129
|
||||||
nickname = 130
|
nickname = 130
|
||||||
|
|
|
@ -105,7 +105,7 @@ create table notice (
|
||||||
modified timestamp comment 'date this record was modified',
|
modified timestamp comment 'date this record was modified',
|
||||||
reply_to integer comment 'notice replied to (usually a guess)' references notice (id),
|
reply_to integer comment 'notice replied to (usually a guess)' references notice (id),
|
||||||
is_local tinyint default 0 comment 'notice was generated by a user',
|
is_local tinyint default 0 comment 'notice was generated by a user',
|
||||||
source varchar(8) comment 'source of comment, like "web", "im", or "clientname"',
|
source varchar(32) comment 'source of comment, like "web", "im", or "clientname"',
|
||||||
|
|
||||||
index notice_profile_id_idx (profile_id),
|
index notice_profile_id_idx (profile_id),
|
||||||
index notice_created_idx (created),
|
index notice_created_idx (created),
|
||||||
|
@ -113,7 +113,7 @@ create table notice (
|
||||||
) ENGINE=MyISAM;
|
) ENGINE=MyISAM;
|
||||||
|
|
||||||
create table notice_source (
|
create table notice_source (
|
||||||
code varchar(8) primary key not null comment 'source code',
|
code varchar(32) primary key not null comment 'source code',
|
||||||
name varchar(255) not null comment 'name of the source',
|
name varchar(255) not null comment 'name of the source',
|
||||||
url varchar(255) not null comment 'url to link to',
|
url varchar(255) not null comment 'url to link to',
|
||||||
created datetime not null comment 'date this record was created',
|
created datetime not null comment 'date this record was created',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user