Skip to content

Commit

Permalink
fix: fix doc about mysql sql
Browse files Browse the repository at this point in the history
  • Loading branch information
fankaiLiu committed Jun 15, 2024
1 parent dc0b746 commit f6e9b0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/template/data/init_sql_sql.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
{{create_success_diesel__mysql_or_pgsql_fist_use}}
{{/if}}
BEGIN;
INSERT INTO "users" ("id", "username", "password") VALUES ('cdd0e080-5bb1-4442-b6f7-2ba60dbd0555', 'zhangsan', '$argon2id$v=19$m=19456,t=2,p=1$rcosL5pOPdA2c7i4ZuLA4Q$s0JGh78UzMmu1qZMpVUA3b8kWYLXcZhw7uBfwhYDJ4A');
INSERT INTO users (id, username, password) VALUES ('cdd0e080-5bb1-4442-b6f7-2ba60dbd0555', 'zhangsan', '$argon2id$v=19$m=19456,t=2,p=1$rcosL5pOPdA2c7i4ZuLA4Q$s0JGh78UzMmu1qZMpVUA3b8kWYLXcZhw7uBfwhYDJ4A');
COMMIT;
2 changes: 1 addition & 1 deletion src/template/data/table_mysql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ username VARCHAR(255) NOT NULL UNIQUE,
password VARCHAR(511) NOT NULL
);
BEGIN;
INSERT IGNORE INTO "users" ("id", "username", "password") VALUES ('cdd0e080-5bb1-4442-b6f7-2ba60dbd0555', 'zhangsan', '$argon2id$v=19$m=19456,t=2,p=1$rcosL5pOPdA2c7i4ZuLA4Q$s0JGh78UzMmu1qZMpVUA3b8kWYLXcZhw7uBfwhYDJ4A');
INSERT INTO users (id, username, password) VALUES ('cdd0e080-5bb1-4442-b6f7-2ba60dbd0555', 'zhangsan', '$argon2id$v=19$m=19456,t=2,p=1$rcosL5pOPdA2c7i4ZuLA4Q$s0JGh78UzMmu1qZMpVUA3b8kWYLXcZhw7uBfwhYDJ4A');
COMMIT;

0 comments on commit f6e9b0f

Please sign in to comment.