« first day (4072 days earlier)      last day (1098 days later) » 

04:28
 
5 hours later…
08:58
[Squirrel in Training] Wadafaq i thought bottler ded, but no chat just super ded nowadays :<
09:23
Good morning
Ya I'm studying hard so who is supposed to keep it alive when all the spalters left
And I'm just back because, once again, I try to do EF migrations
09:38
[Squirrel in Training] oh they easy
[Squirrel in Training] what is the problem?
09:57
I'm on problem#3 by now actually
So I finally got the initial migration created
Then added the context.Database.Migrate() call to my startup
Now my problem is: The DB already exists. Without a migration table, because I made the DB by hand.
So when Migrate() is called, it goes "oh no migration table, looks like I gotta create the whole thing anew"
Except the thing already exists, so first chance it gets it goes "there is already an object named players in the database"
Well yes of course, I put it there dummy
So: How to tell EFCore that the DB might already exist and it just needs to add a migration table or like, check the DB against the initial migration?
mr5
mr5
ehh
isn't that a common thing already?
Using migrations? Having a db already set up? Or the migrate not working as I'd like?
mr5
mr5
context.Database.Migrate();?
It is
But it doesn't work the way I'd like it to
One blog says I should empty the Up() method, will try that one.
mr5
mr5
yeah. you might need to edit those auto generated code for migrations
I'd say, those things are poorly designed.
it's just horrible when I look at it.
10:11
This seems to work
Guess I gotta deploy this one to production and then when the migration table exists put back the Up() method contents so it works with a new DB too.
[Captain Obvious] Anything fun happening here
No, EF is harrassing me
I have to do this now:
Add migration
Empty "Up()" method
Migrate local
Commit
Deploy to migrate prod
Reinsert Up() method contents
Migrate local to make sure it works
Commit
Deploy to make sure it works
Hope this shit actually works
10:27
[milleniumbug] I dunno, you seem to be mixing code first and database first approaches
[Squirrel in Training] Don't empty the up method
@milleniumbug I absolutely do
This thing started DB-first years ago
[Squirrel in Training] do a Scaffold-Database in that case
[Squirrel in Training] uinless s/o wants to correct me
[Squirrel in Training] i might be dimpshit wrong
[Squirrel in Training] i probebly am
But I have to do the migration-migration ( I wanna migrate the application to use migration eh?) in production too
[Squirrel in Training] I'd suggest you'd do an "initalMigraiton" which is empty and a 2n'd migration with does the "initial migration".
Then I'd have to get the prod connection string from azure, insert it locally, do the scaffold, notice that it fails because prod db is locked down to everything but the prod app, figure out how to open it up, then do the migration again, the nlock it back down
10:30
[Squirrel in Training] Brah my head hurts
[Squirrel in Training] no coffee.
Me too bro, me too
[Squirrel in Training] I'll call you if thats ok
[Squirrel in Training] can't bother typing
mr5
mr5
when you huddle, do you open camera? that would be awkward kek
10:46
No idea, we deleted our slack :(
Although I guess not, because where to display other people's camera images even when the huddle is just the little switch there?
11:08
Alright I might have been a bit overzealous
mr5
mr5
why did you delete your slack?
Turns out I didn't grant the application create table permissions
So of course the thing would fail
@mr5 We switched to teams :/
mr5
mr5
oof
that sucks
Teams is horrible
and confusing
Teams does have pretty nice features too, but it just doesn't work as...fluently as slack.
Teams can't into multi account
mr5
mr5
I wonder why Discord is not so popular among software companies
11:15
Because it's cool and also has useful features out of the box
Like, you can just create a server for free and that gets you channels with categories, roles, open/closed/hidden channels, moderation, group chats, screen share...
11:28
Ah why it's not popular?
Maybe because it doesn't really fit the way users should use it with a company. Discord basically has a single user logged in, connecting to many servers.
Slack or teams go for separate logins to different workspaces.
12:26
[Captain Obvious] Teams can *technicall multi-account
[Captain Obvious] It's just really shit
[Captain Obvious] And sorta not multi account depending on the platform]
woa peple are calling for the UK pm to resign now over a christmas party?
I didn't think it'd be ethat serious
[Captain Obvious] Because it was a christmas party which happened at peak lockdown restrictions (no parties, no socialising, masks everywhere, virtually everything closed)
[Captain Obvious] With absolutely no shits given about covid whatsoever
oh so he's a lyin hypocrite
12:30
[Captain Obvious] Then when questioned about it he said it absolutely 100% didn't happen
[Captain Obvious] Literally days later video footage of the party came out
it's like when the NJ governor had bridges closed down and took himself and his family to recline at the beach
@Botler UH OH
 
2 hours later…
14:51
[Captain Obvious] Yeah it was fun times
15:26
Eira May on December 09, 2021
How many bug fixes does it take to set a world record?
15:44
Project itself is a bug...
 
3 hours later…
19:06
[Captain Obvious] Sharepoint is a fucking bug
[Captain Obvious] jesus christ I don't fucking understand it
19:33
it's the power of ntfs through your browser :0

« first day (4072 days earlier)      last day (1098 days later) »