mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Fixed mysql schema import.
This commit is contained in:
parent
0b4fd3ef8f
commit
41eeb1a5f1
2 changed files with 6 additions and 2 deletions
|
|
@ -3,6 +3,7 @@ drop table if exists pageview;
|
|||
drop table if exists session;
|
||||
drop table if exists website;
|
||||
drop table if exists account;
|
||||
drop function if exists date_trunc;
|
||||
|
||||
create table account (
|
||||
user_id int unsigned not null auto_increment primary key,
|
||||
|
|
@ -75,7 +76,8 @@ create index event_created_at_idx on event(created_at);
|
|||
create index event_website_id_idx on event(website_id);
|
||||
create index event_session_id_idx on event(session_id);
|
||||
|
||||
drop function if exists date_trunc;
|
||||
delimiter $$
|
||||
|
||||
create function date_trunc(
|
||||
in_granularity enum('minute', 'hour', 'day', 'month', 'year'),
|
||||
in_datetime datetime(6)
|
||||
|
|
@ -100,4 +102,6 @@ begin
|
|||
end if;
|
||||
end;
|
||||
|
||||
$$
|
||||
|
||||
insert into account (username, password, is_admin) values ('admin', '$2a$10$jsVC1XMAIIQtL0On8twztOmAr20YTVcsd4.yJncKspEwsBkeq6VFW', true);
|
||||
Loading…
Add table
Add a link
Reference in a new issue