Skip to content

Commit

Permalink
Fix order of keywords in SQL script
Browse files Browse the repository at this point in the history
Clearly not properly tested.

Reported by Akshat Jaimini, found by the testing harness
  • Loading branch information
mhagander committed Jan 2, 2024
1 parent 95413e3 commit fbfe3cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pgweb/account/migrations/0004_cauth_last_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Migration(migrations.Migration):

operations = [
migrations.RunSQL("""CREATE TABLE account_communityauthlastlogin (
user_id int NOT NULL REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED ON DELETE CASCADE,
user_id int NOT NULL REFERENCES auth_user(id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
site_id int NOT NULL REFERENCES account_communityauthsite (id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
lastlogin timestamptz NOT NULL,
logincount bigint NOT NULL,
Expand Down

0 comments on commit fbfe3cf

Please sign in to comment.