Skip to content

Commit d455c2f

Browse files
committed
Add auth table
Signed-off-by: Kirtan Gajjar <[email protected]>
1 parent 2a3f227 commit d455c2f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

php/class-ee-db.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,16 @@ private static function create_required_tables() {
118118
FOREIGN KEY (site_url) REFERENCES sites(site_url)
119119
);';
120120

121+
$query .= 'CREATE TABLE auth_users (
122+
id INTEGER,
123+
site_url VARCHAR NOT NULL,
124+
username VARCHAR NOT NULL,
125+
password VARCHAR NOT NULL,
126+
scope VARCHAR NOT NULL,
127+
PRIMARY KEY (id),
128+
CHECK (scope IN (\'admin-tools\', \'site\', \'custom\'))
129+
);';
130+
121131
try {
122132
self::$pdo->exec( $query );
123133
} catch ( PDOException $exception ) {

0 commit comments

Comments
 (0)