Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to PostgreSQL #54

Merged
merged 16 commits into from
Aug 8, 2024
Merged

Migrate to PostgreSQL #54

merged 16 commits into from
Aug 8, 2024

Commits on Aug 8, 2024

  1. migrate everything to postgresql

    for data migration: .dump the sqlite, edit the .sql to remove everything but the BEGIN TRANSACTION, INSERTs, and COMMIT, then edit it to look like this
    
    SET session_replication_role = 'replica'; -- Hack to make type checking more lenient, changed back later
    update pg_cast set castcontext='a' where casttarget = 'boolean'::regtype; -- Hack to allow int to boolean conversion, changed back later
    BEGIN TRANSACTION;
    tons of inserts
    COMMIT;
    update pg_cast set castcontext='e' where casttarget = 'boolean'::regtype;
    SET session_replication_role = 'origin';
    
    then run migrations via the makefile on a new postgres db and then load the sql in
    AAGaming00 authored and gbdlin committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    d9da97c View commit details
    Browse the repository at this point in the history
  2. ci fixes

    AAGaming00 authored and gbdlin committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    5cb27bc View commit details
    Browse the repository at this point in the history
  3. more ci fixes

    AAGaming00 authored and gbdlin committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    8eb87b6 View commit details
    Browse the repository at this point in the history
  4. fix compose issue

    AAGaming00 authored and gbdlin committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    32a1294 View commit details
    Browse the repository at this point in the history
  5. build arm64 images

    AAGaming00 authored and gbdlin committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    22736af View commit details
    Browse the repository at this point in the history
  6. fix sorting mess

    AAGaming00 authored and gbdlin committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    6b01bd2 View commit details
    Browse the repository at this point in the history
  7. user-defined db path

    AAGaming00 authored and gbdlin committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    32acbb9 View commit details
    Browse the repository at this point in the history
  8. less unhinged networking

    AAGaming00 authored and gbdlin committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    20dba88 View commit details
    Browse the repository at this point in the history
  9. fix: wrong default order in tests

    Tests were failing due to wrong default ordering of plugins being
    checked by them.
    gbdlin committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    d5cd9d8 View commit details
    Browse the repository at this point in the history
  10. chore: bump pytest asyncio and switch to freezer

    Pytest freezegun is no longer maintained, switched to a fork. Also
    bumped pytest-asyncio due to inability to use async fixtures in other
    scopes than `function` in older version.
    gbdlin committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    763fac4 View commit details
    Browse the repository at this point in the history
  11. fix: lint fixes

    Fixed black, isort and mypy failing
    gbdlin committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    b292705 View commit details
    Browse the repository at this point in the history
  12. refactor: no longer use db or freezer in seeder

    Seeder (FakePluginGenerator) no longer uses logic from Database class
    nor the time freezer for seeding the database.
    gbdlin committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    14d0932 View commit details
    Browse the repository at this point in the history
  13. refactor: Use transactional DB tests

    Make use of DB transactions to rollback tests back to the original state
    instead of recreating DB on each test.
    gbdlin committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    e61d217 View commit details
    Browse the repository at this point in the history
  14. Postgres doesn't like collate by NOCASE. but it does it by default an…

    …yway so all good
    PartyWumpus authored and gbdlin committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    114287e View commit details
    Browse the repository at this point in the history
  15. Mypy fixes

    gbdlin committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    e5d74d9 View commit details
    Browse the repository at this point in the history
  16. fix: Revert back to pull_request_target

    `pull_request` trigger needs some more work to be functional. Reverting
    back to `pull_request_target` for now.
    gbdlin committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    0bf3ec4 View commit details
    Browse the repository at this point in the history