File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ function get_snippets_table_name( $multisite = null ) {
44
44
45
45
/* If multisite is not active, always return the site-wide table name */
46
46
if ( ! is_multisite () ) {
47
- $ multisire = false ;
47
+ $ multisite = false ;
48
48
}
49
49
50
50
/* Retrieve the table name from $wpdb depending on the above conditionals */
@@ -115,12 +115,18 @@ function create_code_snippets_table( $table_name ) {
115
115
/* Create the database table */
116
116
117
117
$ sql = "CREATE TABLE $ table_name (
118
- id bigint(20) unsigned not null auto_increment primary key ,
118
+ id bigint(20) unsigned not null auto_increment,
119
119
name tinytext not null,
120
120
description text,
121
121
code longtext not null,
122
122
tags longtext,
123
+ <<<<<<< Updated upstream
123
124
active tinyint(1) not null default 0
125
+ =======
126
+ scope tinyint(1) default 0,
127
+ active tinyint(1) not null default 0,
128
+ primary key(id)
129
+ >>>>>>> Stashed changes
124
130
) {$ charset_collate }; " ;
125
131
126
132
dbDelta ( $ sql );
You can’t perform that action at this time.
0 commit comments