Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adjusted Auth-Roles & File-Uploads

  • Loading branch information...
commit 7a6a60d09106de2d8a6bed94e0860c5224568c52 1 parent b76e079
@Artazor Artazor authored
Showing with 25 additions and 6 deletions.
  1. +22 −5 sql/scripts/auth.sql
  2. +3 −1 sql/scripts/file_upload.sql
View
27 sql/scripts/auth.sql
@@ -4,19 +4,30 @@ create table auth_role_classes (
title varchar(255) not null unique,
icon varchar(255) not null
) engine = InnoDB;
+insert into auth_role_classes values
+('Oxygen_Common_Auth_Role_Admin','Admin','user_red'),
+('Oxygen_Common_Auth_Role_AdminAudit','Admin (Audit)','user_red'),
+('Oxygen_Common_Auth_Role_User','User','user_blue'),
+('Oxygen_Common_Auth_Role_UserAudit','User (Audit)','user_blue'),
+('Oxygen_Common_Auth_Role_ScopeAdmin','Scope Admin','user_green'),
+('Oxygen_Common_Auth_Role_ScopeAdminAudit','Scope Admin (Audit)','user_blue'),
+('Oxygen_Common_Auth_Role_ScopeUser','Scope User','user_green'),
+('Oxygen_Common_Auth_Role_ScopeUserAudit','Scope User (Audit)','user_blue');
drop table if exists auth_roles;
create table auth_roles (
id int not null primary key,
role varchar(64) unique,
- role_class varchar(255) not null,
+ role_class varchar(255) not null,
role_args text not null,
creator_id int not null,
modifier_id int not null,
created_at int unsigned not null,
modified_at int unsigned not null,
- index(role_class)
+ index(role_class)
) engine = InnoDB;
+insert into auth_roles values
+(1,'Admin','Oxygen_Common_Auth_Role_Admin','{}',1,1,unix_timestamp(now()),unix_timestamp(now()));
drop table if exists auth_users;
create table auth_users (
@@ -25,15 +36,17 @@ create table auth_users (
first_name varchar(255) not null,
last_name varchar(255) not null,
email varchar(255) not null,
- admin tinyint(1) not null default 0,
active tinyint(1) not null default 0,
activation_key varchar(255) not null,
- creator_id int not null,
+ creator_id int not null,
modifier_id int not null,
created_at int unsigned not null,
modified_at int unsigned not null,
password varchar(40) not null
) engine InnoDB;
+insert into auth_users values
+(1,'admin','Oxygen', 'Admin', 'admin@example.com', 1,'',1,1,unix_timestamp(now()),unix_timestamp(now()),'');
+
drop table if exists auth_user_roles;
create table auth_user_roles (
@@ -45,4 +58,8 @@ create table auth_user_roles (
created_at int unsigned not null,
modified_at int unsigned not null,
primary key(user_id, role_id)
-) engine InnoDB;
+) engine InnoDB;
+insert into auth_user_roles values
+(1,1,'{}',1,1,unix_timestamp(now()),unix_timestamp(now()));
+
+
View
4 sql/scripts/file_upload.sql
@@ -8,7 +8,9 @@ create table file_upload_classes (
insert into file_upload_classes values
('Oxygen_File_XLS','Excel file','xls','xls'),
('Oxygen_File_XML','Simple XML','xml','xml'),
-('Oxygen_File_CSV','CSV file','csv','csv');
+('Oxygen_File_CSV','CSV file','csv','csv'),
+('Oxygen_File_JSON','JSON file','json','json'),
+('Oxygen_File_YAML','YAML file','yaml','haml');
drop table if exists file_upload_formats;
create table file_upload_formats (
Please sign in to comment.
Something went wrong with that request. Please try again.