Fix syntax errors and invalid SQL
This commit is contained in:
parent
fd3afcbb16
commit
66dda542b7
@ -30,8 +30,8 @@ function add_follower( $actor_slug, $follower ) {
|
||||
'pterotype_followers',
|
||||
array(
|
||||
'actor_id' => $actor_id,
|
||||
'object_id' = $object_id,
|
||||
);
|
||||
'object_id' => $object_id,
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
@ -64,8 +64,8 @@ function remove_follower( $actor_slug, $follower ) {
|
||||
'pterotype_followers',
|
||||
array(
|
||||
'actor_id' => $actor_id,
|
||||
'object_id' = $object_id,
|
||||
);
|
||||
'object_id' => $object_id,
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -170,9 +170,9 @@ function migration_0_0_3() {
|
||||
actor_id INT UNSIGNED NOT NULL,
|
||||
object_id INT UNSIGNED NOT NULL,
|
||||
PRIMARY KEY (actor_id, object_id),
|
||||
FOREIGN KEY following_actor_fk(actor_id)
|
||||
FOREIGN KEY followers_actor_fk(actor_id)
|
||||
REFERENCES pterotype_actors(id),
|
||||
FOREIGN KEY following_object_fk(object_id)
|
||||
FOREIGN KEY followers_object_fk(object_id)
|
||||
REFERENCES pterotype_objects(id)
|
||||
)
|
||||
ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
@ -183,7 +183,7 @@ function migration_0_0_3() {
|
||||
CREATE TABLE pterotype_shares(
|
||||
object_id INT UNSIGNED NOT NULL,
|
||||
announce_id INT UNSIGNED NOT NULL,
|
||||
PRIMARY KEY (object_id, shared_by),
|
||||
PRIMARY KEY (object_id, announce_id),
|
||||
FOREIGN KEY shares_object_fk(object_id)
|
||||
REFERENCES pterotype_objects(id),
|
||||
FOREIGN KEY shares_activity_fk(announce_id)
|
||||
|
Loading…
Reference in New Issue
Block a user